Merge staging-next into staging

This commit is contained in:
Frederik Rietdijk 2019-01-13 14:46:43 +01:00
commit bb9581cd88
139 changed files with 2282 additions and 572 deletions

View file

@ -132,6 +132,7 @@ let
mergeAttrsWithFunc mergeAttrsConcatenateValues
mergeAttrsNoOverride mergeAttrByFunc mergeAttrsByFuncDefaults
mergeAttrsByFuncDefaultsClean mergeAttrBy
fakeSha256 fakeSha512
nixType imap;
});
in lib

View file

@ -270,4 +270,8 @@ rec {
starting at zero.
*/
imap = imap1;
# Fake hashes. Can be used as hash placeholders, when computing hash ahead isn't trivial
fakeSha256 = "0000000000000000000000000000000000000000000000000000000000000000";
fakeSha512 = "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000";
}

View file

@ -475,6 +475,11 @@
github = "bandresen";
name = "Benjamin Andresen";
};
baracoder = {
email = "baracoder@googlemail.com";
github = "baracoder";
name = "Herman Fries";
};
barrucadu = {
email = "mike@barrucadu.co.uk";
github = "barrucadu";
@ -1953,6 +1958,11 @@
github = "jakelogemann";
name = "Jake Logemann";
};
jakewaksbaum = {
email = "jake.waksbaum@gmail.com";
github = "jbaum98";
name = "Jake Waksbaum";
};
jammerful = {
email = "jammerful@gmail.com";
github = "jammerful";
@ -4356,6 +4366,11 @@
github = "tazjin";
name = "Vincent Ambo";
};
tbenst = {
email = "nix@tylerbenster.com";
github = "tbenst";
name = "Tyler Benster";
};
teh = {
email = "tehunger@gmail.com";
github = "teh";

View file

@ -1,6 +1,6 @@
{
x86_64-linux = "/nix/store/cdcia67siabmj6li7vyffgv2cry86fq8-nix-2.1.3";
i686-linux = "/nix/store/6q3xi6y5qnsv7d62b8n00hqfxi8rs2xs-nix-2.1.3";
aarch64-linux = "/nix/store/2v93d0vimlm28jg0ms6v1i6lc0fq13pn-nix-2.1.3";
x86_64-darwin = "/nix/store/dkjlfkrknmxbjmpfk3dg4q3nmb7m3zvk-nix-2.1.3";
x86_64-linux = "/nix/store/pid1yakjasch4pwl63nzbj22z9zf0q26-nix-2.2";
i686-linux = "/nix/store/qpkl0cxy0xh4h432lv2qsjrmhvx5x2vy-nix-2.2";
aarch64-linux = "/nix/store/0jg7h94x986d8cskg6gcfza9x67spdbp-nix-2.2";
x86_64-darwin = "/nix/store/a48whqkmxnsfhwbk6nay74iyc1cf0lr2-nix-2.2";
}

View file

@ -191,10 +191,9 @@ in {
options = {
paths = mkOption {
type = with types; either path (listOf str);
type = with types; coercedTo str lib.singleton (listOf str);
description = "Path(s) to back up.";
example = "/home/user";
apply = x: if isList x then x else [ x ];
};
repo = mkOption {

View file

@ -109,7 +109,7 @@ in
ipv6 = handleTest ./ipv6.nix {};
jenkins = handleTest ./jenkins.nix {};
#kafka = handleTest ./kafka.nix {}; # broken since openjdk: 8u181 -> 8u192
kerberos = handleTest tests/kerberos/default.nix {};
kerberos = handleTest ./kerberos/default.nix {};
kernel-latest = handleTest ./kernel-latest.nix {};
kernel-lts = handleTest ./kernel-lts.nix {};
keymap = handleTest ./keymap.nix {};

View file

@ -62,6 +62,7 @@ import ./make-test.nix ({ pkgs, ... }: {
# Ensure Layered Docker images work
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.layered-image}'");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layered-image.imageName}");
$docker->succeed("docker run --rm ${pkgs.dockerTools.examples.layered-image.imageName} cat extraCommands");
# Ensure building an image on top of a layered Docker images work
$docker->succeed("docker load --input='${pkgs.dockerTools.examples.layered-on-top}'");

View file

@ -1,5 +1,7 @@
{ system ? builtins.currentSystem }:
{ system ? builtins.currentSystem
, pkgs ? import ../../.. { inherit system; }
}:
{
mit = import ./mit.nix { inherit system; };
heimdal = import ./heimdal.nix { inherit system; };
mit = import ./mit.nix { inherit system pkgs; };
heimdal = import ./heimdal.nix { inherit system pkgs; };
}

View file

@ -14,7 +14,7 @@ import ./make-test.nix ({ pkgs, ...} : {
server =
{ ... }:
{ virtualisation.memorySize = 2047; # qemu-system-i386 has a 2047M limit
virtualisation.diskSize = 2048;
virtualisation.diskSize = 8192;
services.nexus.enable = true;
};

View file

@ -89,6 +89,12 @@ self:
# Expects bash to be at /bin/bash
flycheck-rtags = markBroken super.flycheck-rtags;
forge = super.forge.overrideAttrs (attrs: {
# searches for Git at build time
nativeBuildInputs =
(attrs.nativeBuildInputs or []) ++ [ external.git ];
});
# build timeout
graphene = markBroken super.graphene;

View file

@ -58,6 +58,10 @@ in
'' else ''
makeWrapper '${unwrapped}/bin/nvim-qt' "$out/bin/nvim-qt" \
--prefix PATH : "${neovim}/bin"
# link .desktop file
mkdir -p "$out/share"
ln -s '${unwrapped}/share/applications' "$out/share/applications"
'';
preferLocalBuild = true;

View file

@ -12,9 +12,9 @@ let
}.${stdenv.hostPlatform.system};
sha256 = {
"i686-linux" = "1xadkgqfwsl53blm2f0kdvczwmag47585dswa1hpafzc8i86009b";
"x86_64-linux" = "0h77kc6z9c5bkkb8svjxjabnbbv0lb835kzd1c2yypamkhag9j4a";
"x86_64-darwin" = "1f8grgav5capd2mm1nx0416na8c6qjh91680cfvf1jh4pjihs6g4";
"i686-linux" = "1g73fay6fxlqhalkqq5m6rjbp68k9npk0rrxrkhdj8mw0cz74dpm";
"x86_64-linux" = "0mil8n5i2ajdyrgq862wq59ajy2122rvvn7m7mxq4ab92sk26rix";
"x86_64-darwin" = "07r52scs1sgafzxqal39r8vf9p9qqvwwx8f6z09gqcf6clr6k48q";
}.${stdenv.hostPlatform.system};
archive_fmt = if stdenv.hostPlatform.system == "x86_64-darwin" then "zip" else "tar.gz";
@ -31,7 +31,7 @@ let
in
stdenv.mkDerivation rec {
name = "vscode-${version}";
version = "1.30.1";
version = "1.30.2";
src = fetchurl {
name = "VSCode_${version}_${plat}.${archive_fmt}";

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, removeReferencesTo, which, go, go-bindata, makeWrapper, rsync, utillinux
{ stdenv, lib, fetchFromGitHub, buildGoPackage, which, go-bindata, rsync, utillinux
, coreutils, kerberos, clang
, components ? [
"cmd/oc"
@ -20,7 +20,7 @@ let
k8sgitcommit = "b1b2997";
k8sgitMajor = "0";
k8sgitMinor = "1";
in stdenv.mkDerivation rec {
in buildGoPackage rec {
name = "openshift-origin-${version}";
inherit version;
@ -29,13 +29,13 @@ in stdenv.mkDerivation rec {
repo = "origin";
rev = "v${version}";
sha256 = "06q4v2a1mm6c659ab0rzkqz6b66vx4avqfg0s9xckwhq420lzgka";
};
};
goPackagePath = "github.com/openshift/origin";
# go > 1.10
# [FATAL] [14:44:02+0000] Please install Go version go or use PERMISSIVE_GO=y to bypass this check.
buildInputs = [ removeReferencesTo makeWrapper which go rsync go-bindata kerberos clang ];
outputs = [ "out" ];
buildInputs = [ which rsync go-bindata kerberos clang ];
patchPhase = ''
patchShebangs ./hack
@ -54,6 +54,7 @@ in stdenv.mkDerivation rec {
'';
buildPhase = ''
cd go/src/${goPackagePath}
# Openshift build require this variables to be set
# unless there is a .git folder which is not the case with fetchFromGitHub
echo "OS_GIT_VERSION=v${version}" >> os-version-defs
@ -71,14 +72,10 @@ in stdenv.mkDerivation rec {
'';
installPhase = ''
mkdir -p "$out/bin"
cp -a "_output/local/bin/$(go env GOOS)/$(go env GOARCH)/"* "$out/bin/"
install -D -t "$out/etc/bash_completion.d" contrib/completions/bash/*
install -D -t "$out/share/zsh/site-functions" contrib/completions/zsh/*
'';
preFixup = ''
find $out/bin -type f -exec remove-references-to -t ${go} '{}' +
mkdir -p $bin/bin
cp -a "_output/local/bin/$(go env GOOS)/$(go env GOARCH)/"* "$bin/bin/"
install -D -t "$bin/etc/bash_completion.d" contrib/completions/bash/*
install -D -t "$bin/share/zsh/site-functions" contrib/completions/zsh/*
'';
meta = with stdenv.lib; {

View file

@ -1,63 +1,54 @@
{ stable, branch, version, sha256Hash }:
{ stdenv, python36Packages, fetchFromGitHub, fetchurl }:
{ stdenv, python36, fetchFromGitHub }:
let
pythonPackages = python36Packages;
async-timeout = pythonPackages.async-timeout.overrideAttrs
(oldAttrs:
rec {
pname = "async-timeout";
python = python36.override {
packageOverrides = self: super: {
async-timeout = super.async-timeout.overridePythonAttrs (oldAttrs: rec {
version = "2.0.1";
src = pythonPackages.fetchPypi {
inherit pname version;
src = oldAttrs.src.override {
inherit version;
sha256 = "1l3kg062m02mph6rf9rdv8r5c5n356clxa6b6mrn0i77vk9g9kq0";
};
});
aiohttp = pythonPackages.aiohttp.overrideAttrs
(oldAttrs:
rec {
pname = "aiohttp";
aiohttp = super.aiohttp.overridePythonAttrs (oldAttrs: rec {
version = "2.3.10";
src = pythonPackages.fetchPypi {
inherit pname version;
src = oldAttrs.src.override {
inherit version;
sha256 = "8adda6583ba438a4c70693374e10b60168663ffa6564c5c75d3c7a9055290964";
};
propagatedBuildInputs = [ async-timeout ]
++ (with pythonPackages; [ attrs chardet multidict yarl idna-ssl ]);
propagatedBuildInputs = with self; [ async-timeout attrs chardet multidict yarl idna-ssl ];
doCheck = false;
});
aiohttp-cors = pythonPackages.aiohttp-cors.overrideAttrs
(oldAttrs:
rec {
pname = "aiohttp-cors";
aiohttp-cors = super.aiohttp-cors.overridePythonAttrs (oldAttrs: rec {
version = "0.5.3";
name = "${pname}-${version}";
src = pythonPackages.fetchPypi {
inherit pname version;
src = oldAttrs.src.override {
inherit version;
sha256 = "11b51mhr7wjfiikvj3nc5s8c7miin2zdhl3yrzcga4mbpkj892in";
};
propagatedBuildInputs = [ aiohttp ]
++ stdenv.lib.optional
(pythonPackages.pythonOlder "3.5")
pythonPackages.typing;
propagatedBuildInputs = with self; [ aiohttp ]
++ stdenv.lib.optional (pythonOlder "3.5") typing;
});
in pythonPackages.buildPythonPackage rec {
name = "${pname}-${version}";
};
};
in python.pkgs.buildPythonPackage {
pname = "gns3-server";
inherit version;
src = fetchFromGitHub {
owner = "GNS3";
repo = pname;
repo = "gns3-server";
rev = "v${version}";
sha256 = sha256Hash;
};
propagatedBuildInputs = [ aiohttp-cors ]
++ (with pythonPackages; [
yarl aiohttp multidict
jinja2 psutil zipstream raven jsonschema typing
(pythonPackages.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {})
]);
propagatedBuildInputs = with python.pkgs; [
aiohttp-cors yarl aiohttp multidict
jinja2 psutil zipstream raven jsonschema typing
(python.pkgs.callPackage ../../../development/python-modules/prompt_toolkit/1.nix {})
];
# Requires network access
doCheck = false;
@ -65,6 +56,7 @@ in pythonPackages.buildPythonPackage rec {
postInstall = ''
rm $out/bin/gns3loopback # For Windows only
'';
meta = with stdenv.lib; {
description = "Graphical Network Simulator 3 server (${branch} release)";
longDescription = ''

View file

@ -31,11 +31,11 @@ with stdenv.lib;
stdenv.mkDerivation rec {
name = "claws-mail-${version}";
version = "3.17.2";
version = "3.17.3";
src = fetchurl {
url = "http://www.claws-mail.org/download.php?file=releases/claws-mail-${version}.tar.xz";
sha256 = "1hb17kpvfl8f1y49zan0wvf4awapxg13bqbqwrbhq2n4xp445kr5";
sha256 = "1wnj6c9cbmhphs2l6wfvndkk2g08rmxw0sl2c8k1k008dxd1ykjh";
};
outputs = [ "out" "dev" ];

View file

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, fetchpatch }:
stdenv.mkDerivation rec {
name = "omping-${version}";
version = "0.0.5";
src = fetchFromGitHub {
owner = "troglobit";
repo = "omping";
rev = version;
sha256 = "1f0vsbnhxp7bbgdnfqshryx3nhz2sqdnxdj068s0nmzsh53ckbf7";
};
patches = [
# This can go in 0.0.6+
(fetchpatch {
url = "https://github.com/troglobit/omping/commit/08a31ec1a6eb4e8f88c301ef679c3b6f9893f333.patch";
sha256 = "1xafyvd46bq53w2zvjw8bdw7vjqbrcrr21cyh6d0zfcn4gif1k0f";
name = "fix_manpage_install.patch";
})
];
makeFlags = [
"PREFIX=${placeholder "out"}"
];
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "Open Multicast Ping (omping) is a tool for testing IPv4/IPv6 multicast connectivity on a LAN.";
license = licenses.mit;
platforms = platforms.unix;
inherit (src.meta) homepage;
};
}

View file

@ -0,0 +1,41 @@
{ stdenv, lib, makeWrapper, fetchzip, jre }:
stdenv.mkDerivation rec {
name = "bftools-${version}";
version = "5.9.2";
src = fetchzip {
url = "http://downloads.openmicroscopy.org/bio-formats/${version}/artifacts/bftools.zip";
sha256 = "08lmbg3kfxh17q6548il0i2h3f9a6ch8r0r067p14dajhzfpjyqj";
};
installPhase = ''
find . -maxdepth 1 -perm -111 -type f -not -name "*.sh" \
-exec install -vD {} "$out"/bin/{} \;
mkdir $out/libexec
mkdir -p $out/share/java
cp ./*.sh $out/libexec
cp ./*.jar $out/share/java
for file in $out/bin/*; do
substituteInPlace $file --replace "\$BF_DIR" $out/libexec
done
substituteInPlace $out/libexec/bf.sh --replace "\$BF_JAR_DIR" $out/share/java
'';
postFixup = ''
wrapProgram $out/libexec/bf.sh --prefix PATH : "${lib.makeBinPath [ jre ]}"
'';
nativeBuildInputs = [ makeWrapper ];
meta = with stdenv.lib; {
description = "A bundle of scripts for using Bio-Formats on the command line with bioformats_package.jar already included";
license = licenses.gpl2;
platforms = platforms.all;
homepage = https://www.openmicroscopy.org/bio-formats/;
maintainers = [ maintainers.tbenst ];
};
}

View file

@ -1,12 +1,13 @@
{stdenv, fetchurl, bison, flex
, readline, libX11, libICE, libXaw, libXmu, libXext, libXt, fftw }:
stdenv.mkDerivation {
name = "ngspice-29";
stdenv.mkDerivation rec {
name = "ngspice-${version}";
version = "30";
src = fetchurl {
url = "mirror://sourceforge/ngspice/ngspice-29.tar.gz";
sha256 = "0jjwz73naq7l9yhwdqbpnrfckywp2ffkppivxjv8w92zq7xhyvcd";
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
sha256 = "15v0jdfy2a2zxp8dmy04fdp7w7a4vwvffcwa688r81b86wphxzh8";
};
nativeBuildInputs = [ flex bison ];

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, cmake, pcre, pkgconfig, python2
, libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lzma, gsl_1
, Cocoa, OpenGL, noSplash ? false }:
, Cocoa, OpenGL, cf-private, noSplash ? false }:
stdenv.mkDerivation rec {
name = "root-${version}";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake pcre python2 zlib libxml2 lzma gsl_1 ]
++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ]
++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ]
++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL cf-private ]
;
patches = [
@ -73,5 +73,8 @@ stdenv.mkDerivation rec {
description = "A data analysis framework";
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
# needs to be adapted to work with modern glibc
# it works on darwin by impurely picking up system's libc headers
broken = stdenv.isLinux;
};
}

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, cmake, pcre, pkgconfig, python2
, libX11, libXpm, libXft, libXext, libGLU_combined, zlib, libxml2, lz4, lzma, gsl, xxHash
, Cocoa, OpenGL, noSplash ? false }:
, Cocoa, OpenGL, cf-private, noSplash ? false }:
stdenv.mkDerivation rec {
name = "root-${version}";
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ cmake pcre python2 zlib libxml2 lz4 lzma gsl xxHash ]
++ stdenv.lib.optionals (!stdenv.isDarwin) [ libX11 libXpm libXft libXext libGLU_combined ]
++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL ]
++ stdenv.lib.optionals (stdenv.isDarwin) [ Cocoa OpenGL cf-private ]
;
patches = [

View file

@ -1,11 +1,11 @@
{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2, ncurses, pkgconfig, readline }:
{ stdenv, buildGo19Package, fetchFromGitHub, curl, libgit2_0_27, ncurses, pkgconfig, readline }:
let
version = "0.3.1";
in
buildGo19Package {
name = "grv-${version}";
buildInputs = [ ncurses readline curl libgit2 ];
buildInputs = [ ncurses readline curl libgit2_0_27 ];
nativeBuildInputs = [ pkgconfig ];
goPackagePath = "github.com/rgburke/grv";

View file

@ -1,72 +1,64 @@
# Upstream distributes HandBrake with bundle of according versions of libraries and patches to them.
#
# Derivation patches HandBrake to use our closure.
# Derivation patches HandBrake to use Nix closure dependencies.
#
{ stdenv, lib, fetchurl,
python2, pkgconfig, yasm, zlib,
autoconf, automake, libtool, m4, jansson,
libass, libiconv, libsamplerate, fribidi, libxml2, bzip2,
libogg, libopus, libtheora, libvorbis, libdvdcss, a52dec,
lame, libdvdread, libdvdnav, libbluray,
mp4v2, mpeg2dec, x264, x265, libmkv,
fontconfig, freetype, hicolor-icon-theme,
glib, gtk3, intltool, libnotify,
gst_all_1, dbus-glib, udev, libgudev, libvpx,
useGtk ? true, wrapGAppsHook ? null, libappindicator-gtk3 ? null,
useFfmpeg ? false, libav_12 ? null, ffmpeg ? null,
{ stdenv, lib, fetchurl, callPackage,
# Main build tools
python2, pkgconfig, autoconf, automake, cmake, nasm, libtool, m4,
# Processing, video codecs, containers
ffmpeg-full, nv-codec-headers, libogg, x264, x265, libvpx, libtheora,
# Codecs, audio
libopus, lame, libvorbis, a52dec, speex, libsamplerate,
# Text processing
libiconv, fribidi, fontconfig, freetype, libass, jansson, libxml2,
# Optical media
libdvdread, libdvdnav, libdvdcss, libbluray,
useGtk ? true, wrapGAppsHook ? null,
intltool ? null,
glib ? null,
gtk3 ? null,
libappindicator-gtk3 ? null,
libnotify ? null,
gst_all_1 ? null,
dbus-glib ? null,
udev ? null,
libgudev ? null,
hicolor-icon-theme ? null,
useFdk ? false, fdk_aac ? null
}:
stdenv.mkDerivation rec {
# TODO: Release 1.2.0 would switch LibAV to FFmpeg.
version = "1.1.2";
version = "1.2.0";
name = "handbrake-${version}";
src = fetchurl {
url = ''https://download2.handbrake.fr/${version}/HandBrake-${version}-source.tar.bz2'';
sha256 = "0bny0hwlr55g2c69rsamv0xvwmfh1s4a582b9vq20xv5ly84m6ms";
sha256 = "03clkknaq3mz84p85cvr21gsy9b8vv2g4vvyfz44hz8la253jfqi";
};
patched_libav_12 = libav_12.overrideAttrs (super: {
patches = (super.patches or []) ++ [(
# NOTE: 2018-04-26: HandBrake compilation (1.1.0) requires
# a patch of LibAV (12.3) from HandBrake team. This patch
# not went LibAV upstream.
fetchurl {
url = ''https://raw.githubusercontent.com/HandBrake/HandBrake/9e1f245708a157231c427c0ef9b91729d59a30e1/contrib/ffmpeg/A21-mp4-sdtp.patch'';
sha256 = "14grzyvb1qbb90k31ibabnwmwnrc48ml6h2z0rjamdv83q45jq4g";
})
# NOTE: 2018-11-11: Transcoding to MP4 can fail with:
#
# Tag avc1/0x31637661 incompatible with output codec id '28'
# muxavformat: avformat_write_header failed!
#
# Fix using Handbrake patch that is not upstream in libav.
(
fetchurl {
url = ''https://raw.githubusercontent.com/HandBrake/HandBrake/df6c26fa261423237ee2bec0bf784c32cbfda3fa/contrib/ffmpeg/A20-avc3-hvc1-override.patch'';
sha256 = "1vijd7bmkzp3sb6zhpcpdni8fz4h13wgglnml6cz9f44j41w2c3v";
})
];
});
nativeBuildInputs = [
python2 pkgconfig yasm autoconf automake libtool m4
python2 pkgconfig autoconf automake cmake nasm libtool m4
] ++ lib.optionals useGtk [ intltool wrapGAppsHook ];
buildInputs = [
fribidi fontconfig freetype jansson zlib
libass libiconv libsamplerate libxml2 bzip2
libogg libopus libtheora libvorbis libdvdcss a52dec libmkv
lame libdvdread libdvdnav libbluray mp4v2 mpeg2dec x264 x265 libvpx
ffmpeg-full libogg libtheora x264 x265 libvpx
libopus lame libvorbis a52dec speex libsamplerate
libiconv fribidi fontconfig freetype libass jansson libxml2
libdvdread libdvdnav libdvdcss libbluray
] ++ lib.optionals useGtk [
glib gtk3 libappindicator-gtk3 libnotify
gst_all_1.gstreamer gst_all_1.gst-plugins-base dbus-glib udev
libgudev hicolor-icon-theme
] ++ (if useFfmpeg then [ ffmpeg ] else [ patched_libav_12 ])
++ lib.optional useFdk fdk_aac;
] ++ lib.optional useFdk fdk_aac
# NOTE: 2018-12-27: Handbrake supports nv-codec-headers for Linux only,
# look at ./make/configure.py search "enable_nvenc"
++ lib.optional stdenv.isLinux nv-codec-headers;
# NOTE: 2018-12-25: v1.2.0 now requires cmake dep
# (default distribution bundles&builds 3rd party libs),
# don't trigger cmake build
dontUseCmakeConfigure = true;
enableParallelBuilding = true;
preConfigure = ''
@ -87,6 +79,7 @@ stdenv.mkDerivation rec {
(if useFdk then "--enable-fdk-aac" else "")
];
# NOTE: 2018-12-27: Check NixOS HandBrake test if changing
NIX_LDFLAGS = [
"-lx265"
];

View file

@ -21,6 +21,11 @@
, vlc
, mbedtls
, scriptingSupport ? true
, luajit
, swig
, python3
, alsaSupport ? false
, alsaLib
, pulseaudioSupport ? false
@ -68,6 +73,7 @@ in stdenv.mkDerivation rec {
makeWrapper
mbedtls
]
++ optional scriptingSupport [ luajit swig python3 ]
++ optional alsaSupport alsaLib
++ optional pulseaudioSupport libpulseaudio;

View file

@ -2,14 +2,13 @@
stdenv.mkDerivation rec {
pname = "QMediathekView";
version = "2017-04-16";
name = "${pname}-${version}";
version = "2019-01-06";
src = fetchFromGitHub {
owner = "adamreichold";
repo = pname;
rev = "8c69892b95bf6825bd06a8c594168a98fe7cb2d1";
sha256 = "1wca1w4iywd3hmiwcqx6fv79p3x5n1cgbw2liw3hs24ch3z54ckm";
rev = "e098aaec552ec4e367078bf19953a08067316b4b";
sha256 = "0i9hac9alaajbra3lx23m0iiq6ww4is00lpbzg5x70agjrwj0nd6";
};
postPatch = ''

View file

@ -1,9 +1,8 @@
{ stdenv, lib, fetchFromGitHub, removeReferencesTo
, go, btrfs-progs }:
{ stdenv, lib, fetchFromGitHub, buildGoPackage, btrfs-progs, go-md2man, utillinux }:
with lib;
stdenv.mkDerivation rec {
buildGoPackage rec {
name = "containerd-${version}";
version = "1.2.1";
@ -14,34 +13,37 @@ stdenv.mkDerivation rec {
sha256 = "16zn6p1ky3yrgn53z8h9wza53ch91fj47wj5xgz6w4c57j30f66p";
};
goPackagePath = "github.com/containerd/containerd";
outputs = [ "bin" "out" "man" ];
hardeningDisable = [ "fortify" ];
buildInputs = [ removeReferencesTo go btrfs-progs ];
buildInputs = [ btrfs-progs go-md2man utillinux ];
buildFlags = "VERSION=v${version}";
BUILDTAGS = []
++ optional (btrfs-progs == null) "no_btrfs";
preConfigure = ''
# Extract the source
cd "$NIX_BUILD_TOP"
mkdir -p "go/src/github.com/containerd"
mv "$sourceRoot" "go/src/github.com/containerd/containerd"
export GOPATH=$NIX_BUILD_TOP/go:$GOPATH
'';
preBuild = ''
cd go/src/github.com/containerd/containerd
buildPhase = ''
cd go/src/${goPackagePath}
patchShebangs .
make binaries
'';
installPhase = ''
mkdir -p $out/bin
cp bin/* $out/bin
'';
for b in bin/*; do
install -Dm555 $b $bin/$b
done
preFixup = ''
find $out -type f -exec remove-references-to -t ${go} '{}' +
make man
manRoot="$man/share/man"
mkdir -p "$manRoot"
for manFile in man/*; do
manName="$(basename "$manFile")" # "docker-build.1"
number="$(echo $manName | rev | cut -d'.' -f1 | rev)"
mkdir -p "$manRoot/man$number"
gzip -c "$manFile" > "$manRoot/man$number/$manName.gz"
done
'';
meta = {

View file

@ -28,7 +28,7 @@ rec {
patches = [];
});
docker-containerd = (containerd.override { inherit go; }).overrideAttrs (oldAttrs: rec {
docker-containerd = containerd.overrideAttrs (oldAttrs: rec {
name = "docker-containerd-${version}";
inherit version;
src = fetchFromGitHub {
@ -39,8 +39,6 @@ rec {
};
hardeningDisable = [ "fortify" ];
buildInputs = [ removeReferencesTo go btrfs-progs ];
});
docker-tini = tini.overrideAttrs (oldAttrs: rec {

View file

@ -316,14 +316,21 @@ rec {
# Files to add to the layer.
contents,
baseJson,
extraCommands,
uid ? 0, gid ? 0,
}:
runCommand "${name}-customisation-layer" {
buildInputs = [ jshon rsync tarsum ];
inherit extraCommands;
}
''
cp -r ${contents}/ ./layer
if [[ -n $extraCommands ]]; then
chmod ug+w layer
(cd layer; eval "$extraCommands")
fi
# Tar up the layer and throw it into 'layer.tar'.
echo "Packing layer..."
mkdir $out
@ -494,6 +501,8 @@ rec {
# Time of creation of the image. Passing "now" will make the
# created date be the time of building.
created ? "1970-01-01T00:00:01Z",
# Optional bash script to run on the files prior to fixturizing the layer.
extraCommands ? "", uid ? 0, gid ? 0,
# Docker's lowest maximum layer limit is 42-layers for an old
# version of the AUFS graph driver. We pick 24 to ensure there is
# plenty of room for extension. I believe the actual maximum is
@ -501,8 +510,6 @@ rec {
maxLayers ? 24
}:
let
uid = 0;
gid = 0;
baseName = baseNameOf name;
contentsEnv = symlinkJoin { name = "bulk-layers"; paths = (if builtins.isList contents then contents else [ contents ]); };
@ -531,7 +538,7 @@ rec {
name = baseName;
contents = contentsEnv;
baseJson = configJson;
inherit uid gid;
inherit uid gid extraCommands;
};
result = runCommand "docker-image-${baseName}.tar.gz" {
buildInputs = [ jshon pigz coreutils findutils jq ];

View file

@ -155,6 +155,7 @@ rec {
layered-image = pkgs.dockerTools.buildLayeredImage {
name = "layered-image";
tag = "latest";
extraCommands = ''echo "(extraCommand)" > extraCommands'';
config.Cmd = [ "${pkgs.hello}/bin/hello" ];
contents = [ pkgs.hello pkgs.bash pkgs.coreutils ];
};

View file

@ -2,19 +2,24 @@
let
version = "0.133";
in fetchzip {
in stdenv.mkDerivation {
name = "culmus-${version}";
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
src = fetchzip {
url = "mirror://sourceforge/culmus/culmus/${version}/culmus-${version}.tar.gz";
sha256 = "0q80j3vixn364sc23hcy6098rkgy0kb4p91lky6224am1dwn2qmr";
};
postFetch = ''
tar -xzvf $downloadedFile --strip-components=1
mkdir -p $out/share/fonts/truetype
installPhase = ''
mkdir -p $out/share/fonts/{truetype,type1}
cp -v *.pfa $out/share/fonts/type1/
cp -v *.afm $out/share/fonts/type1/
cp -v fonts.scale-type1 $out/share/fonts/type1/fonts.scale
cp -v *.ttf $out/share/fonts/truetype/
cp -v *.otf $out/share/fonts/truetype/
cp -v fonts.scale-ttf $out/share/fonts/truetype/fonts.scale
'';
sha256 = "1jxg2wf4kwasp5cia00nki2lrcdnhsyh4yy7d05l0a9bim5hq2lr";
meta = {
description = "Culmus Hebrew fonts";
longDescription = "The Culmus project aims at providing the Hebrew-speaking GNU/Linux and Unix community with a basic collection of Hebrew fonts for X Windows.";

View file

@ -1,35 +0,0 @@
{ stdenv, intltool, fetchurl, pkgconfig
, gtk3, glib, wrapGAppsHook
, itstool, gnome3, libxml2 }:
let
pname = "gnome-system-log";
version = "3.9.90";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "9eeb51982d347aa7b33703031e2c1d8084201374665425cd62199649b29a5411";
};
doCheck = true;
nativeBuildInputs = [ pkgconfig intltool itstool wrapGAppsHook libxml2 ];
buildInputs = [ gtk3 glib gnome3.gsettings-desktop-schemas gnome3.defaultIconTheme ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
attrPath = "gnome3.${pname}";
versionPolicy = "none";
};
};
meta = with stdenv.lib; {
description = "Graphical, menu-driven viewer that you can use to view and monitor your system logs";
maintainers = gnome3.maintainers;
license = licenses.gpl2;
platforms = platforms.linux;
};
}

View file

@ -19,7 +19,7 @@ lib.makeScope pkgs.newScope (self: with self; {
optionalPackages = with gnome3; [ baobab eog epiphany evince
gucharmap nautilus totem vino yelp gnome-bluetooth
gnome-calculator gnome-contacts gnome-font-viewer gnome-screenshot
gnome-system-log gnome-system-monitor simple-scan
gnome-system-monitor simple-scan
gnome-terminal gnome-user-docs evolution file-roller gedit
gnome-clocks gnome-music gnome-tweaks gnome-photos
nautilus-sendto dconf-editor vinagre gnome-weather gnome-logs
@ -126,8 +126,6 @@ lib.makeScope pkgs.newScope (self: with self; {
gnome-software = callPackage ./core/gnome-software { };
gnome-system-log = callPackage ./core/gnome-system-log { };
gnome-system-monitor = callPackage ./core/gnome-system-monitor { };
gnome-terminal = callPackage ./core/gnome-terminal { };

View file

@ -1,54 +1,131 @@
{ stdenv, fetchFromGitHub
{ stdenv, fetchFromGitHub, fetchFromGitLab
, llvmPackages
, cmake, boehmgc, gmp, zlib, ncurses, boost
, cmake, boehmgc, gmp, zlib, ncurses, boost, libelf
, python, git, sbcl
, wafHook
}:
let
sicl = fetchFromGitHub {
owner = "Bike";
repo = "SICL";
rev = "78052fb5f02a3814eb7295f3dcac09f21f98702b";
sha256 = "0wnmp40310ls6q9gkr5ysfkj2qirq26ljjicnkqifc53mm0ghz4i";
};
cst = fetchFromGitHub {
owner = "robert-strandh";
repo = "Concrete-Syntax-Tree";
rev = "8d8c5abf8f1690cb2b765241d81c2eb86d60d77e";
sha256 = "1rs8a5nbfffdyli126sccd0z1a8h5axp222b4pgwvgfxsb9w7g3s";
};
c2mop = fetchFromGitHub {
owner = "pcostanza";
repo = "closer-mop";
rev = "d4d1c7aa6aba9b4ac8b7bb78ff4902a52126633f";
sha256 = "1amcv0f3vbsq0aqhai7ki5bi367giway1pbfxyc47r7q3hq5hw3c";
};
acclimation = fetchFromGitHub {
owner = "robert-strandh";
repo = "Acclimation";
rev = "dd15c86b0866fc5d8b474be0da15c58a3c04c45c";
sha256 = "0ql224qs3zgflvdhfbca621v3byhhqfb71kzy70bslyczxv1bsh2";
};
eclector = fetchFromGitHub {
owner = "robert-strandh";
repo = "Eclector";
rev = "287ce817c0478668bd389051d2cc6b26ddc62ec9";
sha256 = "0v7mgkq49ddyx5vvsradcp772y5l7cv9xrll3280hyginpm8w6q3";
};
alexandria = fetchFromGitHub {
owner = "clasp-developers";
repo = "alexandria";
rev = "e5c54bc30b0887c237bde2827036d17315f88737";
sha256 = "14h7a9fwimiw9gqxjm2h47d95bfhrm7b81f6si7x8vy18d78fn4g";
};
mps = fetchFromGitHub {
owner = "Ravenbrook";
repo = "mps";
rev = "b8a05a3846430bc36c8200f24d248c8293801503";
sha256 = "1q2xqdw832jrp0w9yhgr8xihria01j4z132ac16lr9ssqznkprv6";
};
asdf = fetchFromGitLab {
domain = "gitlab.common-lisp.net";
owner = "asdf";
repo = "asdf";
rev = "3.3.1.2";
sha256 = "0ljr2vc0cb2wrijcyjmp9hcaj2bdhh05ci3zf4f43hdq6i2fgg6g";
};
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
pname = "clasp";
version = "0.4.99.20170801";
version = "0.8.99.20181128";
src = fetchFromGitHub {
owner = "drmeister";
repo = "clasp";
rev = "525ce1cffff39311e3e7df6d0b71fa267779bdf5";
sha256 = "1jqya04wybgxnski341p5sycy2gysxad0s5q8d59z0f6ckj3v8k1";
rev = "2f2b52ccb750048460562b5987a7eaf7a1aa4445";
sha256 = "0ra55vdnk59lygwzlxr5cg16vb9c45fmg59wahaxclwm461w7fwz";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake python git sbcl wafHook ];
nativeBuildInputs = [ cmake python git sbcl wafHook ] ++
(with llvmPackages; [ llvm clang ]);
buildInputs = with llvmPackages; (
builtins.map (x: stdenv.lib.overrideDerivation x
(x: {NIX_CFLAGS_COMPILE= (x.NIX_CFLAGS_COMPILE or "") + " -frtti"; }))
[ llvm clang clang-unwrapped clang ]) ++
buildInputs = with llvmPackages;
(
builtins.map (x: stdenv.lib.overrideDerivation x
(x: {NIX_CFLAGS_COMPILE= (x.NIX_CFLAGS_COMPILE or "") + " -frtti"; }))
[ llvm clang clang-unwrapped clang ]) ++
[
gmp zlib ncurses
boost boehmgc
boost boehmgc libelf
(boost.override {enableStatic = true; enableShared = false;})
(stdenv.lib.overrideDerivation boehmgc
(x: {configureFlags = (x.configureFlags or []) ++ ["--enable-static"];}))
];
NIX_CFLAGS_COMPILE = " -frtti ";
NIX_CXXSTDLIB_COMPILE = " -frtti ";
postPatch = ''
echo "
INSTALL_PATH_PREFIX = '$out'
PREFIX = '$out'
" | sed -e 's/^ *//' > wscript.config
mkdir -p src/lisp/kernel/contrib/sicl
mkdir -p src/lisp/kernel/contrib/Concrete-Syntax-Tree
mkdir -p src/lisp/kernel/contrib/closer-mop
mkdir -p src/lisp/kernel/contrib/Acclimation
mkdir -p src/lisp/kernel/contrib/Eclector
mkdir -p src/lisp/kernel/contrib/alexandria
mkdir -p src/mps
mkdir -p src/lisp/modules/asdf
cp -rfT "${sicl}" src/lisp/kernel/contrib/sicl
cp -rfT "${cst}" src/lisp/kernel/contrib/Concrete-Syntax-Tree
cp -rfT "${c2mop}" src/lisp/kernel/contrib/closer-mop
cp -rfT "${acclimation}" src/lisp/kernel/contrib/Acclimation
cp -rfT "${eclector}" src/lisp/kernel/contrib/Eclector
cp -rfT "${alexandria}" src/lisp/kernel/contrib/alexandria
cp -rfT "${mps}" src/mps
cp -rfT "${asdf}" src/lisp/modules/asdf
chmod -R u+rwX src
( cd src/lisp/modules/asdf; make )
'';
buildTargets = "build_cboehm";
installTargets = "install_cboehm";
CLASP_SRC_DONTTOUCH = "true";
meta = {
inherit version;
description = ''A Common Lisp implementation based on LLVM with C++ integration'';
license = stdenv.lib.licenses.lgpl21Plus ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
# Large, long to build, a private build of clang is needed, a prerelease.
hydraPlatforms = [];
homepage = "https://github.com/drmeister/clasp";
broken = true; # 2018-09-08, no successful build since 2018-01-03
};
}

View file

@ -1,11 +1,11 @@
{ stdenv, fetchFromGitHub
, makeWrapper, unzip, which
, curl, tzdata, gdb, darwin
, curl, tzdata, gdb, darwin, git
, callPackage, targetPackages, ldc
, version ? "2.083.1"
, dmdSha256 ? "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90"
, druntimeSha256 ? "1hm9p59ih21yv8x7cqjhkyy94677q4f8wk9fs9i1rybx8x19njyn"
, phobosSha256 ? "1zmz0f1wj0dgxy2cy63ljjc1sl2sgb7ij8bamlxw9nxrchwi3l43"
, version ? "2.084.0"
, dmdSha256 ? "1v61spdamncl8c1bzjc19b03p4jl0ih5zq9b7cqsy9ix7qaxmikf"
, druntimeSha256 ? "0vp414j6s11l9s54v81np49mv60ywmd7nnk41idkbwrq0nz4sfrq"
, phobosSha256 ? "1wp7z1x299b0w9ny1ah2wrfhrs05vc4bk51csgw9774l3dqcnv53"
}:
let
@ -42,50 +42,22 @@ let
sourceRoot = ".";
# https://issues.dlang.org/show_bug.cgi?id=19553
hardeningDisable = [ "fortify" ];
postUnpack = ''
patchShebangs .
# Remove cppa test for now because it doesn't work.
rm dmd/test/runnable/cppa.d
rm dmd/test/runnable/extra-files/cppb.cpp
''
+ stdenv.lib.optionalString (stdenv.hostPlatform.isDarwin) ''
rm dmd/test/runnable/test16096.sh
'';
# Compile with PIC to prevent colliding modules with binutils 2.28.
# https://issues.dlang.org/show_bug.cgi?id=17375
usePIC = "-fPIC";
phobosPatches = ''
# Ugly hack so the dlopen call has a chance to succeed.
# https://issues.dlang.org/show_bug.cgi?id=15391
substituteInPlace phobos/std/net/curl.d \
--replace libcurl.so ${curl.out}/lib/libcurl.so
# phobos uses curl, so we need to patch the path to the lib.
substituteInPlace phobos/posix.mak \
--replace "-soname=libcurl.so.4" "-soname=${curl.out}/lib/libcurl.so.4"
'';
postPatch = ''
substituteInPlace druntime/test/common.mak \
--replace "DFLAGS:=" "DFLAGS:=${usePIC} "
substituteInPlace dmd/test/compilable/extra-files/ddocYear.html \
--replace "2018" "__YEAR__"
substituteInPlace dmd/src/posix.mak \
--replace "DFLAGS :=" "DFLAGS += -link-defaultlib-shared=false"
''
+ phobosPatches
+ stdenv.lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace dmd/posix.mak \
--replace MACOSX_DEPLOYMENT_TARGET MACOSX_DEPLOYMENT_TARGET_
substituteInPlace dmd/test/runnable/test16096.sh \
--replace "{EXT}" "{EXE}"
'';
nativeBuildInputs = [ ldc makeWrapper unzip which gdb ]
nativeBuildInputs = [ ldc makeWrapper unzip which gdb git ]
++ stdenv.lib.optional stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
Foundation
@ -109,7 +81,8 @@ let
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd}
cd ../phobos
echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -J$(pwd)"
echo ${curl.out}/lib/libcurl.so > LibcurlPathFile
make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)"
cd ..
'';
@ -119,7 +92,7 @@ let
checkPhase = ''
cd dmd
make -j$NIX_BUILD_CORES -C test -f Makefile PIC=1 DMD=${pathToDmd} BUILD=release SHARED=0 SHELL=$SHELL
make -j$NIX_BUILD_CORES -C test -f Makefile PIC=1 CC=$CXX DMD=${pathToDmd} BUILD=release SHARED=0 SHELL=$SHELL
cd ../druntime
make -j$NIX_BUILD_CORES -f posix.mak unittest PIC=1 DMD=${pathToDmd} BUILD=release
cd ..
@ -194,15 +167,14 @@ let
sourceRoot = ".";
postPatch = dmdBuild.phobosPatches;
nativeBuildInputs = dmdBuild.nativeBuildInputs;
buildInputs = dmdBuild.buildInputs;
buildPhase = ''
cd phobos
echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile
make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -J$(pwd)"
echo ${curl.out}/lib/libcurl.so > LibcurlPathFile
make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -version=LibcurlPath -J$(pwd)"
'';
installPhase = ''

View file

@ -0,0 +1,39 @@
{ stdenv, lib, fetchurl, ncurses5, python27 }:
with lib;
stdenv.mkDerivation rec {
name = "gcc-arm-embedded-${version}";
version = "8-2018-q4-major";
subdir = "8-2018q4";
urlString = "https://developer.arm.com/-/media/Files/downloads/gnu-rm/${subdir}/gcc-arm-none-eabi-${version}-linux.tar.bz2";
src = fetchurl { url=urlString; sha256="fb31fbdfe08406ece43eef5df623c0b2deb8b53e405e2c878300f7a1f303ee52"; };
phases = [ "unpackPhase" "installPhase" "fixupPhase" ];
installPhase = ''
mkdir -p $out
cp -r * $out
'';
dontPatchELF = true;
dontStrip = true;
preFixup = ''
find $out -type f | while read f; do
patchelf $f > /dev/null 2>&1 || continue
patchelf --set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) "$f" || true
patchelf --set-rpath ${stdenv.lib.makeLibraryPath [ "$out" stdenv.cc.cc ncurses5 python27 ]} "$f" || true
done
'';
meta = {
description = "Pre-built GNU toolchain from ARM Cortex-M & Cortex-R processors (Cortex-M0/M0+/M3/M4/M7, Cortex-R4/R5/R7/R8)";
homepage = https://developer.arm.com/open-source/gnu-toolchain/gnu-rm;
license = with licenses; [ bsd2 gpl2 gpl3 lgpl21 lgpl3 mit ];
maintainers = with maintainers; [ prusnak ];
platforms = platforms.linux;
};
}

View file

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
buildInputs = [ coq ] ++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ]);
propagatedBuildInputs = [ ssreflect equations ];
enableParallelBuilding = false;
buildFlags = [ "JOBS=$(NIX_BUILD_CORES)" ];
installPhase = ''
make -f Makefile.coq COQLIB=$out/lib/coq/${coq.coq-version}/ install

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "clojure-${version}";
version = "1.10.0.403";
version = "1.10.0.411";
src = fetchurl {
url = "https://download.clojure.org/install/clojure-tools-${version}.tar.gz";
sha256 = "0jsyd0vr1qfqs0dz560hyfya553jhr4m4msf5x0n610yzvbqym4c";
sha256 = "00bhn6w9iwhgmyx89lk97q19phpm9vh45m3m1pi7d31gldb6v0zh";
};
buildInputs = [ makeWrapper ];

View file

@ -263,12 +263,10 @@ in {
};
php73 = generic {
version = "7.3.0";
sha256 = "0rvwx37dsmxivgrf4wfc1y778iln498c6a40biy9k6lnr6p7s9ks";
version = "7.3.1";
sha256 = "13iqfkz9rmx9vy106lvw1nbk88qgwdkvxam0l5s14r7jsw62pvxg";
# https://bugs.php.net/bug.php?id=71041
# https://bugs.php.net/bug.php?id=76826
extraPatches = [ ./fix-bug-71041.patch ]
++ optional stdenv.isDarwin ./php73-darwin-isfinite.patch;
extraPatches = optional stdenv.isDarwin ./php73-darwin-isfinite.patch;
};
}

View file

@ -0,0 +1,33 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "tinyscheme-${version}";
version = "1.41";
src = fetchurl {
url = "mirror://sourceforge/tinyscheme/${name}.tar.gz";
sha256 = "168rk4zrlhsknbvldq2jsgabpwlqkx6la44gkqmijmf7jhs11h7a";
};
patchPhase = ''
substituteInPlace scheme.c --replace "init.scm" "$out/lib/init.scm"
'';
installPhase = ''
mkdir -p $out/bin $out/lib
cp init.scm $out/lib
cp scheme $out/bin/tinyscheme
'';
meta = with stdenv.lib; {
description = "Lightweight Scheme implementation";
longDescription = ''
TinyScheme is a lightweight Scheme interpreter that implements as large a
subset of R5RS as was possible without getting very large and complicated.
'';
homepage = http://tinyscheme.sourceforge.net/;
license = licenses.bsdOriginal;
maintainers = [ maintainers.ebzzry ];
platforms = platforms.unix;
};
}

View file

@ -25,7 +25,8 @@ stdenv.mkDerivation rec {
'';
patches = [ (fetchpatch {
url = "https://gitweb.gentoo.org/proj/musl.git/plain/dev-libs/boehm-gc/files/boehm-gc-7.6.0-sys_select.patch";
name = "boehm-gc-7.6.0-sys_select.patch";
url = "https://gitweb.gentoo.org/proj/musl.git/plain/dev-libs/boehm-gc/files/boehm-gc-7.6.0-sys_select.patch?id=85b6a600996bdd71162b357e9ba93d8559342432";
sha256 = "1gydwlklvci30f5dpp5ccw2p2qpph5y41r55wx9idamjlq66fbb3";
}) ] ++
# https://github.com/ivmai/bdwgc/pull/208

View file

@ -96,7 +96,7 @@
, libxcbshapeExtlib ? true # X11 grabbing shape rendering
, libXv ? null # Xlib support
, lzma ? null # xz-utils
, nvenc ? false, nvidia-video-sdk ? null # NVIDIA NVENC support
, nvenc ? false, nvidia-video-sdk ? null, nv-codec-headers ? null # NVIDIA NVENC support
, callPackage # needed for NVENC to access external ffmpeg nvidia headers
, openal ? null # OpenAL 1.1 capture support
#, opencl ? null # OpenCL code
@ -176,8 +176,6 @@
let
inherit (stdenv) isCygwin isFreeBSD isLinux;
inherit (stdenv.lib) optional optionals optionalString enableFeature;
nv-codec-headers = callPackage ./nv-codec-headers.nix { };
in
/*

View file

@ -0,0 +1,36 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
, zlib, libssh2, openssl, http-parser, curl
, libiconv, Security
}:
stdenv.mkDerivation rec {
version = "0.27.7";
name = "libgit2-${version}";
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha";
};
cmakeFlags = [ "-DTHREADSAFE=ON" ];
nativeBuildInputs = [ cmake python pkgconfig ];
buildInputs = [ zlib libssh2 openssl http-parser curl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
enableParallelBuilding = true;
doCheck = false; # hangs. or very expensive?
meta = {
description = "The Git linkable library";
homepage = https://libgit2.github.com/;
license = stdenv.lib.licenses.gpl2;
platforms = with stdenv.lib.platforms; all;
};
}

View file

@ -1,18 +1,18 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig, python
, zlib, libssh2, openssl, http-parser, curl
{ stdenv, fetchFromGitHub, pkgconfig, cmake
, zlib, python, libssh2, openssl, curl, http-parser
, libiconv, Security
}:
stdenv.mkDerivation rec {
pname = "libgit2";
version = "0.27.7";
stdenv.mkDerivation (rec {
name = "libgit2-${version}";
version = "0.26.6";
# keep the version in sync with pythonPackages.pygit2 and libgit2-glib
src = fetchFromGitHub {
owner = "libgit2";
repo = "libgit2";
rev = "v${version}";
sha256 = "1q3mp7xjpbmdsnk4sdzf2askbb4pgbxcmr1h7y7zk2738dndwkha";
sha256 = "17pjvprmdrx4h6bb1hhc98w9qi6ki7yl57f090n9kbhswxqfs7s3";
};
cmakeFlags = [ "-DTHREADSAFE=ON" ];
@ -22,7 +22,7 @@ stdenv.mkDerivation rec {
buildInputs = [ zlib libssh2 openssl http-parser curl ]
++ stdenv.lib.optional stdenv.isDarwin Security;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
propagatedBuildInputs = stdenv.lib.optional (!stdenv.isLinux) [ libiconv ];
enableParallelBuilding = true;
@ -34,4 +34,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl2;
platforms = with platforms; all;
};
}
} // stdenv.lib.optionalAttrs (!stdenv.isLinux) {
})

View file

@ -32,4 +32,8 @@ stdenv.mkDerivation rec {
})
./fix_pkgconfig_includedir.patch
];
postPatch = ''
sed -i -r -e 's/p(bad|good) = .*/p\1 = pbase/' tests/check/meson.build
'';
}

View file

@ -35,11 +35,16 @@ stdenv.mkDerivation rec {
url = "https://bug757142.bugzilla-attachments.gnome.org/attachment.cgi?id=344123";
sha256 = "0g6fhqcv8spfy3mfmxpyji93k8d4p4q4fz1v9a1c1cgcwkz41d7p";
})
# https://gitlab.gnome.org/GNOME/gtk/issues/1521
# 3.24.2: https://gitlab.gnome.org/GNOME/gtk/issues/1521
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/gtk/commit/2905fc861acda3d134a198e56ef2f6c962ad3061.patch;
sha256 = "0y8ljny59kgdhrcfpimi2r082bax60d5kflw1qj9k1mnzjcvjjwl";
})
# 3.24.2: https://gitlab.gnome.org/GNOME/gtk/issues/1523
(fetchpatch {
url = https://gitlab.gnome.org/GNOME/gtk/commit/e3a1593a0984cc0156ec1892a46af8f256a64878.patch;
sha256 = "0akvp1r8xlzf5amk9gmk7b5sabr1wbmg3ak15rppsid7nf9f5dqf";
})
];
buildInputs = [ libxkbcommon epoxy json-glib isocodes ]

View file

@ -14,7 +14,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja pkgconfig vala gtk-doc docbook_xsl docbook_xml_dtd_412 gobject-introspection ];
buildInputs = [ glib gdk_pixbuf ];
doCheck = true;
# FIXME: Turn on again when https://github.com/NixOS/nixpkgs/issues/53701
# is fixed on master.
doCheck = false;
passthru = {
updateScript = gnome3.updateScript {

View file

@ -2,12 +2,13 @@
# Note that this does not provide the ngspice command-line utility. For that see
# the ngspice derivation.
stdenv.mkDerivation {
name = "libngspice-29";
stdenv.mkDerivation rec {
name = "libngspice-${version}";
version = "30";
src = fetchurl {
url = "mirror://sourceforge/ngspice/ngspice-29.tar.gz";
sha256 = "0jjwz73naq7l9yhwdqbpnrfckywp2ffkppivxjv8w92zq7xhyvcd";
url = "mirror://sourceforge/ngspice/ngspice-${version}.tar.gz";
sha256 = "15v0jdfy2a2zxp8dmy04fdp7w7a4vwvffcwa688r81b86wphxzh8";
};
nativeBuildInputs = [ flex bison ];

View file

@ -47,7 +47,8 @@ stdenv.mkDerivation rec {
"-Dintrospection=enabled"
];
doCheck = true;
# TODO; see #53293 etc.
#doCheck = true;
meta = with stdenv.lib; {
homepage = https://nice.freedesktop.org/wiki/;

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "mps-${version}";
version = "1.116.0";
version = "1.117.0";
src = fetchurl {
url = "https://www.ravenbrook.com/project/mps/release/${version}/mps-kit-${version}.tar.gz";
sha256 = "1k7vnanpgawnj84x2xs6md57pfib9p7c3acngqzkl3c2aqw8qay0";
sha256 = "04ix4l7lk6nxxk9sawpnxbybvqb82lks5606ym10bc1qbc2kqdcz";
};
nativeBuildInputs = [ autoreconfHook ];
@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
# needed for 1.116.0 to build with gcc7
NIX_CFLAGS_COMPILE = [
"-Wno-implicit-fallthrough"
"-Wno-error=clobbered"
];

View file

@ -2,18 +2,18 @@
stdenv.mkDerivation rec {
name = "nv-codec-headers-${version}";
version = "n8.1.24.2";
version = "8.2.15.6";
src = fetchgit {
url = "https://git.videolan.org/git/ffmpeg/nv-codec-headers.git";
rev = "${version}";
sha256 = "122i3f6whiz5yp44dhk73ifr1973z8vvfbg4216vb782bl8b5bam";
rev = "n${version}";
sha256 = "0216ww8byjxz639kagyw0mr9vxxwj89xdnj448d579vjr54jychv";
};
makeFlags = [ "PREFIX=$(out)" ];
meta = {
description = "ffmpeg nvidia headers for NVENC";
description = "FFmpeg version of headers for NVENC";
homepage = http://ffmpeg.org/;
license = stdenv.lib.licenses.gpl3Plus;
maintainers = [ stdenv.lib.maintainers.MP2E ];

View file

@ -3,13 +3,13 @@
stdenv.mkDerivation rec {
name = "openwsman-${version}";
version = "2.6.5";
version = "2.6.9";
src = fetchFromGitHub {
owner = "Openwsman";
repo = "openwsman";
rev = "v${version}";
sha256 = "1r0zslgpcr4m20car4s3hsccy10xcb39qhpw3dhpjv42xsvvs5xv";
sha256 = "19s5h551ppxmi2kljf8z58jjc6yrpczbxdrl4hh2l4jxv7iphk5i";
};
nativeBuildInputs = [ cmake pkgconfig ];
@ -18,6 +18,8 @@ stdenv.mkDerivation rec {
cmakeFlags = [
"-DCMAKE_BUILD_RUBY_GEM=no"
"-DBUILD_PYTHON=no"
"-DBUILD_PYTHON3=yes"
];
preConfigure = ''

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, gfortran }:
{ stdenv, fetchurl, gfortran, perl }:
stdenv.mkDerivation rec {
name = "hoppet-${version}";
@ -10,9 +10,14 @@ stdenv.mkDerivation rec {
};
buildInputs = [ gfortran ];
nativeBuildInputs = [ perl ];
enableParallelBuilding = true;
preConfigure = ''
patchShebangs .
'';
meta = with stdenv.lib; {
description = "Higher Order Perturbative Parton Evolution Toolkit";
license = licenses.gpl2;

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, python3, wafHook }:
{ stdenv, fetchFromGitHub, python3, wafHook, fetchpatch }:
stdenv.mkDerivation rec {
name = "termbox-${version}";
@ -9,7 +9,18 @@ stdenv.mkDerivation rec {
rev = "v${version}";
sha256 = "08yqxzb8fny8806p7x8a6f3phhlbfqdd7dhkv25calswj7w1ssvs";
};
# patch which updates the `waf` version used to build
# to make the package buildable on Python 3.7
patches = [
(fetchpatch {
url = https://github.com/nsf/termbox/commit/6fe63ac3ad63dc2c3ac45b770541cc8b7a1d2db7.patch;
sha256 = "1s5747v51sdwvpsg6k9y1j60yn9f63qnylkgy8zrsifjzzd5fzl6";
})
];
nativeBuildInputs = [ python3 wafHook ];
meta = with stdenv.lib; {
description = "Library for writing text-based user interfaces";
license = licenses.mit;

View file

@ -0,0 +1,35 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, ocamlbuild, lwt_log }:
let pname = "resource-pooling"; in
if !stdenv.lib.versionAtLeast ocaml.version "4.06"
then throw "${pname} is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
version = "0.5.2";
name = "ocaml${ocaml.version}-${pname}-${version}";
src = fetchFromGitHub {
owner = "ocsigen";
repo = pname;
rev = version;
sha256 = "00rz1i61w2dy108hzv38rblnsv6b56b5a1mk5h3zddpivcljp2dh";
};
buildInputs = [ ocaml findlib ocamlbuild ];
propagatedBuildInputs = [ lwt_log ];
configurePhase = "ocaml setup.ml -configure --prefix $out";
buildPhase = "ocaml setup.ml -build";
createFindlibDestdir = true;
installPhase = "ocaml setup.ml -install";
meta = {
inherit (src.meta) homepage;
inherit (ocaml.meta) platforms;
description = "A library for pooling resources like connections, threads, or similar";
license = stdenv.lib.licenses.mit;
maintainers = [ stdenv.lib.maintainers.vbgl ];
};
}

View file

@ -8,33 +8,37 @@
, async-timeout
, yarl
, idna-ssl
, typing-extensions
, pytestrunner
, pytest
, gunicorn
, pytest-mock
, async_generator
, pytestrunner
, pytest-timeout
, async_generator
, pytest_xdist
, pytestcov
, pytest-mock
, trustme
, brotlipy
}:
buildPythonPackage rec {
pname = "aiohttp";
version = "3.4.4";
version = "3.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "1ykm6kdjkrg556j0zd7dx2l1rsrbh0d9g27ivr6dmaahz9pyrbsi";
sha256 = "7967b760d0e96eb7ac6b20a9143112ce5c03a00b4f74d8a5ee66c8e88e6b6800";
};
disabled = pythonOlder "3.5";
checkInputs = [ pytest gunicorn pytest-mock async_generator pytestrunner pytest-timeout ];
checkInputs = [
pytestrunner pytest gunicorn pytest-timeout async_generator pytest_xdist
pytest-mock pytestcov trustme brotlipy
];
propagatedBuildInputs = [ attrs chardet multidict async-timeout yarl ]
++ lib.optional (pythonOlder "3.7") idna-ssl;
# Several test failures. Need to be looked into.
doCheck = false;
++ lib.optionals (pythonOlder "3.7") [ idna-ssl typing-extensions ];
meta = with lib; {
description = "Asynchronous HTTP Client/Server for Python and asyncio";

View file

@ -0,0 +1,33 @@
{ lib, buildPythonPackage, fetchPypi
, redis
, memcached
, msgpack-python
}:
buildPythonPackage rec {
pname = "cachy";
version = "0.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "0v6mjyhgx6j7ya20bk69cr3gdzdkdf6psay0h090rscclgji65dp";
};
propagatedBuildInputs = [
redis
memcached
msgpack-python
];
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
meta = with lib; {
homepage = https://github.com/sdispater/cachy;
description = "Cachy provides a simple yet effective caching library";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi
, pylev, pastel, clikit }:
buildPythonPackage rec {
pname = "cleo";
version = "0.7.2";
src = fetchPypi {
inherit pname version;
sha256 = "091nzpfp5incd2fzqych78rvyx4i3djr50cnizbjzr3dc7g00l3s";
};
propagatedBuildInputs = [
pylev
pastel
clikit
];
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
meta = with lib; {
homepage = https://github.com/sdispater/cleo;
description = "Allows you to create beautiful and testable command-line interfaces";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -0,0 +1,30 @@
{ lib, buildPythonPackage, fetchPypi
, isPy27, isPy34
, pylev, pastel, typing, enum34 }:
buildPythonPackage rec {
pname = "clikit";
version = "0.2.3";
src = fetchPypi {
inherit pname version;
sha256 = "0zr1s0xhk62p9a6zcp5whvsb27lddyk8gx03k9l8q18jp7y3igbv";
};
propagatedBuildInputs = [
pylev pastel
] ++ lib.optional (isPy27 || isPy34) typing
++ lib.optional isPy27 enum34;
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
meta = with lib; {
homepage = https://github.com/sdispater/clikit;
description = "A group of utilities to build beautiful and testable command line interfaces";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -1,4 +1,7 @@
{ lib, buildPythonPackage, fetchPypi, six, cryptography }:
{ lib, buildPythonPackage, fetchPypi
, six, cryptography
, mock, pyfakefs
}:
buildPythonPackage rec {
pname = "fido2";
@ -9,12 +12,10 @@ buildPythonPackage rec {
sha256 = "1pl8d2pr6jzqj4y9qiaddhjgnl92kikjxy0bgzm2jshkzzic8mp3";
};
# The pypi package does not include tests
# Check https://github.com/Yubico/python-fido2/pull/8
doCheck = false;
propagatedBuildInputs = [ six cryptography ];
checkInputs = [ mock pyfakefs ];
meta = with lib; {
description = "Provides library functionality for FIDO 2.0, including communication with a device over USB.";
homepage = https://github.com/Yubico/python-fido2;

View file

@ -0,0 +1,22 @@
{ buildPythonPackage, fetchPypi, lib, requests, pytest, pytestcov, mock }:
buildPythonPackage rec {
pname = "google-i18n-address";
version = "2.3.4";
src = fetchPypi {
inherit pname version;
sha256 = "0f1j1lp9bmllkzhciw0lxi7ipm8w461n0p97mz9714br0cs9glm1";
};
propagatedBuildInputs = [ requests ];
checkInputs = [ pytest pytestcov mock ];
meta = with lib; {
description = "Google's i18n address data packaged for Python";
homepage = https://pypi.org/project/google-i18n-address/;
maintainers = with maintainers; [ ma27 ];
license = licenses.bsd3;
};
}

View file

@ -1,6 +1,7 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, glibcLocales
}:
buildPythonPackage rec {
@ -12,6 +13,10 @@ buildPythonPackage rec {
sha256 = "8eec9c1f4bfae3408a3f30500261f7e6a65912dc138526ea054f9ad98892e9d2";
};
buildInputs = [ glibcLocales ];
LANG = "en_US.UTF-8";
meta = with stdenv.lib; {
description = "Pure-Python HPACK header compression";
homepage = "http://hyper.rtfd.org";

View file

@ -3,14 +3,15 @@
}:
buildPythonPackage rec {
version = "4.12.2";
version = "4.13.0";
pname = "mt-940";
# No tests in PyPI tarball
src = fetchFromGitHub {
owner = "WoLpH";
repo = "mt940";
rev = "v${version}";
sha256 = "0l7q8v00dhpbc9mh6baaaqc55kf44rszygx28dq3pwp5b5x33nir";
sha256 = "0p6z4ipj0drph3ryn8mnb3xn0vjfv54y1c5w5i9ixrxwz48h6bga";
};
postPatch = ''
@ -24,9 +25,8 @@ buildPythonPackage rec {
checkInputs = [ pyyaml pytestpep8 pytestflakes pytest glibcLocales ];
# See https://github.com/WoLpH/mt940/issues/64 for the disabled test
checkPhase = ''
py.test -k "not mt940.models.FixedOffset"
py.test
'';
meta = with stdenv.lib; {

View file

@ -7,11 +7,11 @@
buildPythonPackage rec {
pname = "multidict";
version = "4.4.2";
version = "4.5.2";
src = fetchPypi {
inherit pname version;
sha256 = "3c11e92c3dfc321014e22fb442bc9eb70e01af30d6ce442026b0c35723448c66";
sha256 = "024b8129695a952ebd93373e45b5d341dbb87c17ce49637b34000093f243dd4f";
};
checkInputs = [ pytest pytestrunner pytestcov ];

View file

@ -30,21 +30,28 @@
, which
, bash
, glibcLocales
, callPackage
}:
assert !isPy3k -> configparser != null;
let
# This is a temporary convenience package for changes waiting to be merged into the primary rdflib repo.
neurdflib = callPackage ./neurdflib.nix { };
in
buildPythonPackage rec {
pname = "nipype";
version = "1.1.5";
version = "1.1.7";
src = fetchPypi {
inherit pname version;
sha256 = "d49bbe531cdbf0a049f1581e4d3c63231ff5978445cb380aa6e7f8f1d256a29c";
sha256 = "0iyi5w2h42bpssqj52ixm2kxp56yxfxdacb6xv5r24yv3hmwd4yn";
};
# see https://github.com/nipy/nipype/issues/2240
patches = [ ./prov-version.patch ];
patches = [ ./move-uneeded-requires.patch ];
postPatch = ''
substituteInPlace nipype/interfaces/base/tests/test_core.py \
@ -57,6 +64,7 @@ buildPythonPackage rec {
funcsigs
future
networkx
neurdflib
nibabel
numpy
packaging
@ -72,12 +80,24 @@ buildPythonPackage rec {
futures
];
checkInputs = [ pytest mock pytestcov pytest_xdist pytest-forked codecov which glibcLocales ];
checkInputs = [
codecov
glibcLocales
mock
pytest
pytest-forked
pytest_xdist
pytestcov
which
];
checkPhase = ''
LC_ALL="en_US.UTF-8" py.test -v --doctest-modules nipype
LC_ALL="en_US.UTF-8" pytest -v --doctest-modules nipype
'';
# See: https://github.com/nipy/nipype/issues/2839
doCheck = false;
meta = with stdenv.lib; {
homepage = http://nipy.org/nipype/;
description = "Neuroimaging in Python: Pipelines and Interfaces";

View file

@ -0,0 +1,31 @@
diff --git a/nipype/info.py b/nipype/info.py
index c6503ac..4379643 100644
--- a/nipype/info.py
+++ b/nipype/info.py
@@ -147,9 +147,6 @@ REQUIRES = [
'neurdflib',
'click>=%s' % CLICK_MIN_VERSION,
'funcsigs',
- 'pytest>=%s' % PYTEST_MIN_VERSION,
- 'pytest-xdist',
- 'mock',
'pydotplus',
'pydot>=%s' % PYDOT_MIN_VERSION,
'packaging',
@@ -159,7 +156,15 @@ REQUIRES = [
if sys.version_info <= (3, 4):
REQUIRES.append('configparser')
-TESTS_REQUIRES = ['pytest-cov', 'codecov', 'pytest-env', 'coverage<5']
+TESTS_REQUIRES = [
+ 'pytest>=%s' % PYTEST_MIN_VERSION,
+ 'pytest-xdist',
+ 'mock',
+ 'pytest-cov',
+ 'codecov',
+ 'pytest-env',
+ 'coverage<5'
+]
EXTRA_REQUIRES = {
'doc': ['Sphinx>=1.4', 'numpydoc', 'matplotlib', 'pydotplus', 'pydot>=1.2.3'],

View file

@ -0,0 +1,38 @@
{ lib
, buildPythonPackage
, fetchPypi
, isodate
, html5lib
, SPARQLWrapper
, networkx
, nose
, python
}:
buildPythonPackage rec {
pname = "neurdflib";
version = "5.0.0.post1";
src = fetchPypi {
inherit pname version;
sha256 = "1qgmprixqxycxpjk9wjdmjykma14qqa2wcbx4nsldxi0ga7i7vv5";
};
propagatedBuildInputs = [ isodate html5lib SPARQLWrapper ];
checkInputs = [ networkx nose ];
# Python 2 syntax
# Failing doctest
doCheck = false;
checkPhase = ''
${python.interpreter} run_tests.py
'';
meta = with lib; {
description = "A temporary convenience package for changes waiting to be merged into the primary rdflib repo";
homepage = https://pypi.org/project/neurdflib;
license = licenses.bsd3;
};
}

View file

@ -1,21 +0,0 @@
diff --git a/nipype/info.py b/nipype/info.py
index 1daa382e2..da338d0ea 100644
--- a/nipype/info.py
+++ b/nipype/info.py
@@ -108,7 +108,6 @@ DATEUTIL_MIN_VERSION = '2.2'
PYTEST_MIN_VERSION = '3.0'
FUTURE_MIN_VERSION = '0.16.0'
SIMPLEJSON_MIN_VERSION = '3.8.0'
-PROV_VERSION = '1.5.0'
CLICK_MIN_VERSION = '6.6.0'
PYDOT_MIN_VERSION = '1.2.3'
@@ -140,7 +139,7 @@ REQUIRES = [
'traits>=%s' % TRAITS_MIN_VERSION,
'future>=%s' % FUTURE_MIN_VERSION,
'simplejson>=%s' % SIMPLEJSON_MIN_VERSION,
- 'prov==%s' % PROV_VERSION,
+ 'prov<2',
'click>=%s' % CLICK_MIN_VERSION,
'funcsigs',
'pytest>=%s' % PYTEST_MIN_VERSION,

View file

@ -0,0 +1,26 @@
{ lib, buildPythonPackage, fetchFromGitHub, isPy3k, pytest }:
buildPythonPackage rec {
pname = "pastel";
version = "0.1.0";
# No tests in PyPi tarball
src = fetchFromGitHub {
owner = "sdispater";
repo = "pastel";
rev = version;
sha256 = "1b4ag7jr7j0sxly5g29imdq8g0d4ixhbck55dblr45mlsidydx0s";
};
checkInputs = [ pytest ];
checkPhase = ''
pytest tests -sq
'';
meta = with lib; {
homepage = https://github.com/sdispater/pastel;
description = "Bring colors to your terminal";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -1,21 +1,21 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, nose
, pygments
, isPy3k
}:
buildPythonPackage rec {
version = "0.8.0";
version = "0.9.2";
pname = "piep";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1wgkg1kc28jpya5k4zvbc9jmpa60b3d5c3gwxfbp15hw6smyqirj";
sha256 = "0b5anpsq16xkiisws95jif5s5mplkl1kdnhy0w0i6m0zcy50jnxq";
};
propagatedBuildInputs = [ pygments ];
checkInputs = [ nose ];
meta = with stdenv.lib; {
description = "Bringing the power of python to stream editing";

View file

@ -11,6 +11,10 @@ buildPythonPackage rec {
sha256 = "f3985888cc2788cdbd293a68a8b5702a9c955db6f7b8b551aeac91e7f32da397";
};
postPatch = ''
substituteInPlace setup.py --replace "pika >=0.9,<0.11" "pika"
'';
# Tests require database connections
doCheck = false;

View file

@ -0,0 +1,76 @@
{ lib, buildPythonPackage, fetchPypi, callPackage
, isPy27, isPy34
, cleo
, requests
, cachy
, requests-toolbelt
, pyrsistent
, pyparsing
, cachecontrol
, pkginfo
, html5lib
, shellingham
, tomlkit
, typing
, pathlib2
, virtualenv
, functools32
, pytest
}:
let
cleo6 = cleo.overrideAttrs (oldAttrs: rec {
version = "0.6.8";
src = fetchPypi {
inherit (oldAttrs) pname;
inherit version;
sha256 = "06zp695hq835rkaq6irr1ds1dp2qfzyf32v60vxpd8rcnxv319l5";
};
});
jsonschema3 = callPackage ./jsonschema.nix { };
in buildPythonPackage rec {
pname = "poetry";
version = "0.12.10";
src = fetchPypi {
inherit pname version;
sha256 = "00npb0jlimnk4r01zkhfmns4843j1hfhd388s326da5pd8n0dq7l";
};
postPatch = ''
substituteInPlace pyproject.toml --replace "3.0a3" "3.0.0a3"
substituteInPlace setup.py --replace "3.0a3" "3.0.0a3"
'';
propagatedBuildInputs = [
cleo6
requests
cachy
requests-toolbelt
jsonschema3
pyrsistent
pyparsing
cachecontrol
pkginfo
html5lib
shellingham
tomlkit
] ++ lib.optionals (isPy27 || isPy34) [ typing pathlib2 ]
++ lib.optionals isPy27 [ virtualenv functools32 ];
# No tests in Pypi tarball
doCheck = false;
checkInputs = [ pytest ];
checkPhase = ''
pytest tests
'';
meta = with lib; {
homepage = https://github.com/sdispater/poetry;
description = "Python dependency management and packaging made easy";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -0,0 +1,37 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, callPackage
, attrs
, pyrsistent
, six
, functools32
, lockfile
, setuptools_scm
}:
buildPythonPackage rec {
pname = "jsonschema";
version = "3.0.0a3";
src = fetchPypi {
inherit pname version;
sha256 = "0pkhsq91rhk6384p0jxjkhc9yml2ya2l0mysyq78sb4981h45n6z";
};
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [
attrs
pyrsistent
six
lockfile
] ++ lib.optional isPy27 functools32;
# tests for latest version rely on custom version of betterpaths that is
# difficult to deal with and isn't used on master
doCheck = false;
meta = with lib; {
homepage = https://github.com/Julian/jsonschema;
description = "An implementation of JSON Schema validation for Python";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -19,11 +19,11 @@
buildPythonPackage rec {
pname = "py3status";
version = "3.14";
version = "3.15";
src = fetchPypi {
inherit pname version;
sha256 = "8775fb3903458a519593fc22b712ccac598464e319a12b9fdf04803fa60a1583";
sha256 = "78aa7fa0af707641e215ea93bfd4bb5fd47f18a7193d84ed60bb9e6cccb75b7f";
};
doCheck = false;

View file

@ -1,5 +1,18 @@
{ stdenv, buildPythonPackage, fetchPypi, thrift, isPy3k }:
let
thrift' = thrift.overridePythonAttrs (old: rec {
version = "0.9.3";
src= fetchPypi {
inherit (old) pname;
inherit version;
sha256 = "0zl7cgckqy9j5vq8wyfzw82q1blkdpsblnmhv8c6ffcxs4xkvg6z";
};
});
in
buildPythonPackage rec {
pname = "pycassa";
version = "1.11.2";
@ -15,7 +28,7 @@ buildPythonPackage rec {
# running
doCheck = false;
propagatedBuildInputs = [ thrift ];
propagatedBuildInputs = [ thrift' ];
meta = {
description = "A python client library for Apache Cassandra";

View file

@ -1,4 +1,4 @@
{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2, six, cffi }:
{ stdenv, lib, buildPythonPackage, fetchPypi, fetchpatch, isPyPy, libgit2_0_27, six, cffi }:
buildPythonPackage rec {
pname = "pygit2";
@ -10,7 +10,7 @@ buildPythonPackage rec {
};
preConfigure = lib.optionalString stdenv.isDarwin ''
export DYLD_LIBRARY_PATH="${libgit2}/lib"
export DYLD_LIBRARY_PATH="${libgit2_0_27}/lib"
'';
patches = [ (fetchpatch {
@ -19,7 +19,7 @@ buildPythonPackage rec {
sha256 = "18x1fpmywhjjr4lvakwmy34zpxfqi8pqqj48g1wcib39lh3s7l4f";
}) ];
propagatedBuildInputs = [ libgit2 six ] ++ lib.optional (!isPyPy) cffi;
propagatedBuildInputs = [ libgit2_0_27 six ] ++ lib.optional (!isPyPy) cffi;
preCheck = ''
# disable tests that require networking

View file

@ -0,0 +1,24 @@
{ lib, buildPythonPackage, fetchFromGitHub }:
buildPythonPackage rec {
pname = "pylev";
version = "1.3.0";
# No tests in PyPi tarball
src = fetchFromGitHub {
owner = "toastdriven";
repo = "pylev";
# Can't use a tag because it's missing
# https://github.com/toastdriven/pylev/issues/10
# rev = "v${version};
rev = "72e3d490515c3188e2acac9c15ea1b466f9ff938";
sha256 = "18dg1rfnqgfl6x4vafiq4la9d7f65xak19gcvngslq0bm1z6hyd8";
};
meta = with lib; {
homepage = https://github.com/toastdriven/pylev;
description = "A pure Python Levenshtein implementation that's not freaking GPL'd";
license = licenses.bsd3;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -4,6 +4,7 @@
, six
, pytest
, hypothesis
, pytestrunner
}:
buildPythonPackage rec {
@ -16,11 +17,11 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ six ];
buildInputs = [ pytest hypothesis ];
checkPhase = ''
py.test
'';
checkInputs = [ pytestrunner pytest hypothesis ];
# pytestrunner is only needed to run tests
patches = [ ./no-setup-requires-pytestrunner.patch ];
meta = with stdenv.lib; {
homepage = https://github.com/tobgu/pyrsistent/;

View file

@ -0,0 +1,15 @@
diff --git a/setup.py b/setup.py
index 90a39a5..7bf444f 100644
--- a/setup.py
+++ b/setup.py
@@ -77,9 +77,8 @@ setup(
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite='tests',
- tests_require=['pytest','hypothesis'],
+ tests_require=['pytest-runner', 'pytest','hypothesis'],
scripts=[],
- setup_requires=['pytest-runner'],
ext_modules=extensions,
cmdclass={'build_ext': custom_build_ext},
install_requires=['six'],

View file

@ -13,7 +13,7 @@
buildPythonPackage rec {
pname = "scapy";
version = "2.4.1";
version = "2.4.2";
disabled = isPyPy;
@ -21,7 +21,7 @@ buildPythonPackage rec {
owner = "secdev";
repo = "scapy";
rev = "v${version}";
sha256 = "1k5hfhgq87b99x854s50ffyzh6jqv263n1lnr4y3pm6as9r7iff5";
sha256 = "03xzjklvc6y4d87k0rqpx5h112ld5nvgfldrbd8c4mx6f9mmd11n";
};
# TODO: Temporary workaround

View file

@ -1,6 +1,7 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, six
}:
buildPythonPackage rec {
@ -12,6 +13,8 @@ buildPythonPackage rec {
sha256 = "7d59ac4fdcb2c58037ebd4a9da5f9a49e3e034bf75b3f26d9fe48ba3d8806e6b";
};
propagatedBuildInputs = [ six ];
# No tests. Breaks when not disabling.
doCheck = false;

View file

@ -3,6 +3,7 @@
, fetchPypi
, pytest
, python
, cython
, cssutils
, isPyPy
}:
@ -18,6 +19,17 @@ buildPythonPackage rec {
checkInputs = [ pytest ];
propagatedBuildInputs = [ cssutils ];
nativeBuildInputs = [
cython
];
preBuild = ''
# Force cython to re-generate this file. If it is present, cython will
# think it is "up to date" even though it was generated with an older,
# incompatible version of cython. See
# https://github.com/Kozea/tinycss/issues/17.
rm tinycss/speedups.c
'';
checkPhase = ''
py.test $out/${python.sitePackages}

View file

@ -0,0 +1,29 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, isPy34
, enum34, functools32, typing
}:
buildPythonPackage rec {
pname = "tomlkit";
version = "0.5.3";
src = fetchPypi {
inherit pname version;
sha256 = "1hjfzlb6y694pkadygcaq1n63di97pxgq2zpc74in1axc5166l6n";
};
propagatedBuildInputs =
lib.optionals isPy27 [ enum34 functools32 ]
++ lib.optional (isPy27 || isPy34) typing;
# The Pypi tarball doesn't include tests, and the GitHub source isn't
# buildable until we bootstrap poetry, see
# https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
doCheck = false;
meta = with lib; {
homepage = https://github.com/sdispater/tomlkit;
description = "Style-preserving TOML library for Python";
license = licenses.mit;
maintainers = with maintainers; [ jakewaksbaum ];
};
}

View file

@ -1,4 +1,6 @@
{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml }:
{ lib, fetchPypi, buildPythonPackage, intervaltree, pyflakes, requests, lxml, google-i18n-address
, pycountry, html5lib, six
}:
buildPythonPackage rec {
pname = "xml2rfc";
@ -9,7 +11,20 @@ buildPythonPackage rec {
sha256 = "64609a2194d18c03e2348f1ea2fb97208b3455dfb76a16900143813aa61b6d3c";
};
propagatedBuildInputs = [ intervaltree pyflakes requests lxml ];
propagatedBuildInputs = [
intervaltree
pyflakes
requests
lxml
google-i18n-address
pycountry
html5lib
six
];
preCheck = ''
export HOME=$(mktemp -d)
'';
meta = with lib; {
description = "Tool generating IETF RFCs and drafts from XML sources";

View file

@ -15,6 +15,9 @@ buildPythonPackage rec {
};
propagatedBuildInputs = [ xorgserver ];
# See: https://github.com/cgoldberg/xvfbwrapper/issues/30
doCheck = false;
checkInputs = [ mock ];
meta = with stdenv.lib; {

View file

@ -13,8 +13,8 @@
let
srcDeps = lib.singleton (
fetchurl {
url = "https://github.com/google/desugar_jdk_libs/archive/fd937f4180c1b557805219af4482f1a27eb0ff2b.zip";
sha256 = "04hs399340xfwcdajbbcpywnb2syp6z5ydwg966if3hqdb2zrf23";
url = "https://github.com/google/desugar_jdk_libs/archive/915f566d1dc23bc5a8975320cd2ff71be108eb9c.zip";
sha256 = "0b926df7yxyyyiwm9cmdijy6kplf0sghm23sf163zh8wrk87wfi7";
}
);
@ -23,12 +23,12 @@ let
for i in ${builtins.toString srcDeps}; do cp $i $out/$(stripHash $i); done
'';
defaultShellPath = lib.makeBinPath [ bash coreutils findutils gnugrep gnused which ];
defaultShellPath = lib.makeBinPath [ bash coreutils findutils gnugrep gnused which unzip ];
in
stdenv.mkDerivation rec {
version = "0.20.0";
version = "0.21.0";
meta = with lib; {
homepage = "https://github.com/bazelbuild/bazel/";
@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
src = fetchurl {
url = "https://github.com/bazelbuild/bazel/releases/download/${version}/bazel-${version}-dist.zip";
sha256 = "1g9hglly5199gcw929fzc5f0d0dwlharkh387h58p1fq9ylayi8r";
sha256 = "1d3x0f1hzaiqq00pd65bks7v8kbv57m13jsing7y0y9id0g87jvc";
};
sourceRoot = ".";
@ -78,6 +78,7 @@ stdenv.mkDerivation rec {
'';
postPatch = let
darwinPatches = ''
# Disable Bazel's Xcode toolchain detection which would configure compilers
# and linkers from Xcode instead of from PATH
@ -115,27 +116,45 @@ stdenv.mkDerivation rec {
sed -i -e "s,/usr/bin/install_name_tool,${cctools}/bin/install_name_tool,g" $wrapper
done
'';
genericPatches = ''
find src/main/java/com/google/devtools -type f -print0 | while IFS="" read -r -d "" path; do
# substituteInPlace is rather slow, so prefilter the files with grep
grep -rlZ /bin src/main/java/com/google/devtools | while IFS="" read -r -d "" path; do
# If you add more replacements here, you must change the grep above!
# Only files containing /bin are taken into account.
substituteInPlace "$path" \
--replace /bin/bash ${customBash}/bin/bash \
--replace /usr/bin/env ${coreutils}/bin/env \
--replace /bin/true ${coreutils}/bin/true
done
# Fixup scripts that generate scripts. Not fixed up by patchShebangs below.
substituteInPlace scripts/bootstrap/compile.sh \
--replace /bin/sh ${customBash}/bin/bash
echo "build --experimental_distdir=${distDir}" >> .bazelrc
echo "fetch --experimental_distdir=${distDir}" >> .bazelrc
echo "build --copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt=\"/g')\"" >> .bazelrc
echo "build --host_copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --host_copt=\"/g')\"" >> .bazelrc
echo "build --linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --linkopt=\"-Wl,/g')\"" >> .bazelrc
echo "build --host_linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --host_linkopt=\"-Wl,/g')\"" >> .bazelrc
sed -i -e "420 a --copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt=\"/g')\" \\\\" scripts/bootstrap/compile.sh
sed -i -e "420 a --host_copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --host_copt=\"/g')\" \\\\" scripts/bootstrap/compile.sh
sed -i -e "420 a --linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --linkopt=\"-Wl,/g')\" \\\\" scripts/bootstrap/compile.sh
sed -i -e "420 a --host_linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --host_linkopt=\"-Wl,/g')\" \\\\" scripts/bootstrap/compile.sh
# We only build with JDK8 for now, since JDK11 does not compile bazel
substituteInPlace tools/jdk/default_java_toolchain.bzl \
--replace '"jvm_opts": JDK9_JVM_OPTS' \
'"jvm_opts": JDK8_JVM_OPTS'
# add nix environment vars to .bazelrc
cat >> .bazelrc <<EOF
build --experimental_distdir=${distDir}
fetch --experimental_distdir=${distDir}
build --copt="$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt="/g')"
build --host_copt="$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --host_copt="/g')"
build --linkopt="-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --linkopt="-Wl,/g')"
build --host_linkopt="-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --host_linkopt="-Wl,/g')"
build --host_javabase='@local_jdk//:jdk'
EOF
# add the same environment vars to compile.sh
sed -e "/\$command \\\\$/a --copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --copt=\"/g')\" \\\\" \
-e "/\$command \\\\$/a --host_copt=\"$(echo $NIX_CFLAGS_COMPILE | sed -e 's/ /" --host_copt=\"/g')\" \\\\" \
-e "/\$command \\\\$/a --linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --linkopt=\"-Wl,/g')\" \\\\" \
-e "/\$command \\\\$/a --host_linkopt=\"-Wl,$(echo $NIX_LDFLAGS | sed -e 's/ /" --host_linkopt=\"-Wl,/g')\" \\\\" \
-e "/\$command \\\\$/a --host_javabase='@local_jdk//:jdk' \\\\" \
-i scripts/bootstrap/compile.sh
# --experimental_strict_action_env (which will soon become the
# default, see bazelbuild/bazel#2574) hardcodes the default
@ -159,6 +178,8 @@ stdenv.mkDerivation rec {
buildJdk
];
# when a command cant be found in a bazel build, you might also
# need to add it to `defaultShellPath`.
nativeBuildInputs = [
zip
python

View file

@ -4,7 +4,7 @@ let
dubBuild = stdenv.mkDerivation rec {
name = "dubBuild-${version}";
version = "1.12.1";
version = "1.13.0";
enableParallelBuilding = true;
@ -12,7 +12,7 @@ let
owner = "dlang";
repo = "dub";
rev = "v${version}";
sha256 = "0q4968vxgfxhq6ywhdvj6sqddwf7aadqmmpfqc6nl65r7jyga52a";
sha256 = "1wd5pdnbaafj33bbg188w0iz28ps4cyjangb12g2s9dyic29zjqv";
};
postUnpack = ''

View file

@ -3,18 +3,18 @@
stdenv.mkDerivation rec {
pname = "leiningen";
version = "2.8.1";
version = "2.8.3";
name = "${pname}-${version}";
src = fetchurl {
url = "https://raw.github.com/technomancy/leiningen/${version}/bin/lein-pkg";
sha256 = "0wk4m7m66xxx7i3nis08mc8qna7acgcmpim562vdyyrpbxdhj24i";
sha256 = "1jbrm4vdvwskbi9sxvn6i7h2ih9c3nfld63nx58nblghvlcb9vwx";
};
jarsrc = fetchurl {
# NOTE: This is actually a .jar, Github has issues
url = "https://github.com/technomancy/leiningen/releases/download/${version}/${name}-standalone.zip";
sha256 = "0n3wkb0a9g25r1xq93lskay2lw210qymz2qakjnl5vr5zz3vnjgw";
sha256 = "07kb7d84llp24l959gndnfmislnnvgpsxghmgfdy8chy7g4sy2kz";
};
JARNAME = "${name}-standalone.jar";

View file

@ -3,10 +3,6 @@
let
mkScons = args: callPackage (import ./common.nix args) { };
in {
scons_2_5_1 = mkScons {
version = "2.5.1";
sha256 = "1wji1z9jdkhnmm99apx6fhld9cs52rr56aigniyrcsmlwy52298b";
};
scons_3_0_1 = mkScons {
version = "3.0.1";
sha256 = "0wzid419mlwqw9llrg8gsx4nkzhqy16m4m40r0xnh6cwscw5wir4";

View file

@ -2,14 +2,14 @@
stdenv.mkDerivation rec {
name = "dtools-${version}";
version = "2.083.1";
version = "2.084.0";
srcs = [
(fetchFromGitHub {
owner = "dlang";
repo = "dmd";
rev = "v${version}";
sha256 = "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90";
sha256 = "1v61spdamncl8c1bzjc19b03p4jl0ih5zq9b7cqsy9ix7qaxmikf";
name = "dmd";
})
(fetchFromGitHub {

View file

@ -2,7 +2,7 @@
buildGoPackage rec {
name = "hcloud-${version}";
version = "1.9.1";
version = "1.11.0";
goPackagePath = "github.com/hetznercloud/cli";
@ -10,7 +10,7 @@ buildGoPackage rec {
owner = "hetznercloud";
repo = "cli";
rev = "v${version}";
sha256 = "0qc4mzjd1q3xv1j0dxv5qvk443bdhh5hlbv3i3444v36wycj3171";
sha256 = "0iknw14728l2mynrvb3fiqm7y893ppp22gbb3mppi6iy3as94f1f";
};
goDeps = ./deps.nix;

View file

@ -41,8 +41,8 @@
fetch = {
type = "git";
url = "https://github.com/hetznercloud/hcloud-go";
rev = "eaf050e4f37028d2ca5f99a2fb38ead2c9b293d3";
sha256 = "0ki4vk02da4dj6prx3gz8cvrfkj6xb72sjkwqcrbdp4n4klasngi";
rev = "ecee721a51a772254d0104bf4d796358e40d6bbd";
sha256 = "0bwym7f8am14yfh584p28d8lnj4f9mhqi05l1mlrl315xn0c78v3";
};
}
{
@ -50,8 +50,8 @@
fetch = {
type = "git";
url = "https://github.com/pelletier/go-toml";
rev = "81a861c69d25a841d0c4394f0e6f84bc8c5afae0";
sha256 = "1sk301rm7rm5hfcx7z7vgask5i80wx3mhyxjr3xnm5q1rvdj6vsl";
rev = "27c6b39a135b7dc87a14afb068809132fb7a9a8f";
sha256 = "13ldxh43xf4prmcrjzriz3gxpnijpqlzrgyhh7bnkj7lkhryfpk9";
};
}
{
@ -59,8 +59,8 @@
fetch = {
type = "git";
url = "https://github.com/spf13/cobra";
rev = "8d114be902bc9f08717804830a55c48378108a28";
sha256 = "1ipmdjwqxyvj6cv33xm1m4ngyx49jsnp8n9jd8fjbkng8aw3q4al";
rev = "d2d81d9a96e23f0255397222bb0b4e3165e492dc";
sha256 = "14nhpiyhz2lm468y5sm1vyxks5aky12kmbhmqq319s92lkm494cy";
};
}
{
@ -68,8 +68,8 @@
fetch = {
type = "git";
url = "https://github.com/spf13/pflag";
rev = "298182f68c66c05229eb03ac171abe6e309ee79a";
sha256 = "1cj3cjm7d3zk0mf1xdybh0jywkbbw7a6yr3y22x9sis31scprswd";
rev = "24fa6976df40757dce6aea913e7b81ade90530e1";
sha256 = "0rf6prz6gl0l1b3wijzdgq887cdwigvzxvz6gqbm5l8pkq3fx1m9";
};
}
{
@ -86,8 +86,8 @@
fetch = {
type = "git";
url = "https://go.googlesource.com/crypto";
rev = "0c41d7ab0a0ee717d4590a44bcb987dfd9e183eb";
sha256 = "1mff9l49dffsak7vxg3dzxlzkgm5nqfksh9cbsjpmngpc5pk0fbc";
rev = "ff983b9c42bc9fbf91556e191cc8efb585c16908";
sha256 = "1hpr06kzn8jnn3gvzp0p9zn4fz4l9h69f7x66idx142w4xdlaanz";
};
}
{
@ -95,8 +95,8 @@
fetch = {
type = "git";
url = "https://go.googlesource.com/sys";
rev = "fa43e7bc11baaae89f3f902b2b4d832b68234844";
sha256 = "1z96xhgw930jpd53g1sy9x6wiijgz751czbvr2zzgc55y0md1mfw";
rev = "7fbe1cd0fcc20051e1fcb87fbabec4a1bacaaeba";
sha256 = "0y49s4kazign9nsw2x3h39cgs14lqi57m4hrka26w49z8a1xdyc6";
};
}
]

View file

@ -1,4 +1,13 @@
{ stdenv, fetchFromGitHub, python3, libftdi, pkgconfig }:
{ stdenv, fetchFromGitHub
, pkgconfig, libftdi
, python3, pypy3
}:
let
pypyCompatible = stdenv.isx86_64; /* pypy3 seems broken on i686 */
pythonPkg = if pypyCompatible then pypy3 else python3;
pythonInterp = if pypyCompatible then "pypy3" else "python3";
in
stdenv.mkDerivation rec {
name = "icestorm-${version}";
@ -12,14 +21,28 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ python3 libftdi ];
buildInputs = [ pythonPkg libftdi ];
makeFlags = [ "PREFIX=$(out)" ];
enableParallelBuilding = true;
# fix icebox_vlog chipdb path. icestorm issue:
# https://github.com/cliffordwolf/icestorm/issues/125
#
# also, fix up the path to the chosen Python interpreter. for pypy-compatible
# platforms, it offers significant performance improvements.
patchPhase = ''
substituteInPlace ./icebox/icebox_vlog.py \
--replace /usr/local/share "$out/share"
for x in icefuzz/Makefile icebox/Makefile icetime/Makefile; do
substituteInPlace "$x" --replace python3 "${pythonInterp}"
done
for x in $(find . -type f -iname '*.py'); do
substituteInPlace "$x" \
--replace '/usr/bin/env python3' '${pythonPkg}/bin/${pythonInterp}'
done
'';
meta = {
@ -30,9 +53,9 @@ stdenv.mkDerivation rec {
FPGAs and providing simple tools for analyzing and
creating bitstream files.
'';
homepage = http://www.clifford.at/icestorm/;
license = stdenv.lib.licenses.isc;
homepage = http://www.clifford.at/icestorm/;
license = stdenv.lib.licenses.isc;
maintainers = with stdenv.lib.maintainers; [ shell thoughtpolice ];
platforms = stdenv.lib.platforms.linux;
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -1,12 +1,12 @@
{ stdenv, fetchgit, dmd, dub }:
stdenv.mkDerivation {
name = "Literate-2018-12-23";
name = "Literate-2019-01-08";
src = fetchgit {
url = "https://github.com/zyedidia/Literate.git";
rev = "99a0b7dd1ac451c2386094be06364df9386c3862";
sha256 = "0jvciajr33iz049m0yal41mz9p8nxmwkpq2mrfhg1ysx2zv3q3pm";
rev = "e20c5c86713701d4d17fd2881779d758a27a3e5a";
sha256 = "1pr7iipcnp6jxi13341p5b3szdrvs7aixpfbwifj6lgbb45vg9sm";
};
buildInputs = [ dmd dub ];

View file

@ -6,8 +6,8 @@ let
## fetchgit info
url = git://sourceware.org/git/systemtap.git;
rev = "release-${version}";
sha256 = "0hckbmrlcz5nj438409fmdjjaaqzf68r2242v10lkssw5daia1gj";
version = "3.3";
sha256 = "075p45ndr4pzrf5679hcsw1ws4x0xqvx3m037v04545762hki6la";
version = "4.0";
inherit (kernel) stdenv;
inherit (stdenv) lib;

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "nexus-${version}";
version = "3.12.1-01";
version = "3.14.0-04";
src = fetchurl {
url = "https://sonatype-download.global.ssl.fastly.net/nexus/3/nexus-${version}-unix.tar.gz";
sha256 = "1vv50zv3cr42rq1g16gdl2d1hrxna2jjynlr7kivzlbyfq89ic3f";
sha256 = "1ql707672xhybmfajjmli9w0wcf1f26skq8i5kqirms2364wg35f";
};
sourceRoot = name;
@ -41,6 +41,6 @@ stdenv.mkDerivation rec {
homepage = http://www.sonatype.org/nexus;
license = licenses.epl10;
platforms = platforms.all;
maintainers = with maintainers; [ aespinosa ironpinguin ma27 ];
maintainers = with maintainers; [ aespinosa ironpinguin ma27 zaninime ];
};
}

View file

@ -2,23 +2,23 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.0)
jaro_winkler (1.5.1)
jaro_winkler (1.5.2)
parallel (1.12.1)
parser (2.5.1.2)
parser (2.5.3.0)
ast (~> 2.4.0)
powerpack (0.1.2)
rainbow (3.0.0)
rake (12.3.1)
rubocop (0.59.1)
rake (12.3.2)
rubocop (0.62.0)
jaro_winkler (~> 1.5.1)
parallel (~> 1.10)
parser (>= 2.5, != 2.5.1.1)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
unicode-display_width (~> 1.4.0)
ruby-progressbar (1.10.0)
unicode-display_width (1.4.0)
unicode-display_width (1.4.1)
PLATFORMS
ruby

View file

@ -8,12 +8,14 @@
version = "2.4.0";
};
jaro_winkler = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0rr797nqz081bfk30m2apj5h24bg5d1jr1c8p3xwx4hbwsrbclah";
sha256 = "1zz27z88qznix4r65gd9h56gl177snlfpgv10b0s69vi8qpl909l";
type = "gem";
};
version = "1.5.1";
version = "1.5.2";
};
parallel = {
source = {
@ -25,12 +27,14 @@
};
parser = {
dependencies = ["ast"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1zp89zg7iypncszxsjp8kiccrpbdf728jl449g6cnfkz990fyb5k";
sha256 = "1zjk0w1kjj3xk8ymy1430aa4gg0k8ckphfj88br6il4pm83f0n1f";
type = "gem";
};
version = "2.5.1.2";
version = "2.5.3.0";
};
powerpack = {
source = {
@ -49,21 +53,25 @@
version = "3.0.0";
};
rake = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "1idi53jay34ba9j68c3mfr9wwkg3cd9qh0fn9cg42hv72c6q8dyg";
sha256 = "1sy5a7nh6xjdc9yhcw31jji7ssrf9v5806hn95gbrzr998a2ydjn";
type = "gem";
};
version = "12.3.1";
version = "12.3.2";
};
rubocop = {
dependencies = ["jaro_winkler" "parallel" "parser" "powerpack" "rainbow" "ruby-progressbar" "unicode-display_width"];
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0hz4slfisbq8nqs83mvvh6yv5hb7z7zx9fxvv9cka6b9ldvr2i2b";
sha256 = "03narxzrpbilwbhr19qklvxhg22i8jkfar4igb1l8m73jydpxfvk";
type = "gem";
};
version = "0.59.1";
version = "0.62.0";
};
ruby-progressbar = {
source = {
@ -74,11 +82,13 @@
version = "1.10.0";
};
unicode-display_width = {
groups = ["default"];
platforms = [];
source = {
remotes = ["https://rubygems.org"];
sha256 = "0040bsdpcmvp8w31lqi2s9s4p4h031zv52401qidmh25cgyh4a57";
sha256 = "0bq528fibi8s0jmxz0xzlgzggdq0x4fx46wfqz49478pv8gb2diq";
type = "gem";
};
version = "1.4.0";
version = "1.4.1";
};
}

View file

@ -29,7 +29,7 @@ rustPlatform.buildRustPackage rec {
chmod +x $out/bin/bindgen
'';
doCheck = false; # half the tests fail because our rustfmt is not nightly enough
doCheck = true;
checkInputs =
let fakeRustup = writeScriptBin "rustup" ''
#!${stdenv.shell}
@ -42,6 +42,10 @@ rustPlatform.buildRustPackage rec {
fakeRustup # the test suite insists in calling `rustup run nightly rustfmt`
clang
];
preCheck = ''
# for the ci folder, notably
patchShebangs .
'';
meta = with stdenv.lib; {
description = "C and C++ binding generator";

View file

@ -1,17 +1,28 @@
{ stdenv, fetchFromGitHub, rustPlatform }:
{ stdenv, fetchFromGitHub, rustPlatform, darwin }:
rustPlatform.buildRustPackage rec {
name = "rustfmt-${version}";
version = "0.9.0";
version = "1.0.0";
src = fetchFromGitHub {
owner = "rust-lang-nursery";
owner = "rust-lang";
repo = "rustfmt";
rev = "${version}";
sha256 = "12l3ff0s0pzhcf5jbs8wqawjk4jghhhz8j6dq1n5201yvny12jlr";
sha256 = "17ady2zq4jcbgawgpfszrkp6kxabb2f261g82y2az7nfax1h1pwy";
};
cargoSha256 = "0gppki9mgx99xipapg36ydwk1bplygnz6sbyzbg46vhn10iggfwm";
cargoSha256 = "0v8iq50h9368kai3m710br5cxc3p6mpbwz1v6gaf5802n48liqs8";
buildInputs = stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
# As of 1.0.0 and rustc 1.30 rustfmt requires a nightly compiler
RUSTC_BOOTSTRAP = 1;
# we run tests in debug mode so tests look for a debug build of
# rustfmt. Anyway this adds nearly no compilation time.
preCheck = ''
cargo build
'';
meta = with stdenv.lib; {
description = "A tool for formatting Rust code according to style guidelines";

View file

@ -2,11 +2,11 @@
stdenv.mkDerivation rec {
name = "yarn-${version}";
version = "1.12.3";
version = "1.13.0";
src = fetchzip {
url = "https://github.com/yarnpkg/yarn/releases/download/v${version}/yarn-v${version}.tar.gz";
sha256 = "0izn7lfvfw046qlxdgiiiyqj24sl2yclm6v8bzy8ilsr00csbrm2";
sha256 = "0wkh8m41g5sajxlchsaqardn4v2ax06xywk12fwdjn5j3sxlgq2a";
};
buildInputs = [ nodejs ];

View file

@ -0,0 +1,87 @@
/* The reusable code, and package attributes, between OpenRA engine packages (engine.nix)
and out-of-tree mod packages (mod.nix).
*/
{ stdenv, makeSetupHook, curl, unzip, dos2unix, pkgconfig, makeWrapper
, lua, mono, dotnetPackages, python
, libGL, openal, SDL2
, zenity
}:
with stdenv.lib;
let
path = makeBinPath ([ mono python ] ++ optional (zenity != null) zenity);
rpath = makeLibraryPath [ lua openal SDL2 ];
mkdirp = makeSetupHook { } ./mkdirp.sh;
in {
patchEngine = dir: version: ''
sed -i \
-e 's/^VERSION.*/VERSION = ${version}/g' \
-e '/fetch-geoip-db/d' \
-e '/GeoLite2-Country.mmdb.gz/d' \
${dir}/Makefile
sed -i 's|locations=.*|locations=${lua}/lib|' ${dir}/thirdparty/configure-native-deps.sh
'';
wrapLaunchGame = openraSuffix: ''
# Setting TERM=xterm fixes an issue with terminfo in mono: System.Exception: Magic number is wrong: 542
# https://github.com/mono/mono/issues/6752#issuecomment-365212655
wrapProgram $out/lib/openra${openraSuffix}/launch-game.sh \
--prefix PATH : "${path}" \
--prefix LD_LIBRARY_PATH : "${rpath}" \
--set TERM xterm
makeWrapper $out/lib/openra${openraSuffix}/launch-game.sh $(mkdirp $out/bin)/openra${openraSuffix} \
--run "cd $out/lib/openra${openraSuffix}"
'';
packageAttrs = {
buildInputs = with dotnetPackages; [
FuzzyLogicLibrary
MaxMindDb
MaxMindGeoIP2
MonoNat
NewtonsoftJson
NUnit3
NUnitConsole
OpenNAT
RestSharp
SharpFont
SharpZipLib
SmartIrc4net
StyleCopMSBuild
StyleCopPlusMSBuild
] ++ [
lua
libGL
openal
SDL2
];
# TODO: Test if this is correct.
nativeBuildInputs = [
curl
unzip
dos2unix
pkgconfig
makeWrapper
mkdirp
mono
python
];
makeFlags = "prefix=$(out)";
doCheck = true;
dontStrip = true;
meta = {
maintainers = with maintainers; [ msteen rardiol ];
license = licenses.gpl3;
platforms = platforms.linux;
};
};
}

Some files were not shown because too many files have changed in this diff Show more