From 815319e46c09d2d5fa6c43aef242377ceaca6200 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Mon, 16 Jul 2018 10:09:57 +0200 Subject: [PATCH 01/81] tryton: 4.8.2 -> 4.8.3 --- pkgs/applications/office/tryton/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/tryton/default.nix b/pkgs/applications/office/tryton/default.nix index e44106f7b65..ec9528bdbf0 100644 --- a/pkgs/applications/office/tryton/default.nix +++ b/pkgs/applications/office/tryton/default.nix @@ -14,10 +14,10 @@ with stdenv.lib; python2Packages.buildPythonApplication rec { pname = "tryton"; - version = "4.8.2"; + version = "4.8.3"; src = python2Packages.fetchPypi { inherit pname version; - sha256 = "02jnqxwsqk7hn52hc4jd59nd94d810i4psaa3lqqig3br5blp8yx"; + sha256 = "1e2862bbe7c943afbbdf2232cdc55f75d2357640115c7f1483f0814b2c5a6882"; }; nativeBuildInputs = [ pkgconfig gobjectIntrospection ]; propagatedBuildInputs = with python2Packages; [ From 23002dde7edac221c053c7d693be40ea387d2615 Mon Sep 17 00:00:00 2001 From: Udo Spallek Date: Mon, 16 Jul 2018 10:10:36 +0200 Subject: [PATCH 02/81] trytond: 4.8.1 -> 4.8.2 --- pkgs/applications/office/trytond/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/office/trytond/default.nix b/pkgs/applications/office/trytond/default.nix index d1b3cb1b1a1..20c8f87527b 100644 --- a/pkgs/applications/office/trytond/default.nix +++ b/pkgs/applications/office/trytond/default.nix @@ -5,10 +5,10 @@ with stdenv.lib; python2Packages.buildPythonApplication rec { pname = "trytond"; - version = "4.8.1"; + version = "4.8.2"; src = python2Packages.fetchPypi { inherit pname version; - sha256 = "8e72a24bdf2fd090c5e12ce5f73a00322e31519608b31db44d7bb76382078db9"; + sha256 = "ec5c419418517bf9f7d2af08b2bfd3bcc7526f6d6f07d122abf1699c728ae2a9"; }; # Tells the tests which database to use From 206e271e32a5d356d60c329c13fa18cd1cbd9ba1 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Nakamura Date: Fri, 6 Jul 2018 01:47:43 +0900 Subject: [PATCH 03/81] cataclysm-dda{,-git}: move common attributes to common.nix --- pkgs/games/cataclysm-dda/common.nix | 96 +++++++++++++++++++++++++ pkgs/games/cataclysm-dda/default.nix | 96 ++++++------------------- pkgs/games/cataclysm-dda/git.nix | 102 ++++++--------------------- 3 files changed, 142 insertions(+), 152 deletions(-) create mode 100644 pkgs/games/cataclysm-dda/common.nix diff --git a/pkgs/games/cataclysm-dda/common.nix b/pkgs/games/cataclysm-dda/common.nix new file mode 100644 index 00000000000..389a9a61394 --- /dev/null +++ b/pkgs/games/cataclysm-dda/common.nix @@ -0,0 +1,96 @@ +{ stdenv, fetchFromGitHub, pkgconfig, gettext, lua, ncurses +, tiles, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, freetype, Cocoa +, debug +}: + +let + inherit (stdenv.lib) optionals; + + cursesDeps = [ gettext lua ncurses ]; + + tilesDeps = [ SDL2 SDL2_image SDL2_mixer SDL2_ttf freetype ] + ++ optionals stdenv.isDarwin [ Cocoa ]; + + common = { + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = cursesDeps ++ optionals tiles tilesDeps; + + postPatch = '' + patchShebangs . + ''; + + makeFlags = [ + "PREFIX=$(out)" "LUA=1" "USE_HOME_DIR=1" "LANGUAGES=all" + ] ++ optionals (!debug) [ + "RELEASE=1" + ] ++ optionals tiles [ + "TILES=1" "SOUND=1" + ] ++ optionals stdenv.isDarwin [ + "NATIVE=osx" "CLANG=1" + ]; + + dontStrip = debug; + + meta = with stdenv.lib; { + description = "A free, post apocalyptic, zombie infested rogue-like"; + longDescription = '' + Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. + Surviving is difficult: you have been thrown, ill-equipped, into a + landscape now riddled with monstrosities of which flesh eating zombies are + neither the strangest nor the deadliest. + + Yet with care and a little luck, many things are possible. You may try to + eke out an existence in the forests silently executing threats and + providing sustenance with your longbow. You can ride into town in a + jerry-rigged vehicle, all guns blazing, to settle matters in a fug of + smoke from your molotovs. You could take a more measured approach and + construct an impregnable fortress, surrounded by traps to protect you from + the horrors without. The longer you survive, the more skilled and adapted + you will get and the better equipped and armed to deal with the threats + you are presented with. + + In the course of your ordeal there will be opportunities and temptations + to improve or change your very nature. There are tales of survivors fitted + with extraordinary cybernetics giving great power and stories too of + gravely mutated survivors who, warped by their ingestion of exotic + substances or radiation, now more closely resemble insects, birds or fish + than their original form. + ''; + homepage = https://cataclysmdda.org/; + license = licenses.cc-by-sa-30; + platforms = platforms.unix; + }; + }; + + utils = { + fetchFromCleverRaven = { rev, sha256 }: + fetchFromGitHub { + owner = "CleverRaven"; + repo = "Cataclysm-DDA"; + inherit rev sha256; + }; + + installXDGAppLauncher = '' + launcher="$out/share/applications/cataclysm-dda.desktop" + install -D -m 444 data/xdg/com.cataclysmdda.cataclysm-dda.desktop -T "$launcher" + sed -i "$launcher" -e "s,\(Exec=\)\(cataclysm-tiles\),\1$out/bin/\2," + install -D -m 444 data/xdg/cataclysm-dda.svg -t $out/share/icons/hicolor/scalable/apps + ''; + + installMacOSAppLauncher = '' + app=$out/Applications/Cataclysm.app + install -D -m 444 data/osx/Info.plist -t $app/Contents + install -D -m 444 data/osx/AppIcon.icns -t $app/Contents/Resources + mkdir $app/Contents/MacOS + launcher=$app/Contents/MacOS/Cataclysm.sh + cat << EOF > $launcher + #!${stdenv.shell} + $out/bin/cataclysm-tiles + EOF + chmod 555 $launcher + ''; + }; +in + +{ inherit common utils; } diff --git a/pkgs/games/cataclysm-dda/default.nix b/pkgs/games/cataclysm-dda/default.nix index 0de118234a7..36b62f53884 100644 --- a/pkgs/games/cataclysm-dda/default.nix +++ b/pkgs/games/cataclysm-dda/default.nix @@ -1,43 +1,30 @@ -{ fetchFromGitHub, stdenv, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf, -SDL2_mixer, freetype, gettext, Cocoa, libicns, -tiles ? true }: +{ stdenv, callPackage, ncurses +, tiles ? true, Cocoa, libicns +, debug ? false +}: -stdenv.mkDerivation rec { +let + inherit (stdenv.lib) optionals optionalString; + inherit (callPackage ./common.nix { inherit tiles Cocoa debug; }) common utils; + inherit (utils) fetchFromCleverRaven installMacOSAppLauncher; +in + +stdenv.mkDerivation (common // rec { version = "0.C"; name = "cataclysm-dda-${version}"; - src = fetchFromGitHub { - owner = "CleverRaven"; - repo = "Cataclysm-DDA"; + src = fetchFromCleverRaven { rev = "${version}"; sha256 = "03sdzsk4qdq99qckq0axbsvg1apn6xizscd8pwp5w6kq2fyj5xkv"; }; - nativeBuildInputs = [ pkgconfig ] - ++ stdenv.lib.optionals (tiles && stdenv.isDarwin) [ libicns ]; - - buildInputs = with stdenv.lib; [ ncurses lua gettext ] - ++ optionals tiles [ SDL2 SDL2_image SDL2_ttf SDL2_mixer freetype ] - ++ optionals (tiles && stdenv.isDarwin) [ Cocoa ]; + nativeBuildInputs = common.nativeBuildInputs + ++ optionals (tiles && stdenv.isDarwin) [ libicns ]; patches = [ ./patches/fix_locale_dir.patch ]; - postPatch = '' - patchShebangs . - ''; - - makeFlags = with stdenv.lib; [ - "PREFIX=$(out)" - "LUA=1" - "RELEASE=1" - "USE_HOME_DIR=1" - # "LANGUAGES=all" # vanilla C:DDA installs all translations even without this flag! - ] ++ optionals tiles [ - "TILES=1" - "SOUND=1" - ] ++ optionals stdenv.isDarwin [ - "NATIVE=osx" - "CLANG=1" + makeFlags = common.makeFlags + ++ optionals stdenv.isDarwin [ "OSX_MIN=10.6" # SDL for macOS only supports deploying on 10.6 and above ] ++ optionals stdenv.cc.isGNU [ "WARNINGS+=-Wno-deprecated-declarations" @@ -46,57 +33,20 @@ stdenv.mkDerivation rec { "WARNINGS+=-Wno-inconsistent-missing-override" ]; - NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.cc.isClang "-Wno-user-defined-warnings"; + NIX_CFLAGS_COMPILE = optionalString stdenv.cc.isClang "-Wno-user-defined-warnings"; - postBuild = stdenv.lib.optionalString (tiles && stdenv.isDarwin) '' + postBuild = optionalString (tiles && stdenv.isDarwin) '' # iconutil on macOS is not available in nixpkgs png2icns data/osx/AppIcon.icns data/osx/AppIcon.iconset/* ''; - postInstall = stdenv.lib.optionalString (tiles && stdenv.isDarwin) '' - app=$out/Applications/Cataclysm.app - install -D -m 444 data/osx/Info.plist -t $app/Contents - install -D -m 444 data/osx/AppIcon.icns -t $app/Contents/Resources - mkdir $app/Contents/MacOS - launcher=$app/Contents/MacOS/Cataclysm.sh - cat << SCRIPT > $launcher - #!/bin/sh - $out/bin/cataclysm-tiles - SCRIPT - chmod 555 $launcher - ''; + postInstall = optionalString (tiles && stdenv.isDarwin) + installMacOSAppLauncher; # Disable, possible problems with hydra #enableParallelBuilding = true; - meta = with stdenv.lib; { - description = "A free, post apocalyptic, zombie infested rogue-like"; - longDescription = '' - Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. - Surviving is difficult: you have been thrown, ill-equipped, into a - landscape now riddled with monstrosities of which flesh eating zombies are - neither the strangest nor the deadliest. - - Yet with care and a little luck, many things are possible. You may try to - eke out an existence in the forests silently executing threats and - providing sustenance with your longbow. You can ride into town in a - jerry-rigged vehicle, all guns blazing, to settle matters in a fug of - smoke from your molotovs. You could take a more measured approach and - construct an impregnable fortress, surrounded by traps to protect you from - the horrors without. The longer you survive, the more skilled and adapted - you will get and the better equipped and armed to deal with the threats - you are presented with. - - In the course of your ordeal there will be opportunities and temptations - to improve or change your very nature. There are tales of survivors fitted - with extraordinary cybernetics giving great power and stories too of - gravely mutated survivors who, warped by their ingestion of exotic - substances or radiation, now more closely resemble insects, birds or fish - than their original form. - ''; - homepage = https://cataclysmdda.org/; - license = licenses.cc-by-sa-30; - maintainers = [ maintainers.skeidel ]; - platforms = platforms.unix; + meta = common.meta // { + maintainers = with stdenv.lib.maintainers; [ skeidel ]; }; -} +}) diff --git a/pkgs/games/cataclysm-dda/git.nix b/pkgs/games/cataclysm-dda/git.nix index d1d1b4c54d4..01c0084d790 100644 --- a/pkgs/games/cataclysm-dda/git.nix +++ b/pkgs/games/cataclysm-dda/git.nix @@ -1,100 +1,44 @@ -{ fetchFromGitHub, stdenv, pkgconfig, ncurses, lua, SDL2, SDL2_image, SDL2_ttf, -SDL2_mixer, freetype, gettext, CoreFoundation, Cocoa, -tiles ? true, debug ? false }: +{ stdenv, callPackage +, tiles ? true, Cocoa, CoreFoundation +, debug ? false +}: -stdenv.mkDerivation rec { +let + inherit (stdenv.lib) optionals optionalString substring; + inherit (callPackage ./common.nix { inherit tiles Cocoa debug; }) common utils; + inherit (utils) fetchFromCleverRaven installXDGAppLauncher installMacOSAppLauncher; +in + +stdenv.mkDerivation (common // rec { version = "2018-07-15"; name = "cataclysm-dda-git-${version}"; - src = fetchFromGitHub { - owner = "CleverRaven"; - repo = "Cataclysm-DDA"; + src = fetchFromCleverRaven { rev = "e1e5d81"; sha256 = "198wfj8l1p8xlwicj92cq237pzv2ha9pcf240y7ijhjpmlc9jkr1"; }; - nativeBuildInputs = [ pkgconfig ]; - - buildInputs = with stdenv.lib; [ ncurses lua gettext ] - ++ optionals stdenv.isDarwin [ CoreFoundation ] - ++ optionals tiles [ SDL2 SDL2_image SDL2_ttf SDL2_mixer freetype ] - ++ optionals (tiles && stdenv.isDarwin) [ Cocoa ]; + buildInputs = common.buildInputs + ++ optionals stdenv.isDarwin [ CoreFoundation ]; patches = [ ./patches/fix_locale_dir_git.patch ]; - postPatch = '' - patchShebangs . - sed -i data/xdg/com.cataclysmdda.cataclysm-dda.desktop \ - -e "s,\(Exec=\)\(cataclysm-tiles\),\1$out/bin/\2," - ''; - - makeFlags = with stdenv.lib; [ - "PREFIX=$(out)" - "LUA=1" - "USE_HOME_DIR=1" - "LANGUAGES=all" + makeFlags = common.makeFlags ++ [ "VERSION=git-${version}-${substring 0 8 src.rev}" - ] ++ optionals tiles [ - "TILES=1" - "SOUND=1" - ] ++ optionals stdenv.isDarwin [ - "NATIVE=osx" - "CLANG=1" - ] ++ optionals (! debug) [ - "RELEASE=1" ]; - postInstall = with stdenv.lib; optionalString (tiles && !stdenv.isDarwin) '' - install -D -m 444 data/xdg/com.cataclysmdda.cataclysm-dda.desktop -T $out/share/applications/cataclysm-dda.desktop - install -D -m 444 data/xdg/cataclysm-dda.svg -t $out/share/icons/hicolor/scalable/apps - '' + optionalString (tiles && stdenv.isDarwin) '' - app=$out/Applications/Cataclysm.app - install -D -m 444 data/osx/Info.plist -t $app/Contents - install -D -m 444 data/osx/AppIcon.icns -t $app/Contents/Resources - mkdir $app/Contents/MacOS - launcher=$app/Contents/MacOS/Cataclysm.sh - cat << SCRIPT > $launcher - #!/bin/sh - $out/bin/cataclysm-tiles - SCRIPT - chmod 555 $launcher - ''; + postInstall = optionalString tiles + ( if !stdenv.isDarwin + then installXDGAppLauncher + else installMacOSAppLauncher + ); # https://hydra.nixos.org/build/65193254 # src/weather_data.cpp:203:1: fatal error: opening dependency file obj/tiles/weather_data.d: No such file or directory # make: *** [Makefile:687: obj/tiles/weather_data.o] Error 1 enableParallelBuilding = false; - dontStrip = debug; - - meta = with stdenv.lib; { - description = "A free, post apocalyptic, zombie infested rogue-like"; - longDescription = '' - Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. - Surviving is difficult: you have been thrown, ill-equipped, into a - landscape now riddled with monstrosities of which flesh eating zombies are - neither the strangest nor the deadliest. - - Yet with care and a little luck, many things are possible. You may try to - eke out an existence in the forests silently executing threats and - providing sustenance with your longbow. You can ride into town in a - jerry-rigged vehicle, all guns blazing, to settle matters in a fug of - smoke from your molotovs. You could take a more measured approach and - construct an impregnable fortress, surrounded by traps to protect you from - the horrors without. The longer you survive, the more skilled and adapted - you will get and the better equipped and armed to deal with the threats - you are presented with. - - In the course of your ordeal there will be opportunities and temptations - to improve or change your very nature. There are tales of survivors fitted - with extraordinary cybernetics giving great power and stories too of - gravely mutated survivors who, warped by their ingestion of exotic - substances or radiation, now more closely resemble insects, birds or fish - than their original form. - ''; - maintainers = with maintainers; [ rardiol ]; - homepage = https://cataclysmdda.org/; - license = licenses.cc-by-sa-30; - platforms = platforms.unix; + meta = common.meta // { + maintainers = with stdenv.lib.maintainers; [ rardiol ]; }; -} +}) From 030cbaff7fe7b003acf2f117ad0867dfb473310b Mon Sep 17 00:00:00 2001 From: Mitsuhiro Nakamura Date: Thu, 19 Jul 2018 11:40:56 +0900 Subject: [PATCH 04/81] cataclysm-dda{,-git}: add mnacamura as maintainer --- pkgs/games/cataclysm-dda/common.nix | 1 + pkgs/games/cataclysm-dda/default.nix | 4 ++-- pkgs/games/cataclysm-dda/git.nix | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/games/cataclysm-dda/common.nix b/pkgs/games/cataclysm-dda/common.nix index 389a9a61394..6a08a775545 100644 --- a/pkgs/games/cataclysm-dda/common.nix +++ b/pkgs/games/cataclysm-dda/common.nix @@ -59,6 +59,7 @@ let ''; homepage = https://cataclysmdda.org/; license = licenses.cc-by-sa-30; + maintainers = with maintainers; [ mnacamura ]; platforms = platforms.unix; }; }; diff --git a/pkgs/games/cataclysm-dda/default.nix b/pkgs/games/cataclysm-dda/default.nix index 36b62f53884..3ddac8f3fc7 100644 --- a/pkgs/games/cataclysm-dda/default.nix +++ b/pkgs/games/cataclysm-dda/default.nix @@ -46,7 +46,7 @@ stdenv.mkDerivation (common // rec { # Disable, possible problems with hydra #enableParallelBuilding = true; - meta = common.meta // { - maintainers = with stdenv.lib.maintainers; [ skeidel ]; + meta = with stdenv.lib.maintainers; common.meta // { + maintainers = common.meta.maintainers ++ [ skeidel ]; }; }) diff --git a/pkgs/games/cataclysm-dda/git.nix b/pkgs/games/cataclysm-dda/git.nix index 01c0084d790..c8f031d3194 100644 --- a/pkgs/games/cataclysm-dda/git.nix +++ b/pkgs/games/cataclysm-dda/git.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation (common // rec { # make: *** [Makefile:687: obj/tiles/weather_data.o] Error 1 enableParallelBuilding = false; - meta = common.meta // { - maintainers = with stdenv.lib.maintainers; [ rardiol ]; + meta = with stdenv.lib.maintainers; common.meta // { + maintainers = common.meta.maintainers ++ [ rardiol ]; }; }) From 0186ec73291fd009c05294126cc097fb757ec509 Mon Sep 17 00:00:00 2001 From: gnidorah Date: Sun, 22 Jul 2018 18:07:29 +0300 Subject: [PATCH 05/81] pakcs: 1.14.0 -> 2.0.2 --- .../compilers/pakcs/adjust-buildsystem.patch | 21 --- .../compilers/pakcs/case-insensitive.patch | 19 -- .../compilers/pakcs/curry-base.nix | 16 ++ .../compilers/pakcs/curry-frontend.nix | 24 +++ pkgs/development/compilers/pakcs/default.nix | 163 ++++++------------ 5 files changed, 88 insertions(+), 155 deletions(-) delete mode 100644 pkgs/development/compilers/pakcs/adjust-buildsystem.patch delete mode 100644 pkgs/development/compilers/pakcs/case-insensitive.patch create mode 100644 pkgs/development/compilers/pakcs/curry-base.nix create mode 100644 pkgs/development/compilers/pakcs/curry-frontend.nix diff --git a/pkgs/development/compilers/pakcs/adjust-buildsystem.patch b/pkgs/development/compilers/pakcs/adjust-buildsystem.patch deleted file mode 100644 index 2d1f92af81d..00000000000 --- a/pkgs/development/compilers/pakcs/adjust-buildsystem.patch +++ /dev/null @@ -1,21 +0,0 @@ -diff -Naur pakcs-1.11.4-upstream/scripts/pakcs.sh pakcs-1.11.4/scripts/pakcs.sh ---- pakcs-1.11.4-upstream/scripts/pakcs.sh 2014-10-24 05:06:07.000000000 -0430 -+++ pakcs-1.11.4/scripts/pakcs.sh 2015-01-05 16:26:15.697982791 -0430 -@@ -16,7 +16,7 @@ - # use readline wrapper rlwrap if it is installed and we have tty as stdin: - USERLWRAP=no - if tty -s ; then -- RLWRAP=`which rlwrap` -+ RLWRAP=`type -P rlwrap` - if [ -x "$RLWRAP" ] ; then - USERLWRAP=yes - fi -@@ -29,7 +29,7 @@ - done - - if [ $USERLWRAP = yes ] ; then -- exec rlwrap -c -f "$PAKCSHOME/tools/rlwrap" "$REPL" ${1+"$@"} -+ exec rlwrap -a -c -f "$PAKCSHOME/tools/rlwrap" "$REPL" ${1+"$@"} - else - exec "$REPL" ${1+"$@"} - fi diff --git a/pkgs/development/compilers/pakcs/case-insensitive.patch b/pkgs/development/compilers/pakcs/case-insensitive.patch deleted file mode 100644 index e46558c2520..00000000000 --- a/pkgs/development/compilers/pakcs/case-insensitive.patch +++ /dev/null @@ -1,19 +0,0 @@ ---- www/Makefile.orig 2016-10-10 21:04:36.000000000 +0300 -+++ pakcs-1.14.0/www/Makefile 2016-10-10 21:07:56.000000000 +0300 -@@ -6,7 +6,7 @@ all: submitform Registry - submitform: SubmitForm.curry $(LIBDIR)/HtmlCgi.curry \ - $(LIBDIR)/NamedSocket.curry $(LIBDIR)/CPNS.curry - $(REPL) $(REPL_OPTS) :load SubmitForm :save :q -- mv SubmitForm submitform -+ mv SubmitForm submitform.orig && mv submitform.orig submitform - - Registry: Registry.curry $(LIBDIR)/HtmlCgi.curry - $(REPL) $(REPL_OPTS) :load Registry :save :q ---- currytools/erd2curry/Makefile.orig 2016-10-10 21:13:49.000000000 +0300 -+++ pakcs-1.14.0/currytools/erd2curry/Makefile 2016-10-10 21:21:14.000000000 +0300 -@@ -32,4 +32,4 @@ uninstall: clean - erd2curry: $(DEPS) - # create saved state for top-level function "main": - $(REPL) $(REPL_OPTS) :load ERD2Curry :save "main \"$(CURDIR)\"" :q -- mv ERD2Curry $@ -+ mv ERD2Curry $@.orig && mv $@.orig $@ diff --git a/pkgs/development/compilers/pakcs/curry-base.nix b/pkgs/development/compilers/pakcs/curry-base.nix new file mode 100644 index 00000000000..2d98699d283 --- /dev/null +++ b/pkgs/development/compilers/pakcs/curry-base.nix @@ -0,0 +1,16 @@ +{ mkDerivation, base, Cabal, containers, directory, extra, filepath +, mtl, parsec, pretty, stdenv, time, transformers +}: +mkDerivation { + pname = "curry-base"; + version = "1.0.0"; + src = ./.; + libraryHaskellDepends = [ + base containers directory extra filepath mtl parsec pretty time + transformers + ]; + testHaskellDepends = [ base Cabal filepath mtl ]; + homepage = "http://curry-language.org"; + description = "Functions for manipulating Curry programs"; + license = stdenv.lib.licenses.bsd3; +} diff --git a/pkgs/development/compilers/pakcs/curry-frontend.nix b/pkgs/development/compilers/pakcs/curry-frontend.nix new file mode 100644 index 00000000000..d94bef9ec7f --- /dev/null +++ b/pkgs/development/compilers/pakcs/curry-frontend.nix @@ -0,0 +1,24 @@ +{ mkDerivation, base, Cabal, containers, curry-base, directory +, extra, filepath, mtl, network-uri, pretty, process, set-extra +, stdenv, transformers +}: +mkDerivation { + pname = "curry-frontend"; + version = "1.0.2"; + src = ./.; + isLibrary = true; + isExecutable = true; + enableSeparateDataOutput = true; + libraryHaskellDepends = [ + base containers curry-base directory extra filepath mtl network-uri + pretty process set-extra transformers + ]; + executableHaskellDepends = [ + base containers curry-base directory extra filepath mtl network-uri + pretty process set-extra transformers + ]; + testHaskellDepends = [ base Cabal curry-base filepath ]; + homepage = "http://curry-language.org"; + description = "Compile the functional logic language Curry to several intermediate formats"; + license = stdenv.lib.licenses.bsd3; +} diff --git a/pkgs/development/compilers/pakcs/default.nix b/pkgs/development/compilers/pakcs/default.nix index 60388265348..52639667745 100644 --- a/pkgs/development/compilers/pakcs/default.nix +++ b/pkgs/development/compilers/pakcs/default.nix @@ -1,139 +1,72 @@ -{ stdenv, fetchurl, swiProlog, haskellPackages -, glibcLocales, makeWrapper, rlwrap, tk, which }: +{ stdenv, fetchurl, makeWrapper +, haskellPackages, haskell +, which, swiProlog, rlwrap, tk +, curl, git, unzip, gnutar, coreutils, sqlite }: let - fname = "pakcs-1.14.0"; + name = "pakcs-2.0.2"; - fsrc = fetchurl { - url = "https://www.informatik.uni-kiel.de/~pakcs/download/${fname}-src.tar.gz"; - sha256 = "1651ssh4ql79x8asd7kp4yis2n5rhn3lml4s26y03b0cgbfhs78s"; + src = fetchurl { + url = "https://www.informatik.uni-kiel.de/~pakcs/download/${name}-src.tar.gz"; + sha256 = "0fdzw2zz5vs6z20jn6a8jfvpr6dp7fs1rr01cy0xjnzg2mgmn42a"; }; - swiPrologLocked = stdenv.lib.overrideDerivation swiProlog (oldAttrs: rec { - version = "6.6.6"; - name = "swi-prolog-${version}"; - src = fetchurl { - url = "http://www.swi-prolog.org/download/stable/src/pl-${version}.tar.gz"; - sha256 = "0vcrfskm2hyhv30lxr6v261myb815jc3bgmcn1lgsc9g9qkvp04z"; + curry-frontend = (haskellPackages.override { + overrides = self: super: { + curry-base = haskell.lib.overrideCabal (super.callPackage ./curry-base.nix {}) (drv: { + inherit src; + postUnpack = "sourceRoot+=/frontend/curry-base"; + }); + curry-frontend = haskell.lib.overrideCabal (super.callPackage ./curry-frontend.nix {}) (drv: { + inherit src; + postUnpack = "sourceRoot+=/frontend/curry-frontend"; + }); }; - }); + }).curry-frontend; +in stdenv.mkDerivation { + inherit name src; -in -stdenv.mkDerivation rec { + buildInputs = [ swiProlog ]; + nativeBuildInputs = [ which makeWrapper ]; - name = fname; - - curryBase = haskellPackages.callPackage ( - { mkDerivation, base, Cabal, containers, directory, either - , filepath, mtl, pretty, syb, time - }: - mkDerivation { - pname = "curry-base"; - version = "0.4.1"; - src = fsrc; - libraryHaskellDepends = [ - base containers directory either filepath mtl pretty syb time - ]; - testHaskellDepends = [ base Cabal filepath mtl ]; - homepage = http://curry-language.org; - description = "Functions for manipulating Curry programs"; - license = "unknown"; - - postUnpack = '' - mv ${name} ${name}.orig - ln -s ${name}.orig/frontend/curry-base ${name} - ''; - doCheck = false; - } - ) {}; - - curryFront = haskellPackages.callPackage ( - { mkDerivation, base, Cabal, containers, directory - , filepath, mtl, network-uri, process, syb, transformers - }: - mkDerivation { - pname = "curry-frontend"; - version = "0.4.1"; - src = fsrc; - isLibrary = true; - isExecutable = true; - libraryHaskellDepends = [ - base containers curryBase directory filepath mtl network-uri - process syb transformers - ]; - executableHaskellDepends = [ - base containers curryBase directory filepath mtl network-uri - process syb transformers - ]; - testHaskellDepends = [ base Cabal curryBase filepath ]; - homepage = http://curry-language.org; - description = "Compile the functional logic language Curry to several intermediate formats"; - license = "unknown"; - - postUnpack = '' - mv ${name} ${name}.orig - ln -s ${name}.orig/frontend/curry-frontend ${name} - ''; - doCheck = false; - } - ) {}; - - src = fsrc; - - buildInputs = [ swiPrologLocked makeWrapper glibcLocales rlwrap tk which ]; - - patches = [ - ./adjust-buildsystem.patch - ./case-insensitive.patch + makeFlags = [ + "CURRYFRONTEND=${curry-frontend}/bin/curry-frontend" + "DISTPKGINSTALL=yes" + # Not needed, just to make script pass + "CURRYTOOLSDIR=0" + "CURRYLIBSDIR=0" ]; - configurePhase = '' - # Phony HOME. - mkdir phony-home - export HOME=$(pwd)/phony-home + preConfigure = '' + # Since we can't expand $out in `makeFlags` + #makeFlags="$makeFlags PAKCSINSTALLDIR=$out/pakcs" - # SWI Prolog - sed -i 's@SWIPROLOG=@SWIPROLOG='${swiPrologLocked}/bin/swipl'@' scripts/pakcsinitrc.sh + substituteInPlace currytools/cpm/src/CPM/Repository.curry \ + --replace "/bin/rm" "rm" ''; + # cypm new: EXISTENCE ERROR: source_sink + # "/tmp/nix-build-pakcs-2.0.2.drv-0/pakcs-2.0.2/currytools/cpm/templates/LICENSE" + # does not exist buildPhase = '' - # Some comments in files are in UTF-8, so include the locale needed by GHC runtime. - export LC_ALL=en_US.UTF-8 - - # PAKCS must be build in place due to embedded filesystem references placed by swi. - - # Prepare PAKCSHOME directory. - mkdir -p $out/pakcs/bin - - # Set up link to cymake, which has been built already. - ln -s ${curryFront}/bin/cymake $out/pakcs/bin/ - rm -r frontend - - # Prevent embedding the derivation build directory as temp. - export TEMP=/tmp - - # Copy to in place build location and run the build. + mkdir -p $out/pakcs cp -r * $out/pakcs - (cd $out/pakcs ; make) + (cd $out/pakcs ; make -j$NIX_BUILD_CORES $makeFlags) ''; installPhase = '' - # Install bin. - mkdir -p $out/bin - for b in $(ls $out/pakcs/bin) ; do - ln -s $out/pakcs/bin/$b $out/bin/ ; - done + ln -s $out/pakcs/bin $out - # Place emacs lisp files in expected locations. - mkdir -p $out/share/emacs/site-lisp/curry-pakcs - for e in "$out/pakcs/tools/emacs/"*.el ; do - cp $e $out/share/emacs/site-lisp/curry-pakcs/ ; - done + mkdir -p $out/share/emacs/site-lisp + ln -s $out/pakcs/tools/emacs $out/share/emacs/site-lisp/curry-pakcs - # Wrap for rlwrap and tk support. wrapProgram $out/pakcs/bin/pakcs \ --prefix PATH ":" "${rlwrap}/bin" \ - --prefix PATH ":" "${tk}/bin" \ + --prefix PATH ":" "${tk}/bin" + + # List of dependencies from currytools/cpm/src/CPM/Main.curry + wrapProgram $out/pakcs/bin/cypm \ + --prefix PATH ":" "${stdenv.lib.makeBinPath [ curl git unzip gnutar coreutils sqlite ]}" ''; meta = with stdenv.lib; { @@ -154,6 +87,6 @@ stdenv.mkDerivation rec { ''; maintainers = with maintainers; [ kkallio gnidorah ]; - platforms = platforms.unix; + platforms = platforms.linux; }; } From 4f6df27aee0a3f620d65280c7b6644d5cce094ae Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Sun, 29 Jul 2018 11:01:55 +0200 Subject: [PATCH 06/81] nixos/nix-daemon: default `nix.useSandbox` to `true`. --- nixos/doc/manual/release-notes/rl-1809.xml | 4 +++- nixos/modules/services/misc/nix-daemon.nix | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-1809.xml b/nixos/doc/manual/release-notes/rl-1809.xml index f03b1eab619..b80f30f0111 100644 --- a/nixos/doc/manual/release-notes/rl-1809.xml +++ b/nixos/doc/manual/release-notes/rl-1809.xml @@ -370,7 +370,9 @@ inherit (pkgs.nixos { s6-dns, s6-networking, s6-linux-utils and s6-portable-utils respectively. - + + + The module option is now defaulted to true. diff --git a/nixos/modules/services/misc/nix-daemon.nix b/nixos/modules/services/misc/nix-daemon.nix index e64df8dc7d2..5ca879bf266 100644 --- a/nixos/modules/services/misc/nix-daemon.nix +++ b/nixos/modules/services/misc/nix-daemon.nix @@ -127,16 +127,16 @@ in useSandbox = mkOption { type = types.either types.bool (types.enum ["relaxed"]); - default = false; + default = true; description = " If set, Nix will perform builds in a sandboxed environment that it will set up automatically for each build. This prevents impurities in builds by disallowing access to dependencies outside of the Nix store by using network and mount namespaces in a chroot environment. - This isn't enabled by default for possible performance impacts due to - the initial setup time of a sandbox for each build. It doesn't affect - derivation hashes, so changing this option will not trigger a rebuild - of packages. + This is enabled by default even though it has a possible performance + impact due to the initial setup time of a sandbox for each build. It + doesn't affect derivation hashes, so changing this option will not + trigger a rebuild of packages. "; }; From 126f2057521ff0dd32ed8f641300b25cb28f00a3 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Sat, 28 Jul 2018 20:48:43 -0700 Subject: [PATCH 07/81] gnome-builder: init at 3.28.4 --- .../editors/gnome-builder/default.nix | 83 +++++++++++++++++++ .../gnome-builder/python-libprefix.patch | 41 +++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 126 insertions(+) create mode 100644 pkgs/applications/editors/gnome-builder/default.nix create mode 100644 pkgs/applications/editors/gnome-builder/python-libprefix.patch diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix new file mode 100644 index 00000000000..a8de170d153 --- /dev/null +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -0,0 +1,83 @@ +{ stdenv, fetchurl, gnome3, gobjectIntrospection, meson, ninja, pkgconfig +, appstream-glib, desktop-file-utils, python3, python3Packages, wrapGAppsHook +, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle, libxml2, pcre +, sysprof, template-glib, vala, webkitgtk +}: +let + version = "3.28.4"; + pname = "gnome-builder"; +in stdenv.mkDerivation { + name = "${pname}-${version}"; + + src = fetchurl { + url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${pname}-${version}.tar.xz"; + sha256 = "0ibb74jlyrl5f6rj1b74196zfg2qaf870lxgi76qzpkgwq0iya05"; + }; + + buildInputs = [ + python3Packages.wrapPython + wrapGAppsHook + gobjectIntrospection + meson + ninja + pkgconfig + + appstream-glib + desktop-file-utils + + gnome3.devhelp + gnome3.libgit2-glib + gnome3.libpeas + gnome3.vte + gspell + gtk3 + gtksourceview3 + json-glib + jsonrpc-glib + libdazzle + libxml2 + pcre + sysprof + template-glib + vala + webkitgtk + ]; + + prePatch = '' + sed -i 's@/usr/bin/env python3@${python3}/bin/python3@g' build-aux/meson/post_install.py + ''; + + patches = [ + ./python-libprefix.patch + ]; + + mesonFlags = [ + "-Dpython_libprefix=${python3.libPrefix}" + "-Dwith_clang=false" + "-Dwith_flatpak=false" + ]; + + pythonPath = with python3Packages; requiredPythonModules [ pygobject3 ]; + + preFixup = '' + buildPythonPath "$out $pythonPath" + gappsWrapperArgs+=( + --prefix PATH : "$program_PATH" + --prefix PYTHONPATH : "$program_PYTHONPATH" + ) + + # Ensure that all plugins get their interpreter paths fixed up. + find $out/lib -name \*.py -type f -print0 | while read -d "" f; do + chmod a+x "$f" + done + ''; + + passthru.updateScript = gnome3.updateScript { packageName = pname; }; + + meta = with stdenv.lib; { + description = "An IDE for writing GNOME-based software"; + homepage = https://wiki.gnome.org/Apps/Builder; + license = licenses.gpl3; + platforms = platforms.linux; + }; +} diff --git a/pkgs/applications/editors/gnome-builder/python-libprefix.patch b/pkgs/applications/editors/gnome-builder/python-libprefix.patch new file mode 100644 index 00000000000..744960c08c7 --- /dev/null +++ b/pkgs/applications/editors/gnome-builder/python-libprefix.patch @@ -0,0 +1,41 @@ +--- gnome-builder-3.28.4/meson_options.txt.orig 2018-07-29 15:36:03.605081188 -0700 ++++ gnome-builder-3.28.4/meson_options.txt 2018-07-29 15:36:19.877608836 -0700 +@@ -15,6 +15,8 @@ + option('with_help', type: 'boolean') + option('with_docs', type: 'boolean', value: false) + ++option('python_libprefix', type: 'string') ++ + # Plugins + # Ideally we want many of these to be defined in the plugin dir: + # https://github.com/mesonbuild/meson/issues/707 +--- gnome-builder-3.28.4/src/libide/meson.build.orig 2018-07-29 15:36:03.605081188 -0700 ++++ gnome-builder-3.28.4/src/libide/meson.build 2018-07-29 15:36:43.237365710 -0700 +@@ -161,6 +161,10 @@ + endif + + # We want to find the subdirectory to install our override into: ++python_libprefix = get_option('python_libprefix') ++if python_libprefix != '' ++ pygobject_override_dir = join_paths(get_option('libdir'), python_libprefix, 'site_packages', 'gi', 'overrides') ++else + python3 = find_program('python3') + + get_overridedir = ''' +@@ -190,6 +194,7 @@ + else + pygobject_override_dir = join_paths(get_option('libdir'), ret.stdout().strip()) + endif ++endif + + install_data('Ide.py', install_dir: pygobject_override_dir) + +@@ -222,7 +227,7 @@ + dependencies: libide_deps, + c_args: libide_args, + install: true, +- install_dir: pkglibdir, ++ install_dir: pkglibdir_abs, + install_rpath: pkglibdir_abs, + ) + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 42d38772772..714acf247d6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2717,6 +2717,8 @@ with pkgs; inherit (gnome2) gnome_python gnome_python_desktop; }; + gnome-builder = callPackage ../applications/editors/gnome-builder { }; + gnokii = callPackage ../tools/misc/gnokii { }; gnuapl = callPackage ../development/interpreters/gnu-apl { }; From 7bd3ca49bcd56fe8f8ac6e4fbbb81769d5ad835f Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Mon, 30 Jul 2018 15:04:31 -0700 Subject: [PATCH 08/81] gnome-builder: address review from @jtojnar/#44217 --- .../editors/gnome-builder/default.nix | 19 ++++++++++++------- .../editors/gnome-builder/flatpak-deps.patch | 12 ++++++++++++ 2 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 pkgs/applications/editors/gnome-builder/flatpak-deps.patch diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index a8de170d153..07e1925173a 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchurl, gnome3, gobjectIntrospection, meson, ninja, pkgconfig , appstream-glib, desktop-file-utils, python3, python3Packages, wrapGAppsHook -, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle, libxml2, pcre -, sysprof, template-glib, vala, webkitgtk +, flatpak, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle +, libxml2, ostree, pcre , sysprof, template-glib, vala, webkitgtk }: let version = "3.28.4"; @@ -14,7 +14,7 @@ in stdenv.mkDerivation { sha256 = "0ibb74jlyrl5f6rj1b74196zfg2qaf870lxgi76qzpkgwq0iya05"; }; - buildInputs = [ + nativeBuildInputs = [ python3Packages.wrapPython wrapGAppsHook gobjectIntrospection @@ -24,7 +24,10 @@ in stdenv.mkDerivation { appstream-glib desktop-file-utils + ]; + buildInputs = [ + flatpak gnome3.devhelp gnome3.libgit2-glib gnome3.libpeas @@ -36,7 +39,9 @@ in stdenv.mkDerivation { jsonrpc-glib libdazzle libxml2 + ostree pcre + python3 sysprof template-glib vala @@ -44,17 +49,17 @@ in stdenv.mkDerivation { ]; prePatch = '' - sed -i 's@/usr/bin/env python3@${python3}/bin/python3@g' build-aux/meson/post_install.py + patchShebangs build-aux/meson/post_install.py ''; patches = [ ./python-libprefix.patch + ./flatpak-deps.patch ]; mesonFlags = [ "-Dpython_libprefix=${python3.libPrefix}" "-Dwith_clang=false" - "-Dwith_flatpak=false" ]; pythonPath = with python3Packages; requiredPythonModules [ pygobject3 ]; @@ -62,7 +67,6 @@ in stdenv.mkDerivation { preFixup = '' buildPythonPath "$out $pythonPath" gappsWrapperArgs+=( - --prefix PATH : "$program_PATH" --prefix PYTHONPATH : "$program_PYTHONPATH" ) @@ -77,7 +81,8 @@ in stdenv.mkDerivation { meta = with stdenv.lib; { description = "An IDE for writing GNOME-based software"; homepage = https://wiki.gnome.org/Apps/Builder; - license = licenses.gpl3; + license = licenses.gpl3Plus; + maintainers = gnome3.maintainers; platforms = platforms.linux; }; } diff --git a/pkgs/applications/editors/gnome-builder/flatpak-deps.patch b/pkgs/applications/editors/gnome-builder/flatpak-deps.patch new file mode 100644 index 00000000000..c773fda378e --- /dev/null +++ b/pkgs/applications/editors/gnome-builder/flatpak-deps.patch @@ -0,0 +1,12 @@ +diff --git a/src/plugins/flatpak/meson.build b/src/plugins/flatpak/meson.build +index 657f7939b..28982bb74 100644 +--- a/src/plugins/flatpak/meson.build ++++ b/src/plugins/flatpak/meson.build +@@ -52,6 +52,7 @@ flatpak_sources = [ + + gnome_builder_plugins_deps += [ + dependency('flatpak', version: '>= 0.8.0'), ++ dependency('ostree-1'), + dependency('libsoup-2.4', version: '>= 2.52.0'), + libgit_dep, + ] From 6ae9723cfb130a7132dc34507d7db31af99d714e Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Mon, 30 Jul 2018 17:34:30 -0700 Subject: [PATCH 09/81] gnome-builder: enable docs, fix typos. I also tried turning on the tests, but they don't work and I don't understand why not. --- ...ibide-s-install_dir-an-absolute-path.patch | 29 ++++++++ ...gers-to-specify-the-Python-libprefix.patch | 70 +++++++++++++++++++ ...tree-1-dependency-to-flatpak-plugin.patch} | 12 ++++ .../editors/gnome-builder/default.nix | 53 ++++++++++---- .../gnome-builder/python-libprefix.patch | 41 ----------- 5 files changed, 152 insertions(+), 53 deletions(-) create mode 100644 pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch create mode 100644 pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch rename pkgs/applications/editors/gnome-builder/{flatpak-deps.patch => 0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch} (56%) delete mode 100644 pkgs/applications/editors/gnome-builder/python-libprefix.patch diff --git a/pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch b/pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch new file mode 100644 index 00000000000..96192416c5a --- /dev/null +++ b/pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch @@ -0,0 +1,29 @@ +From 6d2edb1635465dc226bc7e05fd33c9ee456e2430 Mon Sep 17 00:00:00 2001 +From: Jamey Sharp +Date: Mon, 30 Jul 2018 13:26:28 -0700 +Subject: [PATCH 1/3] Make libide's install_dir an absolute path. + +As far as I know, this change should be a no-op on all systems where +Builder works today. However, it is necessary for getting the correct +shared-library path into generated .gir and typelib files when building +on Nix, so I'm hoping this is an acceptable change for upstream. +--- + src/libide/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libide/meson.build b/src/libide/meson.build +index e0643eda4..e27e0e43a 100644 +--- a/src/libide/meson.build ++++ b/src/libide/meson.build +@@ -229,7 +229,7 @@ libide = shared_library('ide-' + libide_api_version, + dependencies: libide_deps, + c_args: libide_args, + install: true, +- install_dir: pkglibdir, ++ install_dir: pkglibdir_abs, + install_rpath: pkglibdir_abs, + ) + +-- +2.16.4 + diff --git a/pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch b/pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch new file mode 100644 index 00000000000..f0414de873f --- /dev/null +++ b/pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch @@ -0,0 +1,70 @@ +From 4c5d544772920c774e99388ca4e8457f0c0a4ba4 Mon Sep 17 00:00:00 2001 +From: Jamey Sharp +Date: Mon, 30 Jul 2018 13:30:15 -0700 +Subject: [PATCH 2/3] Allow packagers to specify the Python libprefix. + +When packaging for Nix, the directory that pygobject finds its overrides +in is not writable. It'll usually look something like this, and can only +contain files built by the pygobject package itself: + +/nix/store/58qam3zgdcvvsz4g081pp98kg9i5v7rb-python3.6-pygobject-3.26.1/lib/python3.6/site-packages/gi/overrides + +This makes Builder's pygobject_override_dir heuristic fail, because +Builder's libdir is not a prefix of pygobject's libdir. + +Fortunately, what Builder actually needs is for its overrides to be on +the Python import path when it runs, and that's easier to arrange. We +just need to be sure that Ide.py gets installed to + +/python/site-packages/gi/overrides + +So this patch allows packagers to optionally specify the +"python" portion of the path, and just constructs the rest of +the path using Builder's libdir. + +The existing auto-detection code is still used unless the +-Dpython_libprefix option is explicitly specified to override it. +--- + meson_options.txt | 2 ++ + src/libide/meson.build | 5 +++++ + 2 files changed, 7 insertions(+) + +diff --git a/meson_options.txt b/meson_options.txt +index 1ee96f23e..ca94bcd62 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -19,6 +19,8 @@ option('with_docs', type: 'boolean', value: false) + + option('ctags_path', type: 'string', value: '') + ++option('python_libprefix', type: 'string') ++ + # Plugins + # Ideally we want many of these to be defined in the plugin dir: + # https://github.com/mesonbuild/meson/issues/707 +diff --git a/src/libide/meson.build b/src/libide/meson.build +index e27e0e43a..b245c855a 100644 +--- a/src/libide/meson.build ++++ b/src/libide/meson.build +@@ -164,6 +164,10 @@ if get_option('with_editorconfig') + endif + + # We want to find the subdirectory to install our override into: ++python_libprefix = get_option('python_libprefix') ++if python_libprefix != '' ++ pygobject_override_dir = join_paths(get_option('libdir'), python_libprefix, 'site-packages', 'gi', 'overrides') ++else + python3 = find_program('python3') + + get_overridedir = ''' +@@ -193,6 +197,7 @@ if ret.returncode() != 0 + else + pygobject_override_dir = join_paths(get_option('libdir'), ret.stdout().strip()) + endif ++endif + + install_data('Ide.py', install_dir: pygobject_override_dir) + +-- +2.16.4 + diff --git a/pkgs/applications/editors/gnome-builder/flatpak-deps.patch b/pkgs/applications/editors/gnome-builder/0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch similarity index 56% rename from pkgs/applications/editors/gnome-builder/flatpak-deps.patch rename to pkgs/applications/editors/gnome-builder/0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch index c773fda378e..05f3e674345 100644 --- a/pkgs/applications/editors/gnome-builder/flatpak-deps.patch +++ b/pkgs/applications/editors/gnome-builder/0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch @@ -1,3 +1,12 @@ +From 8d4d251bb613feb2c4aad3d9aef77d9691c0a882 Mon Sep 17 00:00:00 2001 +From: Jamey Sharp +Date: Mon, 30 Jul 2018 15:22:30 -0700 +Subject: [PATCH 3/3] Add missing ostree-1 dependency to flatpak plugin + +--- + src/plugins/flatpak/meson.build | 1 + + 1 file changed, 1 insertion(+) + diff --git a/src/plugins/flatpak/meson.build b/src/plugins/flatpak/meson.build index 657f7939b..28982bb74 100644 --- a/src/plugins/flatpak/meson.build @@ -10,3 +19,6 @@ index 657f7939b..28982bb74 100644 dependency('libsoup-2.4', version: '>= 2.52.0'), libgit_dep, ] +-- +2.16.4 + diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index 07e1925173a..d8bd4565f44 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -1,7 +1,30 @@ -{ stdenv, fetchurl, gnome3, gobjectIntrospection, meson, ninja, pkgconfig -, appstream-glib, desktop-file-utils, python3, python3Packages, wrapGAppsHook -, flatpak, gspell, gtk3, gtksourceview3, json-glib, jsonrpc-glib, libdazzle -, libxml2, ostree, pcre , sysprof, template-glib, vala, webkitgtk +{ stdenv +, desktop-file-utils +, docbook_xsl +, fetchurl +, flatpak +, gnome3 +, gobjectIntrospection +, gspell +, gtk-doc +, gtk3 +, gtksourceview3 +, hicolor-icon-theme +, json-glib +, jsonrpc-glib +, libdazzle +, libxml2 +, meson +, ninja +, ostree +, pcre +, pkgconfig +, python3 +, sysprof +, template-glib +, vala +, webkitgtk +, wrapGAppsHook }: let version = "3.28.4"; @@ -15,15 +38,17 @@ in stdenv.mkDerivation { }; nativeBuildInputs = [ - python3Packages.wrapPython - wrapGAppsHook + #appstream-glib # tests fail if these tools are available + desktop-file-utils + docbook_xsl gobjectIntrospection + gtk-doc + hicolor-icon-theme meson ninja pkgconfig - - appstream-glib - desktop-file-utils + python3.pkgs.wrapPython + wrapGAppsHook ]; buildInputs = [ @@ -53,16 +78,18 @@ in stdenv.mkDerivation { ''; patches = [ - ./python-libprefix.patch - ./flatpak-deps.patch + ./0001-Make-libide-s-install_dir-an-absolute-path.patch + ./0002-Allow-packagers-to-specify-the-Python-libprefix.patch + ./0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch ]; mesonFlags = [ "-Dpython_libprefix=${python3.libPrefix}" "-Dwith_clang=false" + "-Dwith_docs=true" ]; - pythonPath = with python3Packages; requiredPythonModules [ pygobject3 ]; + pythonPath = with python3.pkgs; requiredPythonModules [ pygobject3 ]; preFixup = '' buildPythonPath "$out $pythonPath" @@ -76,6 +103,8 @@ in stdenv.mkDerivation { done ''; + #doCheck = true; + passthru.updateScript = gnome3.updateScript { packageName = pname; }; meta = with stdenv.lib; { diff --git a/pkgs/applications/editors/gnome-builder/python-libprefix.patch b/pkgs/applications/editors/gnome-builder/python-libprefix.patch deleted file mode 100644 index 744960c08c7..00000000000 --- a/pkgs/applications/editors/gnome-builder/python-libprefix.patch +++ /dev/null @@ -1,41 +0,0 @@ ---- gnome-builder-3.28.4/meson_options.txt.orig 2018-07-29 15:36:03.605081188 -0700 -+++ gnome-builder-3.28.4/meson_options.txt 2018-07-29 15:36:19.877608836 -0700 -@@ -15,6 +15,8 @@ - option('with_help', type: 'boolean') - option('with_docs', type: 'boolean', value: false) - -+option('python_libprefix', type: 'string') -+ - # Plugins - # Ideally we want many of these to be defined in the plugin dir: - # https://github.com/mesonbuild/meson/issues/707 ---- gnome-builder-3.28.4/src/libide/meson.build.orig 2018-07-29 15:36:03.605081188 -0700 -+++ gnome-builder-3.28.4/src/libide/meson.build 2018-07-29 15:36:43.237365710 -0700 -@@ -161,6 +161,10 @@ - endif - - # We want to find the subdirectory to install our override into: -+python_libprefix = get_option('python_libprefix') -+if python_libprefix != '' -+ pygobject_override_dir = join_paths(get_option('libdir'), python_libprefix, 'site_packages', 'gi', 'overrides') -+else - python3 = find_program('python3') - - get_overridedir = ''' -@@ -190,6 +194,7 @@ - else - pygobject_override_dir = join_paths(get_option('libdir'), ret.stdout().strip()) - endif -+endif - - install_data('Ide.py', install_dir: pygobject_override_dir) - -@@ -222,7 +227,7 @@ - dependencies: libide_deps, - c_args: libide_args, - install: true, -- install_dir: pkglibdir, -+ install_dir: pkglibdir_abs, - install_rpath: pkglibdir_abs, - ) - From e32a5dafafb9bbd176264325f1afc034e97e519d Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Mon, 30 Jul 2018 21:43:12 -0700 Subject: [PATCH 10/81] gnome-builder: include developer docs in $out --- pkgs/applications/editors/gnome-builder/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index d8bd4565f44..0a7bc42bd4b 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -73,6 +73,8 @@ in stdenv.mkDerivation { webkitgtk ]; + outputDevdoc = "out"; + prePatch = '' patchShebangs build-aux/meson/post_install.py ''; From 3a64f5790e9ac26cc665ea096c3a1d9bc16e8958 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Mon, 30 Jul 2018 23:05:11 -0700 Subject: [PATCH 11/81] gnome-builder: ensure gtkdoc can find docbook DTDs --- pkgs/applications/editors/gnome-builder/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index 0a7bc42bd4b..3ed47c14e74 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -1,8 +1,10 @@ { stdenv , desktop-file-utils , docbook_xsl +, docbook_xml_dtd_43 , fetchurl , flatpak +, glibcLocales , gnome3 , gobjectIntrospection , gspell @@ -41,6 +43,8 @@ in stdenv.mkDerivation { #appstream-glib # tests fail if these tools are available desktop-file-utils docbook_xsl + docbook_xml_dtd_43 + glibcLocales # for Meson's gtkdochelper gobjectIntrospection gtk-doc hicolor-icon-theme @@ -91,6 +95,10 @@ in stdenv.mkDerivation { "-Dwith_docs=true" ]; + preInstall = '' + export LC_ALL="en_US.utf-8" + ''; + pythonPath = with python3.pkgs; requiredPythonModules [ pygobject3 ]; preFixup = '' From 63445d01209cf8fe05736e865fb34ad7cddf2cf3 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 31 Jul 2018 17:03:08 -0700 Subject: [PATCH 12/81] gnome-builder: use fetchpatch for upstream patches These patches were merged to master so we can fetch them from the GNOME GitLab instance now. --- .../editors/gnome-builder/default.nix | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index 3ed47c14e74..4adcc3b3dfe 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -2,6 +2,7 @@ , desktop-file-utils , docbook_xsl , docbook_xml_dtd_43 +, fetchpatch , fetchurl , flatpak , glibcLocales @@ -84,9 +85,21 @@ in stdenv.mkDerivation { ''; patches = [ - ./0001-Make-libide-s-install_dir-an-absolute-path.patch - ./0002-Allow-packagers-to-specify-the-Python-libprefix.patch - ./0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch + (fetchpatch { + name = "absolute-shared-library-path.patch"; + url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/1011cabc519fd7322e2d695c79bfce3e18ff6200.patch"; + sha256 = "1g12zziidzrphp527aa8sklfaln4qpjprkz73f0c9w5ph6k252fw"; + }) + (fetchpatch { + name = "python-libprefix.patch"; + url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/43494ce83a347f369ed4cfb8dd71d3b93452736b.patch"; + sha256 = "0kgi3n3g13n1j4xa61ln9xiahcfdc43bxi5mw4yva2d5px445msf"; + }) + (fetchpatch { + name = "ostree-dependency.patch"; + url = "https://gitlab.gnome.org/GNOME/gnome-builder/commit/8b11773b65c95f464a0de16b91318c1ca73deeae.patch"; + sha256 = "18r4hd90id0w6r0lzqpw83bcj45nm9jhr46a0ffi1mcayb18mgbk"; + }) ]; mesonFlags = [ From e0180052a7403e385b4307386bbed1bcbaf3afec Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 31 Jul 2018 17:04:03 -0700 Subject: [PATCH 13/81] gnome-builder: split devdoc to a separate output --- pkgs/applications/editors/gnome-builder/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index 4adcc3b3dfe..2203fb0d699 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -78,7 +78,7 @@ in stdenv.mkDerivation { webkitgtk ]; - outputDevdoc = "out"; + outputs = [ "out" "devdoc" ]; prePatch = '' patchShebangs build-aux/meson/post_install.py From 4ab66373f0727353b05f81f12a189a82c9ebf3a5 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 31 Jul 2018 21:50:52 -0700 Subject: [PATCH 14/81] gnome-builder: remove no-longer-used patches Whoops! --- ...ibide-s-install_dir-an-absolute-path.patch | 29 -------- ...gers-to-specify-the-Python-libprefix.patch | 70 ------------------- ...stree-1-dependency-to-flatpak-plugin.patch | 24 ------- 3 files changed, 123 deletions(-) delete mode 100644 pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch delete mode 100644 pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch delete mode 100644 pkgs/applications/editors/gnome-builder/0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch diff --git a/pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch b/pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch deleted file mode 100644 index 96192416c5a..00000000000 --- a/pkgs/applications/editors/gnome-builder/0001-Make-libide-s-install_dir-an-absolute-path.patch +++ /dev/null @@ -1,29 +0,0 @@ -From 6d2edb1635465dc226bc7e05fd33c9ee456e2430 Mon Sep 17 00:00:00 2001 -From: Jamey Sharp -Date: Mon, 30 Jul 2018 13:26:28 -0700 -Subject: [PATCH 1/3] Make libide's install_dir an absolute path. - -As far as I know, this change should be a no-op on all systems where -Builder works today. However, it is necessary for getting the correct -shared-library path into generated .gir and typelib files when building -on Nix, so I'm hoping this is an acceptable change for upstream. ---- - src/libide/meson.build | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/libide/meson.build b/src/libide/meson.build -index e0643eda4..e27e0e43a 100644 ---- a/src/libide/meson.build -+++ b/src/libide/meson.build -@@ -229,7 +229,7 @@ libide = shared_library('ide-' + libide_api_version, - dependencies: libide_deps, - c_args: libide_args, - install: true, -- install_dir: pkglibdir, -+ install_dir: pkglibdir_abs, - install_rpath: pkglibdir_abs, - ) - --- -2.16.4 - diff --git a/pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch b/pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch deleted file mode 100644 index f0414de873f..00000000000 --- a/pkgs/applications/editors/gnome-builder/0002-Allow-packagers-to-specify-the-Python-libprefix.patch +++ /dev/null @@ -1,70 +0,0 @@ -From 4c5d544772920c774e99388ca4e8457f0c0a4ba4 Mon Sep 17 00:00:00 2001 -From: Jamey Sharp -Date: Mon, 30 Jul 2018 13:30:15 -0700 -Subject: [PATCH 2/3] Allow packagers to specify the Python libprefix. - -When packaging for Nix, the directory that pygobject finds its overrides -in is not writable. It'll usually look something like this, and can only -contain files built by the pygobject package itself: - -/nix/store/58qam3zgdcvvsz4g081pp98kg9i5v7rb-python3.6-pygobject-3.26.1/lib/python3.6/site-packages/gi/overrides - -This makes Builder's pygobject_override_dir heuristic fail, because -Builder's libdir is not a prefix of pygobject's libdir. - -Fortunately, what Builder actually needs is for its overrides to be on -the Python import path when it runs, and that's easier to arrange. We -just need to be sure that Ide.py gets installed to - -/python/site-packages/gi/overrides - -So this patch allows packagers to optionally specify the -"python" portion of the path, and just constructs the rest of -the path using Builder's libdir. - -The existing auto-detection code is still used unless the --Dpython_libprefix option is explicitly specified to override it. ---- - meson_options.txt | 2 ++ - src/libide/meson.build | 5 +++++ - 2 files changed, 7 insertions(+) - -diff --git a/meson_options.txt b/meson_options.txt -index 1ee96f23e..ca94bcd62 100644 ---- a/meson_options.txt -+++ b/meson_options.txt -@@ -19,6 +19,8 @@ option('with_docs', type: 'boolean', value: false) - - option('ctags_path', type: 'string', value: '') - -+option('python_libprefix', type: 'string') -+ - # Plugins - # Ideally we want many of these to be defined in the plugin dir: - # https://github.com/mesonbuild/meson/issues/707 -diff --git a/src/libide/meson.build b/src/libide/meson.build -index e27e0e43a..b245c855a 100644 ---- a/src/libide/meson.build -+++ b/src/libide/meson.build -@@ -164,6 +164,10 @@ if get_option('with_editorconfig') - endif - - # We want to find the subdirectory to install our override into: -+python_libprefix = get_option('python_libprefix') -+if python_libprefix != '' -+ pygobject_override_dir = join_paths(get_option('libdir'), python_libprefix, 'site-packages', 'gi', 'overrides') -+else - python3 = find_program('python3') - - get_overridedir = ''' -@@ -193,6 +197,7 @@ if ret.returncode() != 0 - else - pygobject_override_dir = join_paths(get_option('libdir'), ret.stdout().strip()) - endif -+endif - - install_data('Ide.py', install_dir: pygobject_override_dir) - --- -2.16.4 - diff --git a/pkgs/applications/editors/gnome-builder/0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch b/pkgs/applications/editors/gnome-builder/0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch deleted file mode 100644 index 05f3e674345..00000000000 --- a/pkgs/applications/editors/gnome-builder/0003-Add-missing-ostree-1-dependency-to-flatpak-plugin.patch +++ /dev/null @@ -1,24 +0,0 @@ -From 8d4d251bb613feb2c4aad3d9aef77d9691c0a882 Mon Sep 17 00:00:00 2001 -From: Jamey Sharp -Date: Mon, 30 Jul 2018 15:22:30 -0700 -Subject: [PATCH 3/3] Add missing ostree-1 dependency to flatpak plugin - ---- - src/plugins/flatpak/meson.build | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/plugins/flatpak/meson.build b/src/plugins/flatpak/meson.build -index 657f7939b..28982bb74 100644 ---- a/src/plugins/flatpak/meson.build -+++ b/src/plugins/flatpak/meson.build -@@ -52,6 +52,7 @@ flatpak_sources = [ - - gnome_builder_plugins_deps += [ - dependency('flatpak', version: '>= 0.8.0'), -+ dependency('ostree-1'), - dependency('libsoup-2.4', version: '>= 2.52.0'), - libgit_dep, - ] --- -2.16.4 - From 499ca65930019842bbc5241ef01174760fb1cd05 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 31 Jul 2018 21:51:11 -0700 Subject: [PATCH 15/81] gnome-builder: document why tests and clang are disabled --- pkgs/applications/editors/gnome-builder/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index 2203fb0d699..c0031312d83 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -104,10 +104,17 @@ in stdenv.mkDerivation { mesonFlags = [ "-Dpython_libprefix=${python3.libPrefix}" - "-Dwith_clang=false" "-Dwith_docs=true" + + # Making the build system correctly detect clang header and library paths + # is difficult. Somebody should look into fixing this. + "-Dwith_clang=false" ]; + # Some tests fail due to being unable to find the Vte typelib, and I don't + # understand why. Somebody should look into fixing this. + doCheck = false; + preInstall = '' export LC_ALL="en_US.utf-8" ''; @@ -126,8 +133,6 @@ in stdenv.mkDerivation { done ''; - #doCheck = true; - passthru.updateScript = gnome3.updateScript { packageName = pname; }; meta = with stdenv.lib; { From e6bcb54539a13cfb7a0558f5f68e833e30290295 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 31 Jul 2018 22:46:47 -0700 Subject: [PATCH 16/81] gnome-builder: add a long description Including a comment about the need for additional runtime dependencies. --- pkgs/applications/editors/gnome-builder/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index c0031312d83..1008b83a1f4 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -137,6 +137,16 @@ in stdenv.mkDerivation { meta = with stdenv.lib; { description = "An IDE for writing GNOME-based software"; + longDescription = '' + Global search, auto-completion, source code map, documentation + reference, and other features expected in an IDE, but with a focus + on streamlining GNOME-based development projects. + + This package does not pull in the dependencies needed for every + plugin. If you find that a plugin you wish to use doesn't work, we + currently recommend running gnome-builder inside a nix-shell with + appropriate dependencies loaded. + ''; homepage = https://wiki.gnome.org/Apps/Builder; license = licenses.gpl3Plus; maintainers = gnome3.maintainers; From 7487510d04e025da4bbf0e7eb81ee885d9662a46 Mon Sep 17 00:00:00 2001 From: Assassinkin Date: Wed, 11 Jul 2018 18:21:31 +0100 Subject: [PATCH 17/81] pythonPackages.palettable:init at 3.1.1 --- .../python-modules/palettable/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/palettable/default.nix diff --git a/pkgs/development/python-modules/palettable/default.nix b/pkgs/development/python-modules/palettable/default.nix new file mode 100644 index 00000000000..6b2113352b4 --- /dev/null +++ b/pkgs/development/python-modules/palettable/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi, pytest }: + +buildPythonPackage rec { + pname = "palettable"; + version = "3.1.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "0685b223a236bb7e2a900ef7a855ccf9a4027361c8acf400f3b350ea51870f80"; + }; + + checkInputs = [ pytest ]; + + checkPhase = '' + pytest + ''; + + meta = with stdenv.lib; { + description = "A library of color palettes"; + homepage = https://jiffyclub.github.io/palettable/; + license = licenses.mit; + maintainers = with maintainers; [ psyanticy ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 30bdeebc755..2210ee37f07 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -340,6 +340,8 @@ in { outcome = callPackage ../development/python-modules/outcome {}; + palettable = callPackage ../development/python-modules/palettable { }; + pdf2image = callPackage ../development/python-modules/pdf2image { }; pdfminer = callPackage ../development/python-modules/pdfminer_six { }; From 1e1cf4f18cc8b1817c917dd46a6525072c1256e5 Mon Sep 17 00:00:00 2001 From: Assassinkin Date: Wed, 11 Jul 2018 18:23:35 +0100 Subject: [PATCH 18/81] pythonPackages.phonopy:init at 1.13.2.13 --- .../python-modules/phonopy/default.nix | 27 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/python-modules/phonopy/default.nix diff --git a/pkgs/development/python-modules/phonopy/default.nix b/pkgs/development/python-modules/phonopy/default.nix new file mode 100644 index 00000000000..57ddeeeb8ec --- /dev/null +++ b/pkgs/development/python-modules/phonopy/default.nix @@ -0,0 +1,27 @@ +{ stdenv, buildPythonPackage, python, fetchPypi, numpy, pyyaml, matplotlib, h5py }: + +buildPythonPackage rec { + pname = "phonopy"; + version = "1.13.2.13"; + + src = fetchPypi { + inherit pname version; + sha256 = "23970ecdf698e743f9204711e8edfbb33c97667f5f88c7bda3322abbc91d0682"; + }; + + propagatedBuildInputs = [ numpy pyyaml matplotlib h5py ]; + + checkPhase = '' + cd test/phonopy + ${python.interpreter} -m unittest discover -b + cd ../.. + ''; + + meta = with stdenv.lib; { + description = "A package for phonon calculations at harmonic and quasi-harmonic levels"; + homepage = https://atztogo.github.io/phonopy/; + license = licenses.bsd0; + maintainers = with maintainers; [ psyanticy ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2210ee37f07..f459dbb5f24 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -348,6 +348,8 @@ in { pdfx = callPackage ../development/python-modules/pdfx { }; + phonopy = callPackage ../development/python-modules/phonopy { }; + plantuml = callPackage ../tools/misc/plantuml { }; Pmw = callPackage ../development/python-modules/Pmw { }; From 791d50fd3fd27c8f5dc0e8c02811fcf199c7b2c9 Mon Sep 17 00:00:00 2001 From: Assassinkin Date: Wed, 11 Jul 2018 18:26:31 +0100 Subject: [PATCH 19/81] pythonPackages.pymatgen:init at 2018.6.27 --- .../python-modules/pymatgen/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/pymatgen/default.nix diff --git a/pkgs/development/python-modules/pymatgen/default.nix b/pkgs/development/python-modules/pymatgen/default.nix new file mode 100644 index 00000000000..874f7bfa308 --- /dev/null +++ b/pkgs/development/python-modules/pymatgen/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi, glibcLocales, numpy, pydispatcher, sympy, requests, monty, ruamel_yaml, six, scipy, tabulate, enum34, matplotlib, palettable, spglib, pandas }: + +buildPythonPackage rec { + pname = "pymatgen"; + version = "2018.6.27"; + + src = fetchPypi { + inherit pname version; + sha256 = "8078af7fda4f9a07f1e389ffe08de3511213acdf9fb2ed9f9ffe89b9b12b8568"; + }; + + nativeBuildInputs = [ glibcLocales ]; + propagatedBuildInputs = [ numpy pydispatcher sympy requests monty ruamel_yaml six scipy tabulate enum34 matplotlib palettable spglib pandas ]; + + # No tests in pypi tarball. + doCheck = false; + + meta = with stdenv.lib; { + description = "A robust materials analysis code that defines core object representations for structures and molecules"; + homepage = http://pymatgen.org/; + license = licenses.mit; + maintainers = with maintainers; [ psyanticy ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f459dbb5f24..96203d95db3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -424,6 +424,8 @@ in { }; pykerberos = callPackage ../development/python-modules/pykerberos { }; + + pymatgen = callPackage ../development/python-modules/pymatgen { }; pynisher = callPackage ../development/python-modules/pynisher { }; From 6ee997a5ff77ded82777ffd46b558e0719da4b38 Mon Sep 17 00:00:00 2001 From: Assassinkin Date: Wed, 11 Jul 2018 18:28:05 +0100 Subject: [PATCH 20/81] pythonPackages.sumo:init at 1.0.9 --- .../python-modules/sumo/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/sumo/default.nix diff --git a/pkgs/development/python-modules/sumo/default.nix b/pkgs/development/python-modules/sumo/default.nix new file mode 100644 index 00000000000..1b82f1a4010 --- /dev/null +++ b/pkgs/development/python-modules/sumo/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchFromGitHub, numpy, scipy, spglib, pymatgen, h5py, matplotlib, seekpath, phonopy }: + +buildPythonPackage rec { + pname = "sumo"; + version = "1.0.9"; + + # No tests in Pypi tarball + src = fetchFromGitHub { + owner = "SMTG-UCL"; + repo = "sumo"; + rev = "v${version}"; + sha256 = "1zw86qp9ycw2k0anw6pzvwgd3zds0z2cwy0s663zhiv9mnb5hx1n"; + }; + + propagatedBuildInputs = [ numpy scipy spglib pymatgen h5py matplotlib seekpath phonopy ]; + + meta = with stdenv.lib; { + description = "Toolkit for plotting and analysis of ab initio solid-state calculation data"; + homepage = https://github.com/SMTG-UCL/sumo; + license = licenses.mit; + maintainers = with maintainers; [ psyanticy ]; + }; +} + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 96203d95db3..b17ba083a14 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -503,6 +503,8 @@ in { spglib = callPackage ../development/python-modules/spglib { }; + sumo = callPackage ../development/python-modules/sumo { }; + supervise_api = callPackage ../development/python-modules/supervise_api { }; syncserver = callPackage ../development/python-modules/syncserver {}; From 31583d7cb612a0d19a94fd1e03096b9da138b7d5 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 1 Aug 2018 18:18:19 +0200 Subject: [PATCH 21/81] androidStudioPackages: Refactor the code --- .../editors/android-studio/common.nix | 19 ++++++++- .../editors/android-studio/default.nix | 41 +++++-------------- 2 files changed, 28 insertions(+), 32 deletions(-) diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index 8a536bad9c4..698602085fe 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -1,4 +1,5 @@ -{ pname, version, build, sha256Hash, meta }: +{ channel, pname, version, build, sha256Hash }: + { bash , buildFHSUserEnv , coreutils @@ -128,4 +129,18 @@ in #!${bash}/bin/bash ${fhsEnv}/bin/${pname}-fhs-env ${androidStudio}/bin/studio.sh ''; - } // { inherit meta; } + } // { + meta = with stdenv.lib; { + description = "The Official IDE for Android (${channel} channel)"; + longDescription = '' + Android Studio is the official IDE for Android app development, based on + IntelliJ IDEA. + ''; + homepage = if channel == "stable" + then https://developer.android.com/studio/index.html + else https://developer.android.com/studio/preview/index.html; + license = licenses.asl20; + platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ primeos ]; + }; + } diff --git a/pkgs/applications/editors/android-studio/default.nix b/pkgs/applications/editors/android-studio/default.nix index ab76166a8f9..73f2724f0e1 100644 --- a/pkgs/applications/editors/android-studio/default.nix +++ b/pkgs/applications/editors/android-studio/default.nix @@ -12,7 +12,12 @@ let build = "173.4819257"; sha256Hash = "196yaswbxh2nd83gimjxr8ggr5xkdxq7n3xlh6ax73v59pj4hryq"; }; - latestVersion = { + betaVersion = { + version = "3.2.0.22"; # "Android Studio 3.2 Beta 5" + build = "181.4913314"; + sha256Hash = "016nyn1pqviy089hg0dq7m4cqb39fdxdcy4zknkaq7dmgv1dj6x9"; + }; + latestVersion = { # canary & dev version = "3.3.0.2"; # "Android Studio 3.3 Canary 3" build = "181.4884283"; sha256Hash = "0r93yzw87cgzz60p60gknij5vaqmv1a1kyd4cr9gx8cbxw46lhwh"; @@ -24,48 +29,24 @@ in rec { # Attributes are named by the corresponding release channels stable = mkStudio (stableVersion // { + channel = "stable"; pname = "android-studio"; #pname = "android-studio-stable"; # TODO: Rename and provide symlink - - meta = with stdenv.lib; { - description = "The Official IDE for Android (stable channel)"; - longDescription = '' - Android Studio is the official IDE for Android app development, based on - IntelliJ IDEA. - ''; - homepage = https://developer.android.com/studio/index.html; - license = licenses.asl20; - platforms = [ "x86_64-linux" ]; - maintainers = with maintainers; [ primeos ]; - }; }); - beta = mkStudio (latestVersion // { + beta = mkStudio (betaVersion // { + channel = "beta"; pname = "android-studio-preview"; #pname = "android-studio-beta"; # TODO: Rename and provide symlink - version = "3.2.0.22"; # "Android Studio 3.2 Beta 5" - build = "181.4913314"; - sha256Hash = "016nyn1pqviy089hg0dq7m4cqb39fdxdcy4zknkaq7dmgv1dj6x9"; - - meta = stable.meta // { - description = "The Official IDE for Android (beta channel)"; - homepage = https://developer.android.com/studio/preview/index.html; - }; }); dev = mkStudio (latestVersion // { + channel = "dev"; pname = "android-studio-dev"; - - meta = beta.meta // { - description = "The Official IDE for Android (dev channel)"; - }; }); canary = mkStudio (latestVersion // { + channel = "canary"; pname = "android-studio-canary"; - - meta = beta.meta // { - description = "The Official IDE for Android (canary channel)"; - }; }); } From d8b44edd8fda0d03a71d7f3482ec5df11f1c3a2d Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 1 Aug 2018 18:40:07 +0200 Subject: [PATCH 22/81] androidStudioPackages: Use more intuitive names for the derivations --- pkgs/applications/editors/android-studio/common.nix | 10 ++++++---- pkgs/applications/editors/android-studio/default.nix | 4 +--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index 698602085fe..cd031ce5ac8 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -37,8 +37,9 @@ }: let + drvName = "android-studio-${channel}-${version}"; androidStudio = stdenv.mkDerivation { - name = "${pname}-${version}"; + name = drvName; src = fetchurl { url = "https://dl.google.com/dl/android/studio/ide-zips/${version}/android-studio-ide-${build}-linux.zip"; @@ -116,18 +117,19 @@ let # (e.g. `mksdcard`) have `/lib/ld-linux.so.2` set as the interpreter. An FHS # environment is used as a work around for that. fhsEnv = buildFHSUserEnv { - name = "${pname}-fhs-env"; + name = "${drvName}-fhs-env"; multiPkgs = pkgs: [ pkgs.ncurses5 ]; }; in writeTextFile { - name = "${pname}-${version}"; + name = "${drvName}-wrapper"; + # TODO: Rename preview -> beta (and add -stable suffix?): destination = "/bin/${pname}"; executable = true; text = '' #!${bash}/bin/bash - ${fhsEnv}/bin/${pname}-fhs-env ${androidStudio}/bin/studio.sh + ${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh ''; } // { meta = with stdenv.lib; { diff --git a/pkgs/applications/editors/android-studio/default.nix b/pkgs/applications/editors/android-studio/default.nix index 73f2724f0e1..b60687c50ba 100644 --- a/pkgs/applications/editors/android-studio/default.nix +++ b/pkgs/applications/editors/android-studio/default.nix @@ -26,18 +26,16 @@ in rec { # Old alias preview = beta; - # Attributes are named by the corresponding release channels + # Attributes are named by their corresponding release channels stable = mkStudio (stableVersion // { channel = "stable"; pname = "android-studio"; - #pname = "android-studio-stable"; # TODO: Rename and provide symlink }); beta = mkStudio (betaVersion // { channel = "beta"; pname = "android-studio-preview"; - #pname = "android-studio-beta"; # TODO: Rename and provide symlink }); dev = mkStudio (latestVersion // { From 88bfbf6c7d2308b59f1ca69169c8c9853815ae6b Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 1 Aug 2018 19:05:01 +0200 Subject: [PATCH 23/81] android-studio-preview: Print a deprecation warning Hope this is ok... :) --- .../editors/android-studio/common.nix | 16 ++++++++++++++-- .../editors/android-studio/default.nix | 8 ++++++-- pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index cd031ce5ac8..c980999dc6b 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -1,4 +1,4 @@ -{ channel, pname, version, build, sha256Hash }: +{ channel, pname, version, build, sha256Hash, deprecated ? false }: { bash , buildFHSUserEnv @@ -37,6 +37,18 @@ }: let + # TODO: This is a bit stupid to be honest... + # The problem is that we have to make sure this is only executed if the + # derivation is actually build to avoid always printing this warning (e.g. + # "nix-env -qaP"). Since this will always evaluate to "" it won't actually + # change the derivation (only generate a side-effect) but we have to make + # sure this expression is evaluated lazily! + printDeprecationWarning = if deprecated then (builtins.trace '' + android-studio-preview and androidStudioPackages.preview are old aliases + and will be dropped at some point, please use androidStudioPackages.beta + instead (corresponds to the correct channel name).'' + "") + else ""; drvName = "android-studio-${channel}-${version}"; androidStudio = stdenv.mkDerivation { name = drvName; @@ -130,7 +142,7 @@ in text = '' #!${bash}/bin/bash ${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh - ''; + '' + printDeprecationWarning; } // { meta = with stdenv.lib; { description = "The Official IDE for Android (${channel} channel)"; diff --git a/pkgs/applications/editors/android-studio/default.nix b/pkgs/applications/editors/android-studio/default.nix index b60687c50ba..af58611bddf 100644 --- a/pkgs/applications/editors/android-studio/default.nix +++ b/pkgs/applications/editors/android-studio/default.nix @@ -23,8 +23,12 @@ let sha256Hash = "0r93yzw87cgzz60p60gknij5vaqmv1a1kyd4cr9gx8cbxw46lhwh"; }; in rec { - # Old alias - preview = beta; + # TODO: Drop old alias after 18.09 + preview = mkStudio (betaVersion // { + channel = "beta"; + pname = "android-studio-preview"; + deprecated = true; + }); # Attributes are named by their corresponding release channels diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8ce802c2fb7..940f6f60be4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15170,7 +15170,7 @@ with pkgs; androidStudioPackages = callPackage ../applications/editors/android-studio { }; android-studio = androidStudioPackages.stable; - android-studio-preview = androidStudioPackages.beta; + android-studio-preview = androidStudioPackages.preview; # TODO: Drop old alias after 18.09 antfs-cli = callPackage ../applications/misc/antfs-cli {}; From 8caeec1ba78df3c0dbf3e8a8e9b1127073654799 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Wed, 1 Aug 2018 19:44:32 +0200 Subject: [PATCH 24/81] androidStudioPackages: Use recurseIntoAttrs IMO it makes sense that the other channels show up in nix-env as well. --- pkgs/top-level/all-packages.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 940f6f60be4..39eb6a3bbb2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15168,7 +15168,8 @@ with pkgs; amsn = callPackage ../applications/networking/instant-messengers/amsn { }; - androidStudioPackages = callPackage ../applications/editors/android-studio { }; + androidStudioPackages = recurseIntoAttrs + (callPackage ../applications/editors/android-studio { }); android-studio = androidStudioPackages.stable; android-studio-preview = androidStudioPackages.preview; # TODO: Drop old alias after 18.09 From 7feba330dadbb1404a6621622365566bc077fc42 Mon Sep 17 00:00:00 2001 From: Andreas Rammhold Date: Wed, 1 Aug 2018 20:21:28 +0200 Subject: [PATCH 25/81] nixos/manual: added missing xml tags --- nixos/doc/manual/release-notes/rl-1809.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/doc/manual/release-notes/rl-1809.xml b/nixos/doc/manual/release-notes/rl-1809.xml index b80f30f0111..33026c5cbae 100644 --- a/nixos/doc/manual/release-notes/rl-1809.xml +++ b/nixos/doc/manual/release-notes/rl-1809.xml @@ -372,7 +372,10 @@ inherit (pkgs.nixos { - The module option is now defaulted to true. + + The module option is now defaulted to true. + + From 64e550c31f9119cb3e9335c83a5663d8c6bb71e0 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Wed, 1 Aug 2018 20:28:49 +0200 Subject: [PATCH 26/81] jq: disable strptime test on darwin This seems to fail depending on the machine's configuration, probably something locale or timezone related. --- .../tools/jq/darwin-strptime-test.patch | 16 ++++++++++++++++ pkgs/development/tools/jq/default.nix | 4 +++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 pkgs/development/tools/jq/darwin-strptime-test.patch diff --git a/pkgs/development/tools/jq/darwin-strptime-test.patch b/pkgs/development/tools/jq/darwin-strptime-test.patch new file mode 100644 index 00000000000..4ea83fc164a --- /dev/null +++ b/pkgs/development/tools/jq/darwin-strptime-test.patch @@ -0,0 +1,16 @@ +diff --git a/tests/jq.test b/tests/jq.test +index 4a4018b..f5aa7d5 100644 +--- a/src/tests/jq.test ++++ b/src/tests/jq.test +@@ -1144,9 +1144,9 @@ bsearch(4) + [1,2,3] + -4 + +-[strptime("%Y-%m-%dT%H:%M:%SZ")|(.,mktime)] ++[strptime("%Y-%m-%dT%H:%M:%SZ")|mktime] + "2015-03-05T23:51:47Z" +-[[2015,2,5,23,51,47,4,63],1425599507] ++[1425599507] + + strftime("%Y-%m-%dT%H:%M:%SZ") + [2015,2,5,23,51,47,4,63] diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/development/tools/jq/default.nix index 93c465ce844..712ec64bd41 100644 --- a/pkgs/development/tools/jq/default.nix +++ b/pkgs/development/tools/jq/default.nix @@ -24,7 +24,9 @@ stdenv.mkDerivation rec { url = https://patch-diff.githubusercontent.com/raw/stedolan/jq/pull/1214.diff; sha256 = "1w8bapnyp56di6p9casbfczfn8258rw0z16grydavdjddfm280l9"; }) - ]; + ] + ++ stdenv.lib.optional stdenv.isDarwin ./darwin-strptime-test.patch; + patchFlags = [ "-p2" ]; # `src` subdir was introduced after v1.5 was released configureFlags = From e090fb29672530c14bb14b153fabdca2280835b0 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 1 Aug 2018 11:51:17 -0700 Subject: [PATCH 27/81] gitter: init at 4.1.0 (#43505) --- .../instant-messengers/gitter/default.nix | 71 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 73 insertions(+) create mode 100644 pkgs/applications/networking/instant-messengers/gitter/default.nix diff --git a/pkgs/applications/networking/instant-messengers/gitter/default.nix b/pkgs/applications/networking/instant-messengers/gitter/default.nix new file mode 100644 index 00000000000..ba8547f1845 --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/gitter/default.nix @@ -0,0 +1,71 @@ +{ stdenv, alsaLib, atk, cairo, cups, dbus, dpkg, expat, fetchurl +, fontconfig, freetype, gdk_pixbuf, glib, gnome3, gtk3, libX11 +, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext, libXfixes +, libXi, libXrandr, libXrender, libXtst, libappindicator-gtk3, libcxx +, libnotify, libpulseaudio, libxcb, makeDesktopItem, makeWrapper, nspr, nss +, nwjs, pango, systemd }: + +let gitterDirectorySuffix = "opt/gitter"; + doELFPatch = target: '' + patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \ + --set-rpath "$out/${gitterDirectorySuffix}/lib:${libPath}" \ + $out/${gitterDirectorySuffix}/${target} + ''; + libPath = stdenv.lib.makeLibraryPath [ + alsaLib atk cairo cups dbus expat fontconfig freetype gdk_pixbuf glib + gnome3.gconf gtk3 libX11 libXScrnSaver libXcomposite libXcursor libXdamage + libXext libXfixes libXi libXrandr libXrender libXtst libappindicator-gtk3 + libcxx libnotify libpulseaudio libxcb nspr nss pango stdenv.cc.cc systemd + ]; +in stdenv.mkDerivation rec { + pname = "gitter"; + version = "4.1.0"; + name = "${pname}-${version}"; + + src = fetchurl { + url = "https://update.gitter.im/linux64/${pname}_${version}_amd64.deb"; + sha256 = "1gny9i2pywvczzrs93k8krqn6hwm6c2zg8yr3xmjqs3p88817wbi"; + }; + + nativeBuildInputs = [ makeWrapper dpkg ]; + + unpackPhase = "dpkg -x $src ."; + + installPhase = '' + mkdir -p $out/{bin,opt/gitter,share/pixmaps} + mv ./opt/Gitter/linux64/* $out/opt/gitter + + ${doELFPatch "Gitter"} + ${doELFPatch "nacl_helper"} + ${doELFPatch "minidump_stackwalk"} + ${doELFPatch "nwjc"} + ${doELFPatch "chromedriver"} + ${doELFPatch "payload"} + + patchelf --set-rpath "$out/${gitterDirectorySuffix}/lib:${libPath}" \ + $out/${gitterDirectorySuffix}/lib/libnw.so + + wrapProgram $out/${gitterDirectorySuffix}/Gitter --prefix LD_LIBRARY_PATH : ${libPath} + + ln -s $out/${gitterDirectorySuffix}/Gitter $out/bin/ + ln -s $out/${gitterDirectorySuffix}/logo.png $out/share/pixmaps/gitter.png + ln -s "${desktopItem}/share/applications" $out/share/ + ''; + + desktopItem = makeDesktopItem { + name = pname; + exec = "Gitter"; + icon = pname; + desktopName = "Gitter"; + genericName = meta.description; + categories = "Network;InstantMessaging;"; + }; + + meta = with stdenv.lib; { + description = "Where developers come to talk"; + downloadPage = "https://gitter.im/apps"; + license = licenses.mit; + maintainers = [ maintainers.imalison ]; + platforms = [ "x86_64-linux" ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 944c084cc3a..8c396051338 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -670,6 +670,8 @@ with pkgs; gitless = callPackage ../applications/version-management/gitless { }; + gitter = callPackage ../applications/networking/instant-messengers/gitter { }; + grc = callPackage ../tools/misc/grc { }; green-pdfviewer = callPackage ../applications/misc/green-pdfviewer { From 61a1b20d23132639f556346d1a27436db506cc04 Mon Sep 17 00:00:00 2001 From: Daiderd Jordan Date: Mon, 30 Jul 2018 23:25:33 +0200 Subject: [PATCH 28/81] doc: add darwin installCheckTarget example --- doc/platform-notes.xml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/doc/platform-notes.xml b/doc/platform-notes.xml index b2c20c2d35c..ea581421547 100644 --- a/doc/platform-notes.xml +++ b/doc/platform-notes.xml @@ -29,6 +29,7 @@ } + On darwin libraries are linked using absolute paths, libraries are @@ -46,6 +47,37 @@ } + + + + Even if the libraries are linked using absolute paths and resolved via + their install_name correctly, tests can sometimes fail + to run binaries. This happens because the checkPhase + runs before the libraries are installed. + + + This can usually be solved by running the tests after the + installPhase or alternatively by using + DYLD_LIBRARY_PATH. More information about this variable + can be found in the dyld + 1 manpage. + + + dyld: Library not loaded: /nix/store/7hnmbscpayxzxrixrgxvvlifzlxdsdir-jq-1.5-lib/lib/libjq.1.dylib + Referenced from: /private/tmp/nix-build-jq-1.5.drv-0/jq-1.5/tests/../jq + Reason: image not found + ./tests/jqtest: line 5: 75779 Abort trap: 6 + + + stdenv.mkDerivation { + name = "libfoo-1.2.3"; + # ... + doInstallCheck = true; + installCheckTarget = "check"; + } + + + Some packages assume xcode is available and use xcrun From 9caf7ec5a454fd2ea356efdc30623ec022bd7230 Mon Sep 17 00:00:00 2001 From: Yuri Aisaka Date: Thu, 2 Aug 2018 04:14:51 +0900 Subject: [PATCH 29/81] pybind11: init at 2.2.2 (#35027) * pybind11: init at 2.2.2 * fix license * remove test dependencies --- .../libraries/pybind11/default.nix | 35 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/libraries/pybind11/default.nix diff --git a/pkgs/development/libraries/pybind11/default.nix b/pkgs/development/libraries/pybind11/default.nix new file mode 100644 index 00000000000..d7bca0de249 --- /dev/null +++ b/pkgs/development/libraries/pybind11/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, cmake, python }: + +stdenv.mkDerivation rec { + name = "pybind-${version}"; + version = "2.2.2"; + src = fetchFromGitHub { + owner = "pybind"; + repo = "pybind11"; + rev = "v${version}"; + sha256 = "0x71i1n5d02hjbdcnkscrwxs9pb8kplmdpqddhsimabfp84fip48"; + }; + + nativeBuildInputs = [ cmake ]; + + # disable tests as some tests (test_embed/test_interpreter) are failing at the moment + cmakeFlags = [ + "-DPYTHON_EXECUTABLE=${python.interpreter}" + "-DPYBIND11_TEST=0" + ]; + doCheck = false; + + meta = { + homepage = https://github.com/pybind/pybind11; + description = "Seamless operability between C++11 and Python"; + longDescription = '' + Pybind11 is a lightweight header-only library that exposes + C++ types in Python and vice versa, mainly to create Python + bindings of existing C++ code. + ''; + platforms = with stdenv.lib.platforms; unix; + license = stdenv.lib.licenses.bsd3; + maintainers = with stdenv.lib.maintainers; [ yuriaisaka ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8c396051338..a1f806f8af8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11421,6 +11421,8 @@ with pkgs; pugixml = callPackage ../development/libraries/pugixml { }; + pybind11 = callPackage ../development/libraries/pybind11 { }; + re2 = callPackage ../development/libraries/re2 { }; qbs = callPackage ../development/tools/build-managers/qbs { }; From e4ca48c224a10b906cd9689e4531b39741f5b8fd Mon Sep 17 00:00:00 2001 From: Jaka Hudoklin Date: Wed, 1 Aug 2018 21:35:42 +0200 Subject: [PATCH 30/81] confluent: init at 4.1.1-2.11 (#43137) --- pkgs/servers/confluent/default.nix | 49 ++++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 51 insertions(+) create mode 100644 pkgs/servers/confluent/default.nix diff --git a/pkgs/servers/confluent/default.nix b/pkgs/servers/confluent/default.nix new file mode 100644 index 00000000000..dd42f38f62a --- /dev/null +++ b/pkgs/servers/confluent/default.nix @@ -0,0 +1,49 @@ +{ stdenv, lib, fetchurl, jre, makeWrapper, bash, gnused }: + +with lib; + +let + confluentVersion = "4.1.1"; + scalaVersion = "2.11"; + sha256 = "e00eb4c6c7445ad7a43c9cd237778d1cd184322aebf5ff64a8e9806ba2cc27aa"; +in stdenv.mkDerivation rec { + name = "confluent-${version}"; + version = "${confluentVersion}-${scalaVersion}"; + + src = fetchurl { + url = "http://packages.confluent.io/archive/${versions.majorMinor confluentVersion}/confluent-oss-${version}.tar.gz"; + inherit sha256; + }; + + buildInputs = [ jre makeWrapper bash ]; + + installPhase = '' + mkdir -p $out + cp -R bin etc share src $out + rm -rf $out/bin/windows + + patchShebangs $out/bin + + # allow us the specify logging directory using env + substituteInPlace $out/bin/kafka-run-class \ + --replace 'LOG_DIR="$base_dir/logs"' 'LOG_DIR="$KAFKA_LOG_DIR"' + + substituteInPlace $out/bin/ksql-run-class \ + --replace 'LOG_DIR="$base_dir/logs"' 'LOG_DIR="$KAFKA_LOG_DIR"' + + for p in $out/bin\/*; do + wrapProgram $p \ + --set JAVA_HOME "${jre}" \ + --set KAFKA_LOG_DIR "/tmp/apache-kafka-logs" \ + --prefix PATH : "${bash}/bin:${gnused}/bin" + done + ''; + + meta = with stdenv.lib; { + homepage = https://www.confluent.io/; + description = "Confluent platform"; + license = licenses.asl20; + maintainers = [ maintainers.offline ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a1f806f8af8..99f883fa03c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7970,6 +7970,8 @@ with pkgs; corundum = callPackage ../development/tools/corundum { }; + confluent = callPackage ../servers/confluent {}; + ctags = callPackage ../development/tools/misc/ctags { }; ctagsWrapped = callPackage ../development/tools/misc/ctags/wrapped.nix {}; From cd5e01edd9c18405eef429590f4b72d283db9e74 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Wed, 1 Aug 2018 21:39:09 +0200 Subject: [PATCH 31/81] ocserv: init at 0.12.1 (#42871) `ocserv` is a VPN server which follows the openconnect protocol (https://github.com/openconnect/protocol). The packaging is slightly inspired by the AUR version (https://aur.archlinux.org/packages/ocserv/). This patch initializes the package written in C, the man pages and a module for a simple systemd unit to run the VPN server. The package supports the following authentication methods for the server: * `plain` (mostly username/password) * `pam` The third method (`radius`) is currently not supported since `nixpkgs` misses a packaged client. The module can be used like this: ``` nix { services.ocserv = { enable = true; config = '' ... ''; }; } ``` The option `services.ocserv.config` is required on purpose to ensure that nobody just enables the service and experiences unexpected side-effects on the system. For a full reference, please refer to the man pages, the online docs or the example value. The docs recommend to simply use `nobody` as user, so no extra user has been added to the internal user list. Instead a configuration like this can be used: ``` run-as-user = nobody run-as-group = nogroup ``` /cc @tenten8401 Fixes #42594 --- nixos/modules/module-list.nix | 1 + nixos/modules/services/networking/ocserv.nix | 99 ++++++++++++++++++++ pkgs/tools/networking/ocserv/default.nix | 26 +++++ pkgs/top-level/all-packages.nix | 2 + 4 files changed, 128 insertions(+) create mode 100644 nixos/modules/services/networking/ocserv.nix create mode 100644 pkgs/tools/networking/ocserv/default.nix diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index e5dce84d6ee..f5d94baf173 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -543,6 +543,7 @@ ./services/networking/ntopng.nix ./services/networking/ntpd.nix ./services/networking/nylon.nix + ./services/networking/ocserv.nix ./services/networking/oidentd.nix ./services/networking/openfire.nix ./services/networking/openntpd.nix diff --git a/nixos/modules/services/networking/ocserv.nix b/nixos/modules/services/networking/ocserv.nix new file mode 100644 index 00000000000..61473a9fabf --- /dev/null +++ b/nixos/modules/services/networking/ocserv.nix @@ -0,0 +1,99 @@ +{ config, pkgs, lib, ... }: + +with lib; + +let + + cfg = config.services.ocserv; + +in + +{ + options.services.ocserv = { + enable = mkEnableOption "ocserv"; + + config = mkOption { + type = types.lines; + + description = '' + Configuration content to start an OCServ server. + + For a full configuration reference,please refer to the online documentation + (https://ocserv.gitlab.io/www/manual.html), the openconnect + recipes (https://github.com/openconnect/recipes) or `man ocserv`. + ''; + + example = '' + # configuration examples from $out/doc without explanatory comments. + # for a full reference please look at the installed man pages. + auth = "plain[passwd=./sample.passwd]" + tcp-port = 443 + udp-port = 443 + run-as-user = nobody + run-as-group = nogroup + socket-file = /var/run/ocserv-socket + server-cert = certs/server-cert.pem + server-key = certs/server-key.pem + keepalive = 32400 + dpd = 90 + mobile-dpd = 1800 + switch-to-tcp-timeout = 25 + try-mtu-discovery = false + cert-user-oid = 0.9.2342.19200300.100.1.1 + tls-priorities = "NORMAL:%SERVER_PRECEDENCE:%COMPAT:-VERS-SSL3.0" + auth-timeout = 240 + min-reauth-time = 300 + max-ban-score = 80 + ban-reset-time = 1200 + cookie-timeout = 300 + deny-roaming = false + rekey-time = 172800 + rekey-method = ssl + use-occtl = true + pid-file = /var/run/ocserv.pid + device = vpns + predictable-ips = true + default-domain = example.com + ipv4-network = 192.168.1.0 + ipv4-netmask = 255.255.255.0 + dns = 192.168.1.2 + ping-leases = false + route = 10.10.10.0/255.255.255.0 + route = 192.168.0.0/255.255.0.0 + no-route = 192.168.5.0/255.255.255.0 + cisco-client-compat = true + dtls-legacy = true + + [vhost:www.example.com] + auth = "certificate" + ca-cert = certs/ca.pem + server-cert = certs/server-cert-secp521r1.pem + server-key = cersts/certs/server-key-secp521r1.pem + ipv4-network = 192.168.2.0 + ipv4-netmask = 255.255.255.0 + cert-user-oid = 0.9.2342.19200300.100.1.1 + ''; + }; + }; + + config = mkIf cfg.enable { + environment.systemPackages = [ pkgs.ocserv ]; + environment.etc."ocserv/ocserv.conf".text = cfg.config; + + security.pam.services.ocserv = {}; + + systemd.services.ocserv = { + description = "OpenConnect SSL VPN server"; + documentation = [ "man:ocserv(8)" ]; + after = [ "dbus.service" "network-online.target" ]; + wantedBy = [ "multi-user.target" ]; + + serviceConfig = { + PrivateTmp = true; + PIDFile = "/var/run/ocserv.pid"; + ExecStart = "${pkgs.ocserv}/bin/ocserv --foreground --pid-file /var/run/ocesrv.pid --config /etc/ocserv/ocserv.conf"; + ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; + }; + }; + }; +} diff --git a/pkgs/tools/networking/ocserv/default.nix b/pkgs/tools/networking/ocserv/default.nix new file mode 100644 index 00000000000..d6458128b04 --- /dev/null +++ b/pkgs/tools/networking/ocserv/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchFromGitLab, autoreconfHook, pkgconfig, nettle, gnutls +, libev, protobufc, guile, geoip, libseccomp, gperf, readline +, lz4, libgssglue, ronn, coreutils, pam +}: + +stdenv.mkDerivation rec { + name = "ocserv-${version}"; + version = "0.12.1"; + + src = fetchFromGitLab { + owner = "openconnect"; + repo = "ocserv"; + rev = "ocserv_${stdenv.lib.replaceStrings [ "." ] [ "_" ] version}"; + sha256 = "0jn91a50r3ryj1ph9fzxwy2va877b0b37ahargxzn7biccd8nh0y"; + }; + + nativeBuildInputs = [ autoreconfHook pkgconfig ]; + buildInputs = [ nettle gnutls libev protobufc guile geoip libseccomp gperf readline lz4 libgssglue ronn pam ]; + + meta = with stdenv.lib; { + homepage = https://gitlab.com/openconnect/ocserv; + license = licenses.gpl2; + description = "This program is openconnect VPN server (ocserv), a server for the openconnect VPN client."; + maintainers = with maintainers; [ ma27 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 99f883fa03c..8a95c387ab4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4252,6 +4252,8 @@ with pkgs; ocproxy = callPackage ../tools/networking/ocproxy { }; + ocserv = callPackage ../tools/networking/ocserv { }; + openfortivpn = callPackage ../tools/networking/openfortivpn { }; obexfs = callPackage ../tools/bluetooth/obexfs { }; From 383578689684bdfa47ef2b9c71e92439de5f3b50 Mon Sep 17 00:00:00 2001 From: Uli Baum Date: Wed, 1 Aug 2018 21:55:14 +0200 Subject: [PATCH 32/81] gitter: fix eval gnome3.gconf was dropped --- .../networking/instant-messengers/gitter/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/networking/instant-messengers/gitter/default.nix b/pkgs/applications/networking/instant-messengers/gitter/default.nix index ba8547f1845..be911f70f91 100644 --- a/pkgs/applications/networking/instant-messengers/gitter/default.nix +++ b/pkgs/applications/networking/instant-messengers/gitter/default.nix @@ -1,5 +1,5 @@ { stdenv, alsaLib, atk, cairo, cups, dbus, dpkg, expat, fetchurl -, fontconfig, freetype, gdk_pixbuf, glib, gnome3, gtk3, libX11 +, fontconfig, freetype, gdk_pixbuf, glib, gnome2, gtk3, libX11 , libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext, libXfixes , libXi, libXrandr, libXrender, libXtst, libappindicator-gtk3, libcxx , libnotify, libpulseaudio, libxcb, makeDesktopItem, makeWrapper, nspr, nss @@ -13,7 +13,7 @@ let gitterDirectorySuffix = "opt/gitter"; ''; libPath = stdenv.lib.makeLibraryPath [ alsaLib atk cairo cups dbus expat fontconfig freetype gdk_pixbuf glib - gnome3.gconf gtk3 libX11 libXScrnSaver libXcomposite libXcursor libXdamage + gnome2.GConf gtk3 libX11 libXScrnSaver libXcomposite libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender libXtst libappindicator-gtk3 libcxx libnotify libpulseaudio libxcb nspr nss pango stdenv.cc.cc systemd ]; From 51fc0ef8d2f3b75bdd370a2d5380635115f92c03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Justin=20Bed=C5=91?= Date: Thu, 2 Aug 2018 06:11:13 +1000 Subject: [PATCH 33/81] somatic-sniper: init 1.0.5.0 (#43403) --- .../biology/somatic-sniper/default.nix | 26 +++++++++++++++++++ .../somatic-sniper/somatic-sniper.patch | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 54 insertions(+) create mode 100644 pkgs/applications/science/biology/somatic-sniper/default.nix create mode 100644 pkgs/applications/science/biology/somatic-sniper/somatic-sniper.patch diff --git a/pkgs/applications/science/biology/somatic-sniper/default.nix b/pkgs/applications/science/biology/somatic-sniper/default.nix new file mode 100644 index 00000000000..adc8648c698 --- /dev/null +++ b/pkgs/applications/science/biology/somatic-sniper/default.nix @@ -0,0 +1,26 @@ +{stdenv, fetchFromGitHub, cmake, zlib, ncurses}: + +stdenv.mkDerivation rec { + name = "somatic-sniper-${version}"; + version = "1.0.5.0"; + + src = fetchFromGitHub { + owner = "genome"; + repo = "somatic-sniper"; + rev = "v${version}"; + sha256 = "0lk7p9sp6mp50f6w1nppqhr40fcwy1asw06ivw8w8jvvnwaqf987"; + }; + + patches = [ ./somatic-sniper.patch ]; + + buildInputs = [ cmake zlib ncurses ]; + + meta = with stdenv.lib; { + description = "Identify single nucleotide positions that are different between tumor and normal"; + license = licenses.mit; + homepage = https://github.com/genome/somatic-sniper; + maintainers = with maintainers; [ jbedo ]; + platforms = platforms.linux; + }; + +} diff --git a/pkgs/applications/science/biology/somatic-sniper/somatic-sniper.patch b/pkgs/applications/science/biology/somatic-sniper/somatic-sniper.patch new file mode 100644 index 00000000000..9af04c0a069 --- /dev/null +++ b/pkgs/applications/science/biology/somatic-sniper/somatic-sniper.patch @@ -0,0 +1,26 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 6d5a180..7254292 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -11,7 +11,7 @@ set(CMAKE_MODULE_PATH + ) + + include(TestHelper) +-include(VersionHelper) ++#include(VersionHelper) + include(ProjectHelper) + + # NOTE: for sniper we want the exe suffix to be like 0.7.4, not just 0.7 +diff --git a/vendor/samtools.patch b/vendor/samtools.patch +index f173017..654f878 100644 +--- a/vendor/samtools.patch ++++ b/vendor/samtools.patch +@@ -6,7 +6,7 @@ diff -Nuar a/Makefile b/Makefile + + samtools:lib $(AOBJS) + - $(CC) $(CFLAGS) -o $@ $(AOBJS) -lm $(LIBPATH) $(LIBCURSES) -lz -L. -lbam +-+ $(CC) $(CFLAGS) -o $@ $(AOBJS) -lm $(LIBPATH) $(LIBCURSES) -L. -lbam -lz +++ $(CC) $(CFLAGS) -o $@ $(AOBJS) -lm $(LIBPATH) -lncurses -L. -lbam -lz + + razip:razip.o razf.o + $(CC) $(CFLAGS) -o $@ razf.o razip.o -lz diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8a95c387ab4..06c535f46c3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20426,6 +20426,8 @@ with pkgs; snpeff = callPackage ../applications/science/biology/snpeff { }; + somatic-sniper = callPackage ../applications/science/biology/somatic-sniper { }; + star = callPackage ../applications/science/biology/star { }; varscan = callPackage ../applications/science/biology/varscan { }; From f2434d12085543255c52fdb4e9ecdc9ed1be511a Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Wed, 1 Aug 2018 13:12:54 -0700 Subject: [PATCH 34/81] gnome-builder: fix whitespace --- pkgs/applications/editors/gnome-builder/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/gnome-builder/default.nix b/pkgs/applications/editors/gnome-builder/default.nix index 1008b83a1f4..db2d07db31e 100644 --- a/pkgs/applications/editors/gnome-builder/default.nix +++ b/pkgs/applications/editors/gnome-builder/default.nix @@ -151,5 +151,5 @@ in stdenv.mkDerivation { license = licenses.gpl3Plus; maintainers = gnome3.maintainers; platforms = platforms.linux; - }; + }; } From b0003a1680b405a973a8110959211ad911ab42fb Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 1 Aug 2018 15:15:54 -0500 Subject: [PATCH 35/81] proselint: 0.9.0 -> 0.10.0 (#44313) --- pkgs/tools/text/proselint/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/text/proselint/default.nix b/pkgs/tools/text/proselint/default.nix index 6f81d881c5c..64553392e85 100644 --- a/pkgs/tools/text/proselint/default.nix +++ b/pkgs/tools/text/proselint/default.nix @@ -2,13 +2,13 @@ buildPythonApplication rec { name = "proselint-${version}"; - version = "0.9.0"; + version = "0.10.0"; doCheck = false; # fails to pass because it tries to run in home directory src = fetchurl { url = "mirror://pypi/p/proselint/${name}.tar.gz"; - sha256 = "1fibk24fx00bfn0z4iikcv519cz2nkcil9k187sf3adb2ldzg4ab"; + sha256 = "0kmr95mf2gij40qy4660ryfanw13vxlhpmivqia1mdbii8iziyhg"; }; propagatedBuildInputs = [ click future six ]; From b5477ab37ba0b66f2deda18a381a83c5d0017620 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 1 Aug 2018 02:19:25 +0200 Subject: [PATCH 36/81] freeradius: add rest module and multiple outputs --- nixos/modules/module-list.nix | 1 - pkgs/servers/freeradius/default.nix | 13 ++++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index f5d94baf173..434e72adedd 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -492,7 +492,6 @@ ./services/networking/flannel.nix ./services/networking/flashpolicyd.nix ./services/networking/freenet.nix - ./services/networking/freeradius.nix ./services/networking/gale.nix ./services/networking/gateone.nix ./services/networking/gdomap.nix diff --git a/pkgs/servers/freeradius/default.nix b/pkgs/servers/freeradius/default.nix index a3e83f4e069..df2130777bb 100644 --- a/pkgs/servers/freeradius/default.nix +++ b/pkgs/servers/freeradius/default.nix @@ -21,6 +21,8 @@ , withYubikey ? false , collectd , withCollectd ? false +, curl +, withRest ? false }: assert withSqlite -> sqlite != null; @@ -32,6 +34,7 @@ assert withRedis -> hiredis != null; assert withMysql -> mysql != null; assert withYubikey -> libyubikey != null; assert withCollectd -> collectd != null; +assert withRest -> curl != null && withJson; ## TODO: include windbind optionally (via samba?) ## TODO: include oracle optionally @@ -59,11 +62,13 @@ stdenv.mkDerivation rec { ++ optional withMysql mysql.connector-c ++ optional withJson json_c ++ optional withYubikey libyubikey - ++ optional withCollectd collectd; + ++ optional withCollectd collectd + ++ optional withRest curl; + configureFlags = [ - "--sysconfdir=/etc" - "--localstatedir=/var" + "--sysconfdir=/etc" + "--localstatedir=/var" ] ++ optional (!linkOpenssl) "--with-openssl=no"; postPatch = '' @@ -75,6 +80,8 @@ stdenv.mkDerivation rec { "localstatedir=\${TMPDIR}" ]; + outputs = [ "out" "dev" "man" "doc" ]; + meta = with stdenv.lib; { homepage = https://freeradius.org/; description = "A modular, high performance free RADIUS suite"; From 9820531cb5c83da8fc9407f3626339b045042357 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 1 Aug 2018 22:23:31 +0200 Subject: [PATCH 37/81] freeradius module: add to modules-list.nix This was somehow never added and was thus never available. It works. --- nixos/modules/module-list.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 434e72adedd..f5d94baf173 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -492,6 +492,7 @@ ./services/networking/flannel.nix ./services/networking/flashpolicyd.nix ./services/networking/freenet.nix + ./services/networking/freeradius.nix ./services/networking/gale.nix ./services/networking/gateone.nix ./services/networking/gdomap.nix From 781428a849e81ffa2303d00b6ea93fcd1568b95a Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 1 Aug 2018 20:45:32 +0000 Subject: [PATCH 38/81] xfce4-13.xfce4-pulseaudio-plugin: init at 0.4.1 (#44314) --- pkgs/desktops/xfce4-13/default.nix | 2 ++ .../xfce4-pulseaudio-plugin/default.nix | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/desktops/xfce4-13/xfce4-pulseaudio-plugin/default.nix diff --git a/pkgs/desktops/xfce4-13/default.nix b/pkgs/desktops/xfce4-13/default.nix index 9989ebed4bc..dd40e111235 100644 --- a/pkgs/desktops/xfce4-13/default.nix +++ b/pkgs/desktops/xfce4-13/default.nix @@ -62,6 +62,8 @@ makeScope newScope (self: with self; { xfce4-power-manager = callPackage ./xfce4-power-manager { }; + xfce4-pulseaudio-plugin = callPackage ./xfce4-pulseaudio-plugin { }; + xfce4-screenshooter = callPackage ./xfce4-screenshooter { inherit (gnome3) libsoup; }; diff --git a/pkgs/desktops/xfce4-13/xfce4-pulseaudio-plugin/default.nix b/pkgs/desktops/xfce4-13/xfce4-pulseaudio-plugin/default.nix new file mode 100644 index 00000000000..185494c2543 --- /dev/null +++ b/pkgs/desktops/xfce4-13/xfce4-pulseaudio-plugin/default.nix @@ -0,0 +1,19 @@ +{ mkXfceDerivation, automakeAddFlags, dbus-glib, dbus, gtk3, libpulseaudio +, libnotify, libxfce4ui, libxfce4util, xfce4-panel, xfconf }: + +mkXfceDerivation rec { + category = "panel-plugins"; + pname = "xfce4-pulseaudio-plugin"; + version = "0.4.1"; + sha256 = "1c8krpg3l6ki00ldd9hifc4bddysdm0w3x5w43fkr31j0zrscvfp"; + + nativeBuildInputs = [ automakeAddFlags ]; + + NIX_CFLAGS_COMPILE = [ "-I${dbus-glib.dev}/include/dbus-1.0" "-I${dbus.dev}/include/dbus-1.0" ]; + + postPatch = '' + substituteInPlace configure.ac.in --replace gio-2.0 gio-unix-2.0 + ''; + + buildInputs = [ gtk3 libnotify libpulseaudio libxfce4ui libxfce4util xfce4-panel xfconf ]; +} From 63c295caeffc3fa50a5f2ef848deabfb35a91597 Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 1 Aug 2018 20:46:08 +0000 Subject: [PATCH 39/81] xfce4-13.xfce4-netload-plugin: init at 1.3.1 (#44315) --- pkgs/desktops/xfce4-13/default.nix | 2 ++ .../xfce4-13/xfce4-netload-plugin/default.nix | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 pkgs/desktops/xfce4-13/xfce4-netload-plugin/default.nix diff --git a/pkgs/desktops/xfce4-13/default.nix b/pkgs/desktops/xfce4-13/default.nix index dd40e111235..4bf202871f2 100644 --- a/pkgs/desktops/xfce4-13/default.nix +++ b/pkgs/desktops/xfce4-13/default.nix @@ -56,6 +56,8 @@ makeScope newScope (self: with self; { xfce4-mixer = callPackage ./xfce4-mixer { }; + xfce4-netload-plugin = callPackage ./xfce4-netload-plugin { }; + xfce4-notifyd = callPackage ./xfce4-notifyd { }; xfce4-panel = callPackage ./xfce4-panel { }; diff --git a/pkgs/desktops/xfce4-13/xfce4-netload-plugin/default.nix b/pkgs/desktops/xfce4-13/xfce4-netload-plugin/default.nix new file mode 100644 index 00000000000..d9f517981d3 --- /dev/null +++ b/pkgs/desktops/xfce4-13/xfce4-netload-plugin/default.nix @@ -0,0 +1,11 @@ +{ mkXfceDerivation, gtk3, libxfce4ui, libxfce4util, xfce4-panel, xfconf }: + +mkXfceDerivation rec { + category = "panel-plugins"; + pname = "xfce4-netload-plugin"; + version = "1.3.1"; + rev = "version-${version}"; + sha256 = "0nm8advafw4jpc9p1qszyfqa56194sz51z216rdh4c6ilcrrpy1h"; + + buildInputs = [ gtk3 libxfce4ui libxfce4util xfce4-panel xfconf ]; +} From b129cd165a1fb0767e6d1450886e795abcd03d2e Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 1 Aug 2018 20:47:15 +0000 Subject: [PATCH 40/81] xfce4-13.xfce4-cpufreq-plugin: init at 1.2.0 (#44316) --- pkgs/desktops/xfce4-13/default.nix | 2 ++ .../desktops/xfce4-13/xfce4-cpufreq-plugin/default.nix | 10 ++++++++++ 2 files changed, 12 insertions(+) create mode 100644 pkgs/desktops/xfce4-13/xfce4-cpufreq-plugin/default.nix diff --git a/pkgs/desktops/xfce4-13/default.nix b/pkgs/desktops/xfce4-13/default.nix index 4bf202871f2..a857ce9c75d 100644 --- a/pkgs/desktops/xfce4-13/default.nix +++ b/pkgs/desktops/xfce4-13/default.nix @@ -46,6 +46,8 @@ makeScope newScope (self: with self; { xfce4-battery-plugin = callPackage ./xfce4-battery-plugin { }; + xfce4-cpufreq-plugin = callPackage ./xfce4-cpufreq-plugin { }; + xfce4-dev-tools = callPackage ./xfce4-dev-tools { mkXfceDerivation = mkXfceDerivation.override { xfce4-dev-tools = null; diff --git a/pkgs/desktops/xfce4-13/xfce4-cpufreq-plugin/default.nix b/pkgs/desktops/xfce4-13/xfce4-cpufreq-plugin/default.nix new file mode 100644 index 00000000000..e17204c0cd5 --- /dev/null +++ b/pkgs/desktops/xfce4-13/xfce4-cpufreq-plugin/default.nix @@ -0,0 +1,10 @@ +{ mkXfceDerivation, gtk3, libxfce4ui, libxfce4util, xfce4-panel, xfconf }: + +mkXfceDerivation rec { + category = "panel-plugins"; + pname = "xfce4-cpufreq-plugin"; + version = "1.2.0"; + sha256 = "0zhs7b7py1njczmpnib4532fwpnd3vnpqfhss2r136cfgy72kp6g"; + + buildInputs = [ gtk3 libxfce4ui libxfce4util xfce4-panel xfconf ]; +} From ee23bd7046003bb901c7a0fa314dd8cd7a1fb181 Mon Sep 17 00:00:00 2001 From: volth Date: Wed, 1 Aug 2018 20:48:21 +0000 Subject: [PATCH 41/81] xfce4-13.xfce4-whiskermenu-plugin: init at 2.2.0 (#44317) --- pkgs/desktops/xfce4-13/default.nix | 2 ++ .../xfce4-whiskermenu-plugin/default.nix | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/desktops/xfce4-13/xfce4-whiskermenu-plugin/default.nix diff --git a/pkgs/desktops/xfce4-13/default.nix b/pkgs/desktops/xfce4-13/default.nix index a857ce9c75d..9ccaa3bec6a 100644 --- a/pkgs/desktops/xfce4-13/default.nix +++ b/pkgs/desktops/xfce4-13/default.nix @@ -82,5 +82,7 @@ makeScope newScope (self: with self; { xfce4-volumed-pulse = callPackage ./xfce4-volumed-pulse { }; + xfce4-whiskermenu-plugin = callPackage ./xfce4-whiskermenu-plugin { }; + xfwm4 = callPackage ./xfwm4 { }; }) diff --git a/pkgs/desktops/xfce4-13/xfce4-whiskermenu-plugin/default.nix b/pkgs/desktops/xfce4-13/xfce4-whiskermenu-plugin/default.nix new file mode 100644 index 00000000000..41a1ef82932 --- /dev/null +++ b/pkgs/desktops/xfce4-13/xfce4-whiskermenu-plugin/default.nix @@ -0,0 +1,18 @@ +{ mkXfceDerivation, dbus-glib, gtk3, cmake, exo, garcon, libxfce4ui, libxfce4util, xfce4-panel, xfconf }: + +mkXfceDerivation rec { + category = "panel-plugins"; + pname = "xfce4-whiskermenu-plugin"; + version = "2.2.0"; + rev = "v${version}"; + sha256 = "1d35xxkdzw8pl3d5ps226mmrrjk0hqczsbvl5smh7l7jbwfambjm"; + + nativeBuildInputs = [ cmake ]; + + buildInputs = [ dbus-glib exo garcon gtk3 libxfce4ui libxfce4util xfce4-panel xfconf ]; + + postInstall = '' + substituteInPlace $out/bin/xfce4-popup-whiskermenu \ + --replace $out/bin/xfce4-panel ${xfce4-panel.out}/bin/xfce4-panel + ''; +} From 7826a3155a8853b543df69eb046cbca9d0fa761b Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Wed, 1 Aug 2018 22:20:38 +0100 Subject: [PATCH 42/81] icestorm: 2018.05.03 -> 2018.08.01 (#44321) --- pkgs/development/tools/icestorm/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/icestorm/default.nix b/pkgs/development/tools/icestorm/default.nix index cb203a431d4..5826dfc2a03 100644 --- a/pkgs/development/tools/icestorm/default.nix +++ b/pkgs/development/tools/icestorm/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { name = "icestorm-${version}"; - version = "2018.05.03"; + version = "2018.08.01"; src = fetchFromGitHub { owner = "cliffordwolf"; repo = "icestorm"; - rev = "237280ce44f72c7b2e1ca671d5113dba34cc4fca"; - sha256 = "0r9xh024snaf1g2r5k524yl6lvf5rkfhqwjzcixh1m12012i5hrh"; + rev = "8cac6c584044034210fe0ba1e6b930ff1cc59465"; + sha256 = "01cnmk4khbbgzc308qj04sfwg0r8b9nh3s7xjsxdjcb3h1m9w88c"; }; nativeBuildInputs = [ pkgconfig ]; From 422065c1947d622c71298a5cf0ac8cb70c9c6b6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 1 Aug 2018 23:33:33 +0100 Subject: [PATCH 43/81] pwndbg: 2018-04-06 -> 2018.07.29 --- pkgs/development/tools/misc/pwndbg/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/misc/pwndbg/default.nix b/pkgs/development/tools/misc/pwndbg/default.nix index df4b91a79b0..257e822edd9 100644 --- a/pkgs/development/tools/misc/pwndbg/default.nix +++ b/pkgs/development/tools/misc/pwndbg/default.nix @@ -1,13 +1,14 @@ { stdenv, fetchFromGitHub, pythonPackages, makeWrapper, gdb }: stdenv.mkDerivation rec { - name = "pwndbg-2018-04-06"; + name = "pwndbg-${version}"; + version = "2018.07.29"; src = fetchFromGitHub { owner = "pwndbg"; repo = "pwndbg"; - rev = "e225ba9f647ab8f7f4871075529c0ec239f43300"; - sha256 = "1s6m93qi3baclgqqii4fnmzjmg0c6ipkscg7xiljaj5z4bs371j4"; + rev = version; + sha256 = "1illk1smknaaa0ck8mwvig15c8al5w7fdp42a748xvm8wvxqxdsc"; }; nativeBuildInputs = [ makeWrapper ]; From 29e89248bfe74ca8d9d539c7ae441fac24c05330 Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 2 Aug 2018 01:41:36 +0200 Subject: [PATCH 44/81] beets: Fix building plugins with Python 3 Since the switch to using python3Packages in commit 72934aa94e322eb3d5be277d667466643f78e706, the plugins no longer build because they end up with a mix of Python 2 and Python 3 packages. The reason for this is that the Beets package itself uses callPackage to reference the plugins, however the overrides are not applied there and thus the plugins end up getting pythonPackages from the top-level which is Python 2 and beets with Python 3 dependencies. Unfortunately this is not the only reason for the builds to fail, because both plugins did not actually support Python 3. For the copyartifacts plugin, the fix is rather easy because we only need to advance to two more recent commits from upstream, which already contain fixes for Python 3. The alternatives plugin on the other hand is not maintained anymore, but there is a fork at https://github.com/wisp3rwind/beets-alternatives which has a bunch of fixes. In 2e4aded366914d625a2f31208e8ac8548cb43a7e I already backported one of these fixes to the version from https://github.com/geigerzaehler/beets-alternatives, but for Python 3 support it's a bit more complicated than just one little fix. So instead of adding another series of patches which replicate the code base of the fork and become a maintenance burden, I opted to directly switch to the fork and remove the patch on our side. Signed-off-by: aszlig Cc: @domenkozar, @pjones, @Profpatsch --- .../beets/alternatives-beets-1.4.6.patch | 30 ------------------- .../tools/audio/beets/alternatives-plugin.nix | 14 ++++----- .../audio/beets/copyartifacts-plugin.nix | 4 +-- pkgs/tools/audio/beets/default.nix | 6 ++-- 4 files changed, 11 insertions(+), 43 deletions(-) delete mode 100644 pkgs/tools/audio/beets/alternatives-beets-1.4.6.patch diff --git a/pkgs/tools/audio/beets/alternatives-beets-1.4.6.patch b/pkgs/tools/audio/beets/alternatives-beets-1.4.6.patch deleted file mode 100644 index 652e0e4a94b..00000000000 --- a/pkgs/tools/audio/beets/alternatives-beets-1.4.6.patch +++ /dev/null @@ -1,30 +0,0 @@ -diff --git a/test/helper.py b/test/helper.py -index c216226..d409c09 100644 ---- a/test/helper.py -+++ b/test/helper.py -@@ -11,6 +11,7 @@ import beets - from beets import plugins - from beets import ui - from beets.library import Item -+from beets.util import MoveOperation - - from beetsplug import alternatives - from beetsplug import convert -@@ -183,7 +184,7 @@ class TestHelper(Assertions): - item = Item.from_path(os.path.join(self.fixture_dir, 'min.' + ext)) - item.add(self.lib) - item.update(values) -- item.move(copy=True) -+ item.move(operation=MoveOperation.COPY) - item.write() - album = self.lib.add_album([item]) - album.albumartist = item.artist -@@ -201,7 +202,7 @@ class TestHelper(Assertions): - item = Item.from_path(os.path.join(self.fixture_dir, 'min.mp3')) - item.add(self.lib) - item.update(values) -- item.move(copy=True) -+ item.move(operation=MoveOperation.COPY) - item.write() - return item - diff --git a/pkgs/tools/audio/beets/alternatives-plugin.nix b/pkgs/tools/audio/beets/alternatives-plugin.nix index f808e90281e..a3e7f9a63d6 100644 --- a/pkgs/tools/audio/beets/alternatives-plugin.nix +++ b/pkgs/tools/audio/beets/alternatives-plugin.nix @@ -6,24 +6,20 @@ pythonPackages.buildPythonApplication rec { src = fetchFromGitHub { repo = "beets-alternatives"; - owner = "geigerzaehler"; - rev = "v${version}"; - sha256 = "10za6h59pxa13y8i4amqhc6392csml0dl771lssv6b6a98kamsy7"; + owner = "wisp3rwind"; + # This is 0.8.2 with fixes against Beets 1.4.6 and Python 3 compatibility. + rev = "331eb406786a2d4dc3dd721a534225b087474b1e"; + sha256 = "1avds2x5sp72c89l1j52pszprm85g9sm750jh1dhnyvgcbk91cb5"; }; - patches = [ ./alternatives-beets-1.4.6.patch ]; - postPatch = '' - sed -i -e '/install_requires/,/\]/{/beets/d}' setup.py - sed -i -e '/test_suite/d' setup.py + sed -i -e '/long_description/d' setup.py ''; nativeBuildInputs = [ beets pythonPackages.nose ]; checkPhase = "nosetests"; - propagatedBuildInputs = with pythonPackages; [ futures ]; - meta = { description = "Beets plugin to manage external files"; homepage = https://github.com/geigerzaehler/beets-alternatives; diff --git a/pkgs/tools/audio/beets/copyartifacts-plugin.nix b/pkgs/tools/audio/beets/copyartifacts-plugin.nix index 6f84e98d23e..3c9cc5639a8 100644 --- a/pkgs/tools/audio/beets/copyartifacts-plugin.nix +++ b/pkgs/tools/audio/beets/copyartifacts-plugin.nix @@ -6,8 +6,8 @@ pythonPackages.buildPythonApplication rec { src = fetchFromGitHub { repo = "beets-copyartifacts"; owner = "sbarakat"; - rev = "4a5d347c858d25641c8a0eb7d8cb1a2cac10252a"; - sha256 = "0bn6fci480ilghrdhpsjxxq29dxgni22sv1qalz770xy130g1zk3"; + rev = "d0bb75c8fc8fe125e8191d73de7ade6212aec0fd"; + sha256 = "19b4lqq1p45n348ssmql60jylw2fw7vfj9j22nly5qj5qx51j3g5"; }; postPatch = '' diff --git a/pkgs/tools/audio/beets/default.nix b/pkgs/tools/audio/beets/default.nix index 5c7ced40afb..8f0cc6c4f5c 100644 --- a/pkgs/tools/audio/beets/default.nix +++ b/pkgs/tools/audio/beets/default.nix @@ -91,9 +91,11 @@ let doInstallCheck = false; }); + pluginArgs = externalTestArgs // { inherit pythonPackages; }; + plugins = { - alternatives = callPackage ./alternatives-plugin.nix externalTestArgs; - copyartifacts = callPackage ./copyartifacts-plugin.nix externalTestArgs; + alternatives = callPackage ./alternatives-plugin.nix pluginArgs; + copyartifacts = callPackage ./copyartifacts-plugin.nix pluginArgs; }; in pythonPackages.buildPythonApplication rec { From acaa6c92fb91bdf0b41471376d31efb39f884f05 Mon Sep 17 00:00:00 2001 From: Moritz Angermann Date: Wed, 1 Aug 2018 21:18:41 -0400 Subject: [PATCH 45/81] coreutils: unix-only Windows is not supported & we currently define "all" to be "unix" + "windows". --- pkgs/tools/misc/coreutils/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/coreutils/default.nix b/pkgs/tools/misc/coreutils/default.nix index 589c58d0acc..69d751a629e 100644 --- a/pkgs/tools/misc/coreutils/default.nix +++ b/pkgs/tools/misc/coreutils/default.nix @@ -100,7 +100,7 @@ stdenv.mkDerivation rec { license = licenses.gpl3Plus; - platforms = platforms.all; + platforms = platforms.unix; maintainers = [ maintainers.eelco ]; }; From cbaac406235884d408cdc1f1a3ba41cb179c1e45 Mon Sep 17 00:00:00 2001 From: Spencer Janssen Date: Wed, 1 Aug 2018 21:46:53 -0500 Subject: [PATCH 46/81] unixODBCDrivers.msodbcsql17: init at 17.2.0.1 (#44140) * unixODBCDrivers.msodbcsql17: init at 17.2.0.1 * unixODBCDrivers.msodbcsql17: use autoPatchelfHook * unixODBCDrivers.msodbcsql17: use getLib --- .../libraries/unixODBCDrivers/default.nix | 43 ++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/unixODBCDrivers/default.nix b/pkgs/development/libraries/unixODBCDrivers/default.nix index 5f8e2442726..7d4c6c7a299 100644 --- a/pkgs/development/libraries/unixODBCDrivers/default.nix +++ b/pkgs/development/libraries/unixODBCDrivers/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql55, mariadb, sqlite, zlib, libxml2 }: +{ fetchurl, stdenv, unixODBC, cmake, postgresql, mysql55, mariadb, sqlite, zlib, libxml2, dpkg, lib, openssl, kerberos, curl, libuuid, autoPatchelfHook }: # I haven't done any parameter tweaking.. So the defaults provided here might be bad @@ -119,4 +119,45 @@ maintainers = with maintainers; [ vlstill ]; }; }; + + msodbcsql17 = stdenv.mkDerivation rec { + name = "msodbcsql17-${version}"; + version = "${versionMajor}.${versionMinor}.${versionAdditional}-1"; + + versionMajor = "17"; + versionMinor = "2"; + versionAdditional = "0.1"; + + src = fetchurl { + url = "https://packages.microsoft.com/debian/9/prod/pool/main/m/msodbcsql17/msodbcsql${versionMajor}_${version}_amd64.deb"; + sha256 = "1966ymbbk0jsacqwzi3dmhxv2n8hfgnpjsx3hr3n7s9d88chgpx5"; + }; + + nativeBuildInputs = [ autoPatchelfHook ]; + buildInputs = [ unixODBC dpkg openssl kerberos curl libuuid stdenv.cc.cc ]; + + unpackPhase = "dpkg -x $src ./"; + buildPhase = ""; + + installPhase = '' + mkdir -p $out + mkdir -p $out/lib + ln -s ${lib.getLib openssl}/lib/libssl.so.1.0.0 $out/lib/libssl.so.1.0.2 + ln -s ${lib.getLib openssl}/lib/libcrypto.so.1.0.0 $out/lib/libcrypto.so.1.0.2 + cp -r opt/microsoft/msodbcsql${versionMajor}/lib64 opt/microsoft/msodbcsql${versionMajor}/share $out/ + ''; + + passthru = { + fancyName = "ODBC Driver 17 for SQL Server"; + driver = "lib/libmsodbcsql-${versionMajor}.${versionMinor}.so.${versionAdditional}"; + }; + + meta = with stdenv.lib; { + description = "ODBC Driver 17 for SQL Server"; + homepage = https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017; + license = licenses.unfree; + platforms = platforms.linux; + maintainers = with maintainers; [ spencerjanssen ]; + }; + }; } From 016922f88ba9d86b611115463c45ee84f238f64e Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Wed, 1 Aug 2018 22:52:41 -0400 Subject: [PATCH 47/81] restic: add missing default for s3CredentialsFile --- nixos/modules/services/backup/restic.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/backup/restic.nix b/nixos/modules/services/backup/restic.nix index 2d14762e868..5db0097aae2 100644 --- a/nixos/modules/services/backup/restic.nix +++ b/nixos/modules/services/backup/restic.nix @@ -18,6 +18,7 @@ with lib; s3CredentialsFile = mkOption { type = with types; nullOr str; + default = null; description = '' file containing the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for an S3-hosted repository, in the format of an EnvironmentFile From 169d5698a91e7b4f41b04395881ee35286df00cc Mon Sep 17 00:00:00 2001 From: Cray Elliott Date: Wed, 1 Aug 2018 20:46:34 -0700 Subject: [PATCH 48/81] monotone: fix build against pcre 8.42 --- .../version-management/monotone/default.nix | 2 +- ...ne-1.1-Adapt-to-changes-in-pcre-8.42.patch | 66 +++++++++++++++++++ 2 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 pkgs/applications/version-management/monotone/monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch diff --git a/pkgs/applications/version-management/monotone/default.nix b/pkgs/applications/version-management/monotone/default.nix index 8f8930424a9..4282f48654e 100644 --- a/pkgs/applications/version-management/monotone/default.nix +++ b/pkgs/applications/version-management/monotone/default.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { sha256 = "124cwgi2q86hagslbk5idxbs9j896rfjzryhr6z63r6l485gcp7r"; }; - patches = [ ]; + patches = [ ./monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch ]; nativeBuildInputs = [ pkgconfig ]; buildInputs = [ boost zlib botan libidn lua pcre sqlite expect diff --git a/pkgs/applications/version-management/monotone/monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch b/pkgs/applications/version-management/monotone/monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch new file mode 100644 index 00000000000..1ecda436c25 --- /dev/null +++ b/pkgs/applications/version-management/monotone/monotone-1.1-Adapt-to-changes-in-pcre-8.42.patch @@ -0,0 +1,66 @@ +From 70f209ad582121750d54e3692b1e62c7f36af6f9 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Mon, 7 May 2018 14:09:06 +0200 +Subject: [PATCH] Adapt to changes in pcre-8.42 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +pcre-8.42 replaced internal real_pcre with real_pcre8_or_16. This +broke monotone that decided not to use the public "pcre" type. + +This patch adapts monotone to the pcre >= 8.42. + +Signed-off-by: Petr Písař +--- + src/pcrewrap.cc | 4 ++-- + src/pcrewrap.hh | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/pcrewrap.cc b/src/pcrewrap.cc +index 8c0c9d1..30bafff 100644 +--- a/src/pcrewrap.cc ++++ b/src/pcrewrap.cc +@@ -74,7 +74,7 @@ get_capturecount(void const * bd) + namespace pcre + { + typedef map > ++ pair > + regex_cache; + + class regex_cache_manager +@@ -86,7 +86,7 @@ public: + } + + void store(char const * pattern, +- pair ++ pair + data) + { + cache[pattern] = data; +diff --git a/src/pcrewrap.hh b/src/pcrewrap.hh +index 3359cdd..5008e88 100644 +--- a/src/pcrewrap.hh ++++ b/src/pcrewrap.hh +@@ -18,7 +18,7 @@ + // definitions and so we don't actually expose it here. Unfortunately, this + // means we have to hope this pair of forward declarations will not change... + +-struct real_pcre; ++struct real_pcre8_or_16; + struct pcre_extra; + + namespace pcre +@@ -61,7 +61,7 @@ namespace pcre + regex & operator=(regex const &); + + // data +- struct real_pcre const * basedat; ++ struct real_pcre8_or_16 const * basedat; + struct pcre_extra const * extradat; + + // used by constructors +-- +2.14.3 + From eca1f53a525ad044bc463204f1b95615a87b02a1 Mon Sep 17 00:00:00 2001 From: Cray Elliott Date: Wed, 1 Aug 2018 20:47:37 -0700 Subject: [PATCH 49/81] reposurgeon: 3.28 -> 3.44 also switch from cython to pypy as cyreposurgeon was dropped upstream in favor of using pypy --- .../reposurgeon/default.nix | 24 +++++++------------ .../reposurgeon/fix-makefile.patch | 12 ++++++++++ .../reposurgeon/fix-preserve-type.patch | 12 ---------- 3 files changed, 20 insertions(+), 28 deletions(-) create mode 100644 pkgs/applications/version-management/reposurgeon/fix-makefile.patch delete mode 100644 pkgs/applications/version-management/reposurgeon/fix-preserve-type.patch diff --git a/pkgs/applications/version-management/reposurgeon/default.nix b/pkgs/applications/version-management/reposurgeon/default.nix index 3fd66572315..8dd46405d31 100644 --- a/pkgs/applications/version-management/reposurgeon/default.nix +++ b/pkgs/applications/version-management/reposurgeon/default.nix @@ -1,17 +1,17 @@ { stdenv, fetchurl, makeWrapper, python27Packages, git -, docbook_xml_dtd_412, docbook_xsl, asciidoc, xmlto +, docbook_xml_dtd_412, docbook_xsl, asciidoc, xmlto, pypy , bazaar ? null, cvs ? null, darcs ? null, fossil ? null , mercurial ? null, monotone ? null, rcs ? null , subversion ? null, cvs_fast_export ? null }: with stdenv; with lib; let - inherit (python27Packages) python cython; + inherit (python27Packages) python; in mkDerivation rec { name = "reposurgeon-${meta.version}"; meta = { description = "A tool for editing version-control repository history"; - version = "3.28"; + version = "3.44"; license = licenses.bsd3; homepage = http://www.catb.org/esr/reposurgeon/; maintainers = with maintainers; [ dfoxfranke ]; @@ -19,17 +19,15 @@ in mkDerivation rec { }; src = fetchurl { - url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-3.28.tar.gz"; - sha256 = "3225b44109b8630310a0ea6fe63a3485d27aa46deaf80e8d07820e01a6f62626"; + url = "http://www.catb.org/~esr/reposurgeon/reposurgeon-3.44.tar.xz"; + sha256 = "0il6hwrsm2qgg0vp5fcjh478y2x4zyw3mx2apcwc7svfj86pf7pn"; }; - # See https://gitlab.com/esr/reposurgeon/issues/17 - patches = [ ./fix-preserve-type.patch ]; + # install fails because the files README.md, NEWS, and TODO were not included in the source distribution + patches = [ ./fix-makefile.patch ]; buildInputs = - [ docbook_xml_dtd_412 docbook_xsl asciidoc xmlto makeWrapper ] ++ - optional (cython != null) cython - ; + [ docbook_xml_dtd_412 docbook_xsl asciidoc xmlto makeWrapper pypy ]; preBuild = '' makeFlagsArray=( @@ -40,12 +38,6 @@ in mkDerivation rec { ) ''; - buildFlags = "all" + (if cython != null then " cyreposurgeon" else ""); - - installTargets = - "install" + (if cython != null then " install-cyreposurgeon" else "") - ; - postInstall = let binpath = makeBinPath ( diff --git a/pkgs/applications/version-management/reposurgeon/fix-makefile.patch b/pkgs/applications/version-management/reposurgeon/fix-makefile.patch new file mode 100644 index 00000000000..0a659c93406 --- /dev/null +++ b/pkgs/applications/version-management/reposurgeon/fix-makefile.patch @@ -0,0 +1,12 @@ +diff -Naur reposurgeon-3.44/Makefile reposurgeon-3.44-new/Makefile +--- reposurgeon-3.44/Makefile 2018-04-29 12:27:43.000000000 -0700 ++++ reposurgeon-3.44-new/Makefile 2018-08-01 17:38:15.582789739 -0700 +@@ -36,7 +36,7 @@ + MANPAGES = reposurgeon.1 repotool.1 repodiffer.1 repomapper.1 repocutter.1 + HTMLFILES = $(MANPAGES:.1=.html) \ + dvcs-migration-guide.html features.html reporting-bugs.html +-SHARED = README.md NEWS TODO reposurgeon-git-aliases $(HTMLFILES) ++SHARED = reposurgeon-git-aliases $(HTMLFILES) + + all: $(MANPAGES) $(HTMLFILES) + diff --git a/pkgs/applications/version-management/reposurgeon/fix-preserve-type.patch b/pkgs/applications/version-management/reposurgeon/fix-preserve-type.patch deleted file mode 100644 index ef3568b7b92..00000000000 --- a/pkgs/applications/version-management/reposurgeon/fix-preserve-type.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -Nru reposurgeon-3.28/reposurgeon reposurgeon-3.28-new/reposurgeon ---- reposurgeon-3.28/reposurgeon 2015-07-05 15:17:13.000000000 -0400 -+++ reposurgeon-3.28-new/reposurgeon 2015-08-25 18:23:11.347591137 -0400 -@@ -193,7 +193,7 @@ - importer=b"git fast-import --quiet", - checkout=b"git checkout", - lister=b"git ls-files", -- preserve=(b'.git/config', b'.git/hooks'), -+ preserve=set((b'.git/config', b'.git/hooks')), - authormap=b".git/cvs-authors", - ignorename=b".gitignore", - dfltignores=b"", # Has none From 3c21535b5c2eaff90897f54f56db6c767baa4352 Mon Sep 17 00:00:00 2001 From: Cray Elliott Date: Wed, 1 Aug 2018 20:48:19 -0700 Subject: [PATCH 50/81] pypy: 5.10 -> 6.0 --- pkgs/development/interpreters/python/pypy/2.7/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/pypy/2.7/default.nix b/pkgs/development/interpreters/python/pypy/2.7/default.nix index 95a893a209c..d95707ecb22 100644 --- a/pkgs/development/interpreters/python/pypy/2.7/default.nix +++ b/pkgs/development/interpreters/python/pypy/2.7/default.nix @@ -10,7 +10,7 @@ assert zlibSupport -> zlib != null; let - majorVersion = "5.10"; + majorVersion = "6.0"; minorVersion = "0"; minorVersionSuffix = ""; pythonVersion = "2.7"; @@ -26,7 +26,7 @@ in stdenv.mkDerivation rec { src = fetchurl { url = "https://bitbucket.org/pypy/pypy/get/release-pypy${pythonVersion}-v${version}.tar.bz2"; - sha256 = "10j1s6r6iv80nvpi6gv8w05v505h2ndj9xx31yz7d50ab04dfg23"; + sha256 = "1qjwpc8n68sxxlfg36s5vn1h2gdfvvd6lxvr4lzbvfwhzrgqahsw"; }; nativeBuildInputs = [ pkgconfig makeWrapper ]; From 00ab5c5b6af27850268e2cb29479fd54d67b5e02 Mon Sep 17 00:00:00 2001 From: Cray Elliott Date: Wed, 1 Aug 2018 20:57:08 -0700 Subject: [PATCH 51/81] mariadb: 10.2.16 -> 10.3.8 --- pkgs/servers/sql/mariadb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index 121e42f7a97..7c1b6cc8702 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -22,14 +22,14 @@ galeraLibs = buildEnv { }; common = rec { # attributes common to both builds - version = "10.2.16"; + version = "10.3.8"; src = fetchurl { urls = [ "https://downloads.mariadb.org/f/mariadb-${version}/source/mariadb-${version}.tar.gz" "https://downloads.mariadb.com/MariaDB/mariadb-${version}/source/mariadb-${version}.tar.gz" ]; - sha256 = "1i2dwpp96ywjk147qqpcad8vqcy4rxmfbv2cb8ww3sffpa9yx0n1"; + sha256 = "1f0syfrv0my7sm8cbpic00ldy90psimy8yvm0ld82bfi2isw3gih"; name = "mariadb-${version}.tar.gz"; }; From 6f5a86b189fcaaee88aa421cc7639461bb07d59e Mon Sep 17 00:00:00 2001 From: aszlig Date: Thu, 2 Aug 2018 05:32:39 +0200 Subject: [PATCH 52/81] tests/containers-imperative: Disable useSandbox Since 4f6df27aee0a3f620d65280c7b6644d5cce094ae, nix.useSandbox defaults to true which causes the Nix build within the containers-imperative test to fail while trying to hardlink files into the chroot: link("/nix/store/foo", "/nix/store/bar.drv.chroot/nix/store/foo") = -1 EPERM (Operation not permitted) The reason this happens is that the hosts store is mounted using 9p and an overlayfs is mounted on top, so even if we would disable the tmpfs for the upper directory the hardlink would still cross filesystem boundaries, which then fails with the above error code. I haven't yet seen any other test which fails in a similar way, which might be because building within VM tests is not very common and the installer tests build in a separate store, so they're not affected. Signed-off-by: aszlig Issue: https://github.com/NixOS/nix/issues/2324 Cc: @aristidb, @edolstra, @chaoflow, @kampfschlaefer --- nixos/tests/containers-imperative.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nixos/tests/containers-imperative.nix b/nixos/tests/containers-imperative.nix index 93b00b5b977..913d8bed19d 100644 --- a/nixos/tests/containers-imperative.nix +++ b/nixos/tests/containers-imperative.nix @@ -9,6 +9,11 @@ import ./make-test.nix ({ pkgs, ...} : { machine = { config, pkgs, lib, ... }: { imports = [ ../modules/installer/cd-dvd/channel.nix ]; + + # XXX: Sandbox setup fails while trying to hardlink files from the host's + # store file system into the prepared chroot directory. + nix.useSandbox = false; + virtualisation.writableStore = true; virtualisation.memorySize = 1024; # Make sure we always have all the required dependencies for creating a From 737fdd73482715c2dd0d3fe77ed49254eaa11c97 Mon Sep 17 00:00:00 2001 From: Cray Elliott Date: Wed, 1 Aug 2018 21:19:11 -0700 Subject: [PATCH 53/81] ffmpeg_4, ffmpeg-full: 4.0.1 -> 4.0.2 --- pkgs/development/libraries/ffmpeg-full/default.nix | 4 ++-- pkgs/development/libraries/ffmpeg/4.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/ffmpeg-full/default.nix b/pkgs/development/libraries/ffmpeg-full/default.nix index 5c9cf94d77d..e413e29e7ca 100644 --- a/pkgs/development/libraries/ffmpeg-full/default.nix +++ b/pkgs/development/libraries/ffmpeg-full/default.nix @@ -233,11 +233,11 @@ assert nvenc -> nvidia-video-sdk != null && nonfreeLicensing; stdenv.mkDerivation rec { name = "ffmpeg-full-${version}"; - version = "4.0.1"; + version = "4.0.2"; src = fetchurl { url = "https://www.ffmpeg.org/releases/ffmpeg-${version}.tar.xz"; - sha256 = "1vn04n0n46zdxq14cma3w8ml2ckh5jxwlybsc4xmvcqdqq0mqpv0"; + sha256 = "15rgzcmdccy4flajs63gkz4n3k24wkkg50r13l1r83lrxg4hqp59"; }; prePatch = '' diff --git a/pkgs/development/libraries/ffmpeg/4.nix b/pkgs/development/libraries/ffmpeg/4.nix index 40b697c7a76..b470d45ba43 100644 --- a/pkgs/development/libraries/ffmpeg/4.nix +++ b/pkgs/development/libraries/ffmpeg/4.nix @@ -6,7 +6,7 @@ callPackage ./generic.nix (args // rec { version = "${branch}"; - branch = "4.0.1"; - sha256 = "0w0nq98sn5jwx982wzg3vfrxv4p0k1fvsksiz9az0rpvwyqr3rby"; + branch = "4.0.2"; + sha256 = "0mnh41j3kzi3x3clai1yhqasr1kc8zvd5cz0283pxhs2bxrm2v1l"; darwinFrameworks = [ Cocoa CoreMedia ]; }) From cdfefaa42bbb4449cb49fada5c0a8dbda6c7333e Mon Sep 17 00:00:00 2001 From: Peter Hoeg Date: Thu, 2 Aug 2018 13:43:37 +0800 Subject: [PATCH 54/81] xca: 2.0.1 -> 2.1.0 --- pkgs/applications/misc/xca/default.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/applications/misc/xca/default.nix b/pkgs/applications/misc/xca/default.nix index ee07401d484..ee4300cde0f 100644 --- a/pkgs/applications/misc/xca/default.nix +++ b/pkgs/applications/misc/xca/default.nix @@ -3,13 +3,13 @@ mkDerivation rec { name = "xca-${version}"; - version = "2.0.1"; + version = "2.1.0"; src = fetchFromGitHub { owner = "chris2511"; repo = "xca"; rev = "RELEASE.${version}"; - sha256 = "0906xnmqzd9q5irxzm19361vhzig9yqsmf6wsc3rggniix5bk3a8"; + sha256 = "039qz6hh43hx8dcw2bq71mgy95zk09jyd3xxpldmxxd5d69zcr8m"; }; postPatch = '' @@ -23,8 +23,6 @@ mkDerivation rec { enableParallelBuilding = true; - configureFlags = [ "CXXFLAGS=-std=c++11" ]; - meta = with lib; { description = "Interface for managing asymetric keys like RSA or DSA"; homepage = http://xca.sourceforge.net/; From 68fdf4713522687d3716d5ef43fedcd860593994 Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 2 Aug 2018 07:12:42 +0000 Subject: [PATCH 55/81] xfce4-13.xfce4-xkb-plugin: init at 0.8.1 (#44320) --- pkgs/desktops/xfce4-13/default.nix | 2 ++ pkgs/desktops/xfce4-13/xfce4-xkb-plugin/default.nix | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 pkgs/desktops/xfce4-13/xfce4-xkb-plugin/default.nix diff --git a/pkgs/desktops/xfce4-13/default.nix b/pkgs/desktops/xfce4-13/default.nix index 9ccaa3bec6a..893803079ad 100644 --- a/pkgs/desktops/xfce4-13/default.nix +++ b/pkgs/desktops/xfce4-13/default.nix @@ -84,5 +84,7 @@ makeScope newScope (self: with self; { xfce4-whiskermenu-plugin = callPackage ./xfce4-whiskermenu-plugin { }; + xfce4-xkb-plugin = callPackage ./xfce4-xkb-plugin { }; + xfwm4 = callPackage ./xfwm4 { }; }) diff --git a/pkgs/desktops/xfce4-13/xfce4-xkb-plugin/default.nix b/pkgs/desktops/xfce4-13/xfce4-xkb-plugin/default.nix new file mode 100644 index 00000000000..a024d3a88ba --- /dev/null +++ b/pkgs/desktops/xfce4-13/xfce4-xkb-plugin/default.nix @@ -0,0 +1,11 @@ +{ mkXfceDerivation, gtk3, librsvg, libwnck3, libxklavier, garcon, libxfce4ui, libxfce4util, xfce4-panel, xfconf }: + +mkXfceDerivation rec { + category = "panel-plugins"; + pname = "xfce4-xkb-plugin"; + version = "0.8.1"; + rev = version; + sha256 = "1gyky4raynp2ggdnq0g96c6646fjm679fzipcsmf1q0aymr8d5ky"; + + buildInputs = [ garcon gtk3 librsvg libxfce4ui libxfce4util libxklavier libwnck3 xfce4-panel xfconf ]; +} From 726d59b795ff55bf327f290be6c1a4b8965ca2fc Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 2 Aug 2018 07:13:42 +0000 Subject: [PATCH 56/81] xfce4-13.xfce4-clipman-plugin: init at 1.4.2 (#44319) --- pkgs/desktops/xfce4-13/default.nix | 2 ++ .../xfce4-13/xfce4-clipman-plugin/default.nix | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 pkgs/desktops/xfce4-13/xfce4-clipman-plugin/default.nix diff --git a/pkgs/desktops/xfce4-13/default.nix b/pkgs/desktops/xfce4-13/default.nix index 893803079ad..0ce8450724e 100644 --- a/pkgs/desktops/xfce4-13/default.nix +++ b/pkgs/desktops/xfce4-13/default.nix @@ -48,6 +48,8 @@ makeScope newScope (self: with self; { xfce4-cpufreq-plugin = callPackage ./xfce4-cpufreq-plugin { }; + xfce4-clipman-plugin = callPackage ./xfce4-clipman-plugin { }; + xfce4-dev-tools = callPackage ./xfce4-dev-tools { mkXfceDerivation = mkXfceDerivation.override { xfce4-dev-tools = null; diff --git a/pkgs/desktops/xfce4-13/xfce4-clipman-plugin/default.nix b/pkgs/desktops/xfce4-13/xfce4-clipman-plugin/default.nix new file mode 100644 index 00000000000..28f63a6769d --- /dev/null +++ b/pkgs/desktops/xfce4-13/xfce4-clipman-plugin/default.nix @@ -0,0 +1,11 @@ +{ mkXfceDerivation, gtk3, libXtst, libxfce4ui, libxfce4util, xfce4-panel, xfconf, exo }: + +mkXfceDerivation rec { + category = "panel-plugins"; + pname = "xfce4-clipman-plugin"; + version = "1.4.2"; + rev = version; + sha256 = "1c2h1cs7pycf1rhpirmvb0l0dfvlacb7xgm31q9rxmhihnycd2na"; + + buildInputs = [ exo gtk3 libXtst libxfce4ui libxfce4util xfce4-panel xfconf ]; +} From 891fb1d5e0c1e504afc21798ce76a01540731a4a Mon Sep 17 00:00:00 2001 From: Anders Lundstedt Date: Thu, 2 Aug 2018 09:17:31 +0200 Subject: [PATCH 57/81] Plex: 1.13.0 -> 1.13.4 (#44327) --- pkgs/servers/plex/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/servers/plex/default.nix b/pkgs/servers/plex/default.nix index 57de5281fdf..6f7f9e74ec5 100644 --- a/pkgs/servers/plex/default.nix +++ b/pkgs/servers/plex/default.nix @@ -6,9 +6,9 @@ let plexPass = throw "Plex pass has been removed at upstream's request; please unset nixpkgs.config.plex.pass"; plexpkg = if enablePlexPass then plexPass else { - version = "1.13.0.5023"; - vsnHash = "31d3c0c65"; - sha256 = "b94d571bcd47bc3201fd7f54b910f5693cabd1b543d5d0b4705668b7b7c24602"; + version = "1.13.4.5271"; + vsnHash = "200287a06"; + sha256 = "c8aa459f680ad9db92f285dae2f3dcffbf082324e1b7ea2f356bdbe745fe6b8e"; }; in stdenv.mkDerivation rec { From 36765069a530c2e53170d0c183287395aa56ad53 Mon Sep 17 00:00:00 2001 From: Vladyslav M Date: Thu, 2 Aug 2018 10:36:33 +0300 Subject: [PATCH 58/81] libtorrentRasterbar: 1.1.7 -> 1.1.9 (#44335) --- .../libraries/libtorrent-rasterbar/default.nix | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/pkgs/development/libraries/libtorrent-rasterbar/default.nix b/pkgs/development/libraries/libtorrent-rasterbar/default.nix index 1cc42613859..39860414791 100644 --- a/pkgs/development/libraries/libtorrent-rasterbar/default.nix +++ b/pkgs/development/libraries/libtorrent-rasterbar/default.nix @@ -2,7 +2,7 @@ , boost, openssl, libtool, python, libiconv, geoip }: let - version = "1.1.7"; + version = "1.1.9"; formattedVersion = lib.replaceChars ["."] ["_"] version; boostPython = boost.override { enablePython = true; }; @@ -14,20 +14,9 @@ in stdenv.mkDerivation { owner = "arvidn"; repo = "libtorrent"; rev = "libtorrent-${formattedVersion}"; - sha256 = "073nb7yca5jg1i8z5h76qrmddl2hdy8fc1pnchkg574087an31r3"; + sha256 = "04w3pjzd6q9wplj1dcphylxn1i2b2x0iw1l0ma58ymh14swdah7a"; }; - patches = [ - (fetchpatch { - url = "https://github.com/arvidn/libtorrent/commit/64d6b4900448097b0157abb328621dd211e2947d.patch"; - sha256 = "1bdv0icqzbg1il60sckcly4y22lkdbkkwdjadwdzxv7cdj586bzd"; - }) - (fetchpatch { - url = "https://github.com/arvidn/libtorrent/commit/9cd0ae67e74a507c1b9ff9c057ee97dda38ccb81.patch"; - sha256 = "1cscqpc6fq9iwspww930dsxf0yb01bgrghzf5hdhl09a87r6q2zg"; - }) - ]; - enableParallelBuilding = true; nativeBuildInputs = [ automake autoconf libtool pkgconfig ]; buildInputs = [ boostPython openssl zlib python libiconv geoip ]; From 38e582c91d6a77d0579f0635de414ef0aa68dc02 Mon Sep 17 00:00:00 2001 From: Bignaux Ronan Date: Thu, 2 Aug 2018 09:49:54 +0200 Subject: [PATCH 59/81] photon: init at 1.0.7 (#44269) --- pkgs/tools/networking/photon/default.nix | 40 ++++++++++++++++++++++ pkgs/tools/networking/photon/destdir.patch | 20 +++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 62 insertions(+) create mode 100644 pkgs/tools/networking/photon/default.nix create mode 100644 pkgs/tools/networking/photon/destdir.patch diff --git a/pkgs/tools/networking/photon/default.nix b/pkgs/tools/networking/photon/default.nix new file mode 100644 index 00000000000..aa5a3e9f6f1 --- /dev/null +++ b/pkgs/tools/networking/photon/default.nix @@ -0,0 +1,40 @@ +{ stdenv, pythonPackages, fetchurl, makeWrapper }: + +with pythonPackages; +buildPythonApplication rec { + pname = "photon"; + version = "1.0.7"; + + src = fetchurl { + url = "https://github.com/s0md3v/Photon/archive/v${version}.tar.gz"; + sha256 = "0c5l1sbkkagfxmh8v7yvi6z58mhqbwjyr7fczb5qwxm7la42ah9y"; + }; + + patches = [ ./destdir.patch ]; + postPatch = '' + substituteInPlace photon.py --replace DESTDIR $out/share/photon + ''; + + dontBuild = true; + doCheck = false; + propagatedBuildInputs = [ + requests + urllib3 + ]; + + installPhase = '' + mkdir -p "$out"/{bin,share/photon} + cp -R photon.py core plugins $out/share/photon + + makeWrapper ${python.interpreter} $out/bin/photon \ + --set PYTHONPATH "$PYTHONPATH:$out/share/photon" \ + --add-flags "-O $out/share/photon/photon.py" + ''; + + meta = with stdenv.lib; { + description = "a lightning fast web crawler which extracts URLs, files, intel & endpoints from a target"; + homepage = https://github.com/s0md3v/Photon; + license = licenses.gpl3; + maintainers = with maintainers; [ genesis ]; + }; +} diff --git a/pkgs/tools/networking/photon/destdir.patch b/pkgs/tools/networking/photon/destdir.patch new file mode 100644 index 00000000000..e6cf997f2e7 --- /dev/null +++ b/pkgs/tools/networking/photon/destdir.patch @@ -0,0 +1,20 @@ +diff --git a/photon.py.old b/photon.py +index 92498e4..f7e2c3d 100644 +--- a/photon.py.old ++++ b/photon.py +@@ -185,7 +185,7 @@ if args.user_agent: + user_agents = args.user_agent.split(',') + else: + user_agents = [] +- with open(os.getcwd() + '/core/user-agents.txt', 'r') as uas: ++ with open('DESTDIR/core/user-agents.txt', 'r') as uas: + for agent in uas: + user_agents.append(agent.strip('\n')) + +@@ -534,4 +534,4 @@ if args.export: + if not colors: # if colors are disabled + print ('%s Results saved in %s directory' % (good, output_dir)) + else: +- print ('%s Results saved in \033[;1m%s\033[0m directory' % (good, output_dir)) +\ No newline at end of file ++ print ('%s Results saved in \033[;1m%s\033[0m directory' % (good, output_dir)) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0ae3f49c443..3aa9a1bb35c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1444,6 +1444,8 @@ with pkgs; pbzx = callPackage ../tools/compression/pbzx { }; + photon = callPackage ../tools/networking/photon { }; + playerctl = callPackage ../tools/audio/playerctl { }; ps_mem = callPackage ../tools/system/ps_mem { }; From af4448ef4d0f337ff0ff92b4438556e137804feb Mon Sep 17 00:00:00 2001 From: Christopher Birkbeck Date: Thu, 2 Aug 2018 04:01:30 -0400 Subject: [PATCH 60/81] README.md: Add link to the new discourse forum (#44334) --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9714bbd1ab3..96902b9ab33 100644 --- a/README.md +++ b/README.md @@ -37,5 +37,6 @@ For pull-requests, please rebase onto nixpkgs `master`. Communication: +* [Discourse Forum](https://discourse.nixos.org/) * [Mailing list](https://groups.google.com/forum/#!forum/nix-devel) * [IRC - #nixos on freenode.net](irc://irc.freenode.net/#nixos) From b908b7d68d17d872cd5befa30a69f0844e0d48fa Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Thu, 2 Aug 2018 00:16:11 +0200 Subject: [PATCH 61/81] globalarrays: init at 5.7 --- .../libraries/globalarrays/default.nix | 42 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 44 insertions(+) create mode 100644 pkgs/development/libraries/globalarrays/default.nix diff --git a/pkgs/development/libraries/globalarrays/default.nix b/pkgs/development/libraries/globalarrays/default.nix new file mode 100644 index 00000000000..2da5474eb9d --- /dev/null +++ b/pkgs/development/libraries/globalarrays/default.nix @@ -0,0 +1,42 @@ +{ stdenv, pkgs, fetchFromGitHub, automake, autoconf, libtool +, openblas, gfortran, openssh, openmpi +} : + +let + version = "5.7"; + +in stdenv.mkDerivation { + name = "globalarrays-${version}"; + + src = fetchFromGitHub { + owner = "GlobalArrays"; + repo = "ga"; + rev = "v${version}"; + sha256 = "07i2idaas7pq3in5mdqq5ndvxln5q87nyfgk3vzw85r72c4fq5jh"; + }; + + nativeBuildInputs = [ automake autoconf libtool ]; + buildInputs = [ openmpi openblas gfortran openssh ]; + + preConfigure = '' + autoreconf -ivf + configureFlagsArray+=( "--enable-i8" \ + "--with-mpi" \ + "--with-mpi3" \ + "--enable-eispack" \ + "--enable-underscoring" \ + "--with-blas8=${openblas}/lib -lopenblas" ) + ''; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Global Arrays Programming Models"; + homepage = http://hpc.pnl.gov/globalarrays/; + maintainers = [ maintainers.markuskowa ]; + license = licenses.bsd3; + platforms = platforms.linux; + }; +} + + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 42d38772772..5b179ef8490 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1314,6 +1314,8 @@ with pkgs; glide = callPackage ../development/tools/glide { }; + globalarrays = callPackage ../development/libraries/globalarrays { }; + glock = callPackage ../development/tools/glock { }; glslviewer = callPackage ../development/tools/glslviewer { From 484473b184ca087f57303be901139d01f142db56 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Thu, 2 Aug 2018 00:24:55 +0200 Subject: [PATCH 62/81] openmolcas: init at 20180529 --- .../science/chemistry/openmolcas/default.nix | 72 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 74 insertions(+) create mode 100644 pkgs/applications/science/chemistry/openmolcas/default.nix diff --git a/pkgs/applications/science/chemistry/openmolcas/default.nix b/pkgs/applications/science/chemistry/openmolcas/default.nix new file mode 100644 index 00000000000..5e1628a4fba --- /dev/null +++ b/pkgs/applications/science/chemistry/openmolcas/default.nix @@ -0,0 +1,72 @@ +{ stdenv, pkgs, fetchFromGitLab, cmake, gfortran, perl +, openblas, hdf5-cpp, python3, texlive +, armadillo, openmpi, globalarrays, openssh +, makeWrapper +} : + +let + version = "20180529"; + gitLabRev = "b6b9ceffccae0dd7f14c099468334fee0b1071fc"; + + python = python3.withPackages (ps : with ps; [ six pyparsing ]); + +in stdenv.mkDerivation { + name = "openmolcas-${version}"; + + src = fetchFromGitLab { + owner = "Molcas"; + repo = "OpenMolcas"; + rev = gitLabRev; + sha256 = "1wbjjdv07lg1x4kdnf28anyrjgy33gdgrd5d7zi1c97nz7vhdjaz"; + }; + + nativeBuildInputs = [ perl cmake texlive.combined.scheme-minimal makeWrapper ]; + buildInputs = [ + gfortran + openblas + hdf5-cpp + python + armadillo + openmpi + globalarrays + openssh + ]; + + enableParallelBuilding = true; + + cmakeFlags = [ + "-DOPENMP=ON" + "-DGA=ON" + "-DMPI=ON" + "-DLINALG=OpenBLAS" + "-DTOOLS=ON" + "-DHDF5=ON" + "-DFDE=ON" + "-DOPENBLASROOT=${openblas}" + ]; + + GAROOT=globalarrays; + + postConfigure = '' + # The Makefile will install pymolcas during the build grrr. + mkdir -p $out/bin + export PATH=$PATH:$out/bin + ''; + + postFixup = '' + # Wrong store path in shebang (no Python pkgs), force re-patching + sed -i "1s:/.*:/usr/bin/env python:" $out/bin/pymolcas + patchShebangs $out/bin + + wrapProgram $out/bin/pymolcas --set MOLCAS $out + ''; + + meta = with stdenv.lib; { + description = "Advanced quantum chemistry software package"; + homepage = https://gitlab.com/Molcas/OpenMolcas; + maintainers = [ maintainers.markuskowa ]; + license = licenses.lgpl21; + platforms = platforms.linux; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5b179ef8490..e09406cdefe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -20278,6 +20278,8 @@ with pkgs; octopus = callPackage ../applications/science/chemistry/octopus { openblas=openblasCompat; }; + openmolcas = callPackage ../applications/science/chemistry/openmolcas { }; + pymol = callPackage ../applications/science/chemistry/pymol { }; ### SCIENCE/GEOMETRY From 742a50dafdb7dd9bd16fd6c400e145e62b8b295a Mon Sep 17 00:00:00 2001 From: Serge Bazanski Date: Thu, 2 Aug 2018 09:18:47 +0100 Subject: [PATCH 63/81] trellis: init 2018.08.01 (#44328) * trellis: init 2018.08.01 * trellis: move boost to buildInputs * trellis: remove leftover debug clause --- maintainers/maintainer-list.nix | 5 +++ pkgs/development/tools/trellis/default.nix | 49 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 3 files changed, 56 insertions(+) create mode 100644 pkgs/development/tools/trellis/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f628d3d8d71..ec601841abb 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3197,6 +3197,11 @@ email = "patrick.callahan@latitudeengineering.com"; name = "Patrick Callahan"; }; + q3k = { + email = "q3k@q3k.org"; + github = "q3k"; + name = "Serge Bazanski"; + }; qknight = { email = "js@lastlog.de"; github = "qknight"; diff --git a/pkgs/development/tools/trellis/default.nix b/pkgs/development/tools/trellis/default.nix new file mode 100644 index 00000000000..892552559aa --- /dev/null +++ b/pkgs/development/tools/trellis/default.nix @@ -0,0 +1,49 @@ +{ stdenv, fetchFromGitHub, python3, cmake, boost }: + +let + trellisdb = fetchFromGitHub { + owner = "SymbiFlow"; + repo = "prjtrellis-db"; + rev = "06b429ddb7fd8ec1e3f2b35de2e94b4853cf2835"; + sha256 = "07bsgw5x3gq0jcn9j4g7q9xvibvz6j2arjnvgyrxnrg30ri9q173"; + }; +in +stdenv.mkDerivation rec { + name = "trellis-${version}"; + version = "2018.08.01"; + + buildInputs = [ + (boost.override { python = python3; enablePython = true; }) + ]; + + nativeBuildInputs = [ + cmake python3 + ]; + + src = fetchFromGitHub { + owner = "SymbiFlow"; + repo = "prjtrellis"; + rev = "fff9532fe59bf9e38b44f029ce4a06c607a9ee78"; + sha256 = "0ycw9fjf6428sf5x8x5szn8fha79610nf7nn8kmibgmz9868yv30"; + }; + + preConfigure = '' + source environment.sh + cp -RT "${trellisdb}" database + cd libtrellis + ''; + + meta = { + description = "Documentation and tools for Lattice ECP5 FPGAs"; + longDescription = '' + Project Trellis documents the Lattice ECP5 architecture + to enable development of open-source tools. Its goal is + to provide sufficient information to develop a free and + open Verilog to bitstream toolchain for these devices. + ''; + homepage = https://github.com/SymbiFlow/prjtrellis; + license = stdenv.lib.licenses.isc; + maintainers = with stdenv.lib.maintainers; [ q3k ]; + platforms = stdenv.lib.platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 3aa9a1bb35c..93e17b11488 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8624,6 +8624,8 @@ with pkgs; travis = callPackage ../development/tools/misc/travis { }; + trellis = callPackage ../development/tools/trellis { }; + tweak = callPackage ../applications/editors/tweak { }; uhd = callPackage ../development/tools/misc/uhd { }; From 219970b494d553c73b22723ff993df00c513ea71 Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Thu, 2 Aug 2018 10:28:57 +0200 Subject: [PATCH 64/81] cargo-update: init at 1.5.2 (#40575) --- .../cargo-update/cargo-update.nix | 1334 +++++++++++++++++ .../cargo-update/default.nix | 27 + pkgs/top-level/all-packages.nix | 1 + 3 files changed, 1362 insertions(+) create mode 100644 pkgs/tools/package-management/cargo-update/cargo-update.nix create mode 100644 pkgs/tools/package-management/cargo-update/default.nix diff --git a/pkgs/tools/package-management/cargo-update/cargo-update.nix b/pkgs/tools/package-management/cargo-update/cargo-update.nix new file mode 100644 index 00000000000..83fdaad5bfd --- /dev/null +++ b/pkgs/tools/package-management/cargo-update/cargo-update.nix @@ -0,0 +1,1334 @@ +# Generated by carnix 0.6.6: carnix -o cargo-update.nix --src ./. Cargo.lock --standalone +{ lib, buildPlatform, buildRustCrate, fetchgit }: +let kernel = buildPlatform.parsed.kernel.name; + abi = buildPlatform.parsed.abi.name; + include = includedFiles: src: builtins.filterSource (path: type: + lib.lists.any (f: + let p = toString (src + ("/" + f)); in + (path == p) || (type == "directory" && lib.strings.hasPrefix path p) + ) includedFiles + ) src; + updateFeatures = f: up: functions: builtins.deepSeq f (lib.lists.foldl' (features: fun: fun features) (lib.attrsets.recursiveUpdate f up) functions); + mapFeatures = features: map (fun: fun { features = features; }); + mkFeatures = feat: lib.lists.foldl (features: featureName: + if feat.${featureName} or false then + [ featureName ] ++ features + else + features + ) [] (builtins.attrNames feat); +in +rec { + cargo_update = f: cargo_update_1_5_2 { features = cargo_update_1_5_2_features { cargo_update_1_5_2 = f; }; }; + advapi32_sys_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "advapi32-sys"; + version = "0.2.0"; + authors = [ "Peter Atashian " ]; + sha256 = "1l6789hkz2whd9gklwz1m379kcvyizaj8nnzj3rn4a5h79yg59v7"; + libName = "advapi32"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + aho_corasick_0_6_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "aho-corasick"; + version = "0.6.4"; + authors = [ "Andrew Gallant " ]; + sha256 = "189v919mp6rzzgjp1khpn4zlq8ls81gh43x1lmc8kbkagdlpq888"; + libName = "aho_corasick"; + crateBin = [ { name = "aho-corasick-dot"; } ]; + inherit dependencies buildDependencies features; + }; + ansi_term_0_11_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ansi_term"; + version = "0.11.0"; + authors = [ "ogham@bsago.me" "Ryan Scheel (Havvy) " "Josh Triplett " ]; + sha256 = "08fk0p2xvkqpmz3zlrwnf6l8sj2vngw464rvzspzp31sbgxbwm4v"; + inherit dependencies buildDependencies features; + }; + array_tool_1_0_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "array_tool"; + version = "1.0.3"; + authors = [ "Daniel P. Clark <6ftdan@gmail.com>" ]; + sha256 = "0igg0zvhcvjc15vgg6vjxjfifn2w4scjq9c8i1b2abv1sy2cgc86"; + inherit dependencies buildDependencies features; + }; + atty_0_2_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "atty"; + version = "0.2.10"; + authors = [ "softprops " ]; + sha256 = "1h26lssj8rwaz0xhwwm5a645r49yly211amfmd243m3m0jl49i2c"; + inherit dependencies buildDependencies features; + }; + bitflags_0_9_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bitflags"; + version = "0.9.1"; + authors = [ "The Rust Project Developers" ]; + sha256 = "18h073l5jd88rx4qdr95fjddr9rk79pb1aqnshzdnw16cfmb9rws"; + inherit dependencies buildDependencies features; + }; + bitflags_1_0_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "bitflags"; + version = "1.0.3"; + authors = [ "The Rust Project Developers" ]; + sha256 = "162p4w4h1ad76awq6b5yivmls3d50m9cl27d8g588lsps6g8s5rw"; + inherit dependencies buildDependencies features; + }; + cargo_update_1_5_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cargo-update"; + version = "1.5.2"; + authors = [ "nabijaczleweli " "Yann Simon " "ven " "Cat Plus Plus " "Liigo " "azyobuzin " "Tatsuyuki Ishi " "Tom Prince " "Mateusz Mikuła " "sinkuu " "Alex Burka " "Matthias Krüger " "Daniel Holbert " ]; + src = ./.; + crateBin = [ { name = "cargo-install-update"; path = "src/main.rs"; } { name = "cargo-install-update-config"; path = "src/main-config.rs"; } ]; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + cc_1_0_15_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cc"; + version = "1.0.15"; + authors = [ "Alex Crichton " ]; + sha256 = "1zmcv4zf888byhay2qakqlc9b8snhy5ccfs35zb6flywmlj8f2c0"; + inherit dependencies buildDependencies features; + }; + clap_2_31_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "clap"; + version = "2.31.2"; + authors = [ "Kevin K. " ]; + sha256 = "0r24ziw85a8y1sf2l21y4mvv5qan3rjafcshpyfsjfadqfxsij72"; + inherit dependencies buildDependencies features; + }; + cmake_0_1_31_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "cmake"; + version = "0.1.31"; + authors = [ "Alex Crichton " ]; + sha256 = "18j5fci486s7v5yjvv2ik3nsp4lk0fn0b8js5k6c4dviml476vz2"; + inherit dependencies buildDependencies features; + }; + curl_sys_0_4_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "curl-sys"; + version = "0.4.5"; + authors = [ "Carl Lerche " "Alex Crichton " ]; + sha256 = "149nswzwzr1lx0ki8awbppm7kf8nb268pc3zhzmvbs5fliq075qw"; + libPath = "lib.rs"; + libName = "curl_sys"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + embed_resource_1_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "embed-resource"; + version = "1.1.4"; + authors = [ "nabijaczleweli " "Cat Plus Plus " "Liigo " "azyobuzin " "Peter Atashian " ]; + sha256 = "1n07qys5904mkcididfgh1m6g8nfgl93pdpygaqn4dkhm5cxssfd"; + inherit dependencies buildDependencies features; + }; + fuchsia_zircon_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fuchsia-zircon"; + version = "0.3.3"; + authors = [ "Raph Levien " ]; + sha256 = "0jrf4shb1699r4la8z358vri8318w4mdi6qzfqy30p2ymjlca4gk"; + inherit dependencies buildDependencies features; + }; + fuchsia_zircon_sys_0_3_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "fuchsia-zircon-sys"; + version = "0.3.3"; + authors = [ "Raph Levien " ]; + sha256 = "08jp1zxrm9jbrr6l26bjal4dbm8bxfy57ickdgibsqxr1n9j3hf5"; + inherit dependencies buildDependencies features; + }; + git2_0_6_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "git2"; + version = "0.6.11"; + authors = [ "Alex Crichton " ]; + sha256 = "0jznfnk2n7nk250cj52k3mxjqgan7gwyrh3h7dkhqqs2zfx4ylvd"; + inherit dependencies buildDependencies features; + }; + idna_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "idna"; + version = "0.1.4"; + authors = [ "The rust-url developers" ]; + sha256 = "15j44qgjx1skwg9i7f4cm36ni4n99b1ayx23yxx7axxcw8vjf336"; + inherit dependencies buildDependencies features; + }; + json_0_11_13_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "json"; + version = "0.11.13"; + authors = [ "Maciej Hirsz " ]; + sha256 = "03227jaj6rjlfigsk4rmc0b83b1djlh42grfjaxk0d2xvgdb893i"; + inherit dependencies buildDependencies features; + }; + kernel32_sys_0_2_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "kernel32-sys"; + version = "0.2.2"; + authors = [ "Peter Atashian " ]; + sha256 = "1lrw1hbinyvr6cp28g60z97w32w8vsk6pahk64pmrv2fmby8srfj"; + libName = "kernel32"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + lazy_static_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazy_static"; + version = "1.0.0"; + authors = [ "Marvin Löbel " ]; + sha256 = "0wfvqyr2nvx2mbsrscg5y7gfa9skhb8p72ayanl8vl49pw24v4fh"; + inherit dependencies buildDependencies features; + }; + lazysort_0_2_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "lazysort"; + version = "0.2.0"; + authors = [ "Ben Ashford" ]; + sha256 = "0dv9bryg10hj8cycmdxpcc9y14i958yjr2hm4c3i9168q0y7njdz"; + inherit dependencies buildDependencies features; + }; + libc_0_2_40_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libc"; + version = "0.2.40"; + authors = [ "The Rust Project Developers" ]; + sha256 = "1xfc39237ldzgr8x8wcflgdr8zssi3wif7g2zxc02d94gzkjsw83"; + inherit dependencies buildDependencies features; + }; + libgit2_sys_0_6_19_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libgit2-sys"; + version = "0.6.19"; + authors = [ "Alex Crichton " ]; + sha256 = "13044s468adsx3sq4qvr4vnbr6nr5hq23lls8wn0a415jdl3qbcg"; + libPath = "lib.rs"; + libName = "libgit2_sys"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + libssh2_sys_0_2_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libssh2-sys"; + version = "0.2.7"; + authors = [ "Alex Crichton " ]; + sha256 = "1mr683x23l7f0mmc10vd5fnarfqpd7wqxs3rxyhq2igrh3fn0m2v"; + libPath = "lib.rs"; + libName = "libssh2_sys"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + libz_sys_1_0_18_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "libz-sys"; + version = "1.0.18"; + authors = [ "Alex Crichton " ]; + sha256 = "0lr0rvmmfbfa4g7mhi0l93i8jq86pfcssdv4d40kzfy45ajdcgim"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + matches_0_1_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "matches"; + version = "0.1.6"; + authors = [ "Simon Sapin " ]; + sha256 = "1zlrqlbvzxdil8z8ial2ihvxjwvlvg3g8dr0lcdpsjclkclasjan"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + memchr_2_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "memchr"; + version = "2.0.1"; + authors = [ "Andrew Gallant " "bluss" ]; + sha256 = "0ls2y47rjwapjdax6bp974gdp06ggm1v8d1h69wyydmh1nhgm5gr"; + inherit dependencies buildDependencies features; + }; + openssl_probe_0_1_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "openssl-probe"; + version = "0.1.2"; + authors = [ "Alex Crichton " ]; + sha256 = "1a89fznx26vvaxyrxdvgf6iwai5xvs6xjvpjin68fgvrslv6n15a"; + inherit dependencies buildDependencies features; + }; + openssl_sys_0_9_30_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "openssl-sys"; + version = "0.9.30"; + authors = [ "Alex Crichton " "Steven Fackler " ]; + sha256 = "1p5y3md4crbmg0lcfkdl8pp3kf9k82vghjy28x7ix5mji3j2p87a"; + inherit dependencies buildDependencies features; + }; + percent_encoding_1_0_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "percent-encoding"; + version = "1.0.1"; + authors = [ "The rust-url developers" ]; + sha256 = "04ahrp7aw4ip7fmadb0bknybmkfav0kk0gw4ps3ydq5w6hr0ib5i"; + libPath = "lib.rs"; + inherit dependencies buildDependencies features; + }; + pkg_config_0_3_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "pkg-config"; + version = "0.3.11"; + authors = [ "Alex Crichton " ]; + sha256 = "177kbs465skvzmb2d9bh7aa5lqm0npfig12awcbd34c6k6nlyr5h"; + inherit dependencies buildDependencies features; + }; + proc_macro2_0_3_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "proc-macro2"; + version = "0.3.8"; + authors = [ "Alex Crichton " ]; + sha256 = "0ixnavxcd6sk1861hjgnfxly7qgq4ch1iplsx0nclvjjkwg39qdc"; + inherit dependencies buildDependencies features; + }; + quote_0_5_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "quote"; + version = "0.5.2"; + authors = [ "David Tolnay " ]; + sha256 = "062cnp12j09x0z0nj4j5pfh26h35zlrks07asxgqhfhcym1ba595"; + inherit dependencies buildDependencies features; + }; + rand_0_3_22_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rand"; + version = "0.3.22"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0wrj12acx7l4hr7ag3nz8b50yhp8ancyq988bzmnnsxln67rsys0"; + inherit dependencies buildDependencies features; + }; + rand_0_4_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "rand"; + version = "0.4.2"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0h8pkg23wb67i8904sm76iyr1jlmhklb85vbpz9c9191a24xzkfm"; + inherit dependencies buildDependencies features; + }; + redox_syscall_0_1_37_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "redox_syscall"; + version = "0.1.37"; + authors = [ "Jeremy Soller " ]; + sha256 = "0qa0jl9cr3qp80an8vshp2mcn8rzvwiavs1398hq1vsjw7pc3h2v"; + libName = "syscall"; + inherit dependencies buildDependencies features; + }; + redox_termios_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "redox_termios"; + version = "0.1.1"; + authors = [ "Jeremy Soller " ]; + sha256 = "04s6yyzjca552hdaqlvqhp3vw0zqbc304md5czyd3axh56iry8wh"; + libPath = "src/lib.rs"; + inherit dependencies buildDependencies features; + }; + regex_0_2_11_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex"; + version = "0.2.11"; + authors = [ "The Rust Project Developers" ]; + sha256 = "0r50cymxdqp0fv1dxd22mjr6y32q450nwacd279p9s7lh0cafijj"; + inherit dependencies buildDependencies features; + }; + regex_syntax_0_5_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "regex-syntax"; + version = "0.5.6"; + authors = [ "The Rust Project Developers" ]; + sha256 = "10vf3r34bgjnbrnqd5aszn35bjvm8insw498l1vjy8zx5yms3427"; + inherit dependencies buildDependencies features; + }; + semver_0_9_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "semver"; + version = "0.9.0"; + authors = [ "Steve Klabnik " "The Rust Project Developers" ]; + sha256 = "0azak2lb2wc36s3x15az886kck7rpnksrw14lalm157rg9sc9z63"; + inherit dependencies buildDependencies features; + }; + semver_parser_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "semver-parser"; + version = "0.7.0"; + authors = [ "Steve Klabnik " ]; + sha256 = "1da66c8413yakx0y15k8c055yna5lyb6fr0fw9318kdwkrk5k12h"; + inherit dependencies buildDependencies features; + }; + serde_1_0_55_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde"; + version = "1.0.55"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "1vpslfs3j8xbl3srmzppa34h0908q0sj4hyrmlrpklhldii5vbqh"; + inherit dependencies buildDependencies features; + }; + serde_derive_1_0_55_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "serde_derive"; + version = "1.0.55"; + authors = [ "Erick Tryzelaar " "David Tolnay " ]; + sha256 = "1ggcidzgi51l3lsdf8gg46ivn61py8rnrf6garpcxwmdbfcc8lgk"; + procMacro = true; + inherit dependencies buildDependencies features; + }; + strsim_0_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "strsim"; + version = "0.7.0"; + authors = [ "Danny Guo " ]; + sha256 = "0fy0k5f2705z73mb3x9459bpcvrx4ky8jpr4zikcbiwan4bnm0iv"; + inherit dependencies buildDependencies features; + }; + syn_0_13_10_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "syn"; + version = "0.13.10"; + authors = [ "David Tolnay " ]; + sha256 = "0dbvdxlpvx7f8iw5cbv88vbyszp72df8y8zhl36gj73g1xwdqfhx"; + inherit dependencies buildDependencies features; + }; + tabwriter_1_0_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "tabwriter"; + version = "1.0.4"; + authors = [ "Andrew Gallant " ]; + sha256 = "02yk7db101lqn24wnm15yy8xb095kv9bnkdvyj7vqhx40vixyibd"; + inherit dependencies buildDependencies features; + }; + termion_1_5_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "termion"; + version = "1.5.1"; + authors = [ "ticki " "gycos " "IGI-111 " ]; + sha256 = "02gq4vd8iws1f3gjrgrgpajsk2bk43nds5acbbb4s8dvrdvr8nf1"; + inherit dependencies buildDependencies features; + }; + textwrap_0_9_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "textwrap"; + version = "0.9.0"; + authors = [ "Martin Geisler " ]; + sha256 = "18jg79ndjlwndz01mlbh82kkr2arqm658yn5kwp65l5n1hz8w4yb"; + inherit dependencies buildDependencies features; + }; + thread_local_0_3_5_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "thread_local"; + version = "0.3.5"; + authors = [ "Amanieu d'Antras " ]; + sha256 = "0mkp0sp91aqsk7brgygai4igv751r1754rsxn37mig3ag5rx8np6"; + inherit dependencies buildDependencies features; + }; + toml_0_4_6_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "toml"; + version = "0.4.6"; + authors = [ "Alex Crichton " ]; + sha256 = "0rfl7lyb5f67spk69s604nw87f97g7fvv36hj9v88qlr2bwyrn8v"; + inherit dependencies buildDependencies features; + }; + ucd_util_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "ucd-util"; + version = "0.1.1"; + authors = [ "Andrew Gallant " ]; + sha256 = "02a8h3siipx52b832xc8m8rwasj6nx9jpiwfldw8hp6k205hgkn0"; + inherit dependencies buildDependencies features; + }; + unicode_bidi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-bidi"; + version = "0.3.4"; + authors = [ "The Servo Project Developers" ]; + sha256 = "0lcd6jasrf8p9p0q20qyf10c6xhvw40m2c4rr105hbk6zy26nj1q"; + libName = "unicode_bidi"; + inherit dependencies buildDependencies features; + }; + unicode_normalization_0_1_7_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-normalization"; + version = "0.1.7"; + authors = [ "kwantam " ]; + sha256 = "1da2hv800pd0wilmn4idwpgv5p510hjxizjcfv6xzb40xcsjd8gs"; + inherit dependencies buildDependencies features; + }; + unicode_width_0_1_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-width"; + version = "0.1.4"; + authors = [ "kwantam " ]; + sha256 = "1rp7a04icn9y5c0lm74nrd4py0rdl0af8bhdwq7g478n1xifpifl"; + inherit dependencies buildDependencies features; + }; + unicode_xid_0_1_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unicode-xid"; + version = "0.1.0"; + authors = [ "erick.tryzelaar " "kwantam " ]; + sha256 = "05wdmwlfzxhq3nhsxn6wx4q8dhxzzfb9szsz6wiw092m1rjj01zj"; + inherit dependencies buildDependencies features; + }; + unreachable_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "unreachable"; + version = "1.0.0"; + authors = [ "Jonathan Reem " ]; + sha256 = "1am8czbk5wwr25gbp2zr007744fxjshhdqjz9liz7wl4pnv3whcf"; + inherit dependencies buildDependencies features; + }; + url_1_7_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "url"; + version = "1.7.0"; + authors = [ "The rust-url developers" ]; + sha256 = "0333ynhkp47hna88aamz1zpk4lxyzx4ab9n7yhc75g14w27cv8jj"; + inherit dependencies buildDependencies features; + }; + utf8_ranges_1_0_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "utf8-ranges"; + version = "1.0.0"; + authors = [ "Andrew Gallant " ]; + sha256 = "0rzmqprwjv9yp1n0qqgahgm24872x6c0xddfym5pfndy7a36vkn0"; + inherit dependencies buildDependencies features; + }; + vcpkg_0_2_3_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "vcpkg"; + version = "0.2.3"; + authors = [ "Jim McGrath " ]; + sha256 = "0achi8sfy0wm4q04gj7nwpq9xfx8ynk6vv4r12a3ijg26hispq0c"; + inherit dependencies buildDependencies features; + }; + vec_map_0_8_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "vec_map"; + version = "0.8.1"; + authors = [ "Alex Crichton " "Jorge Aparicio " "Alexis Beingessner " "Brian Anderson <>" "tbu- <>" "Manish Goregaokar <>" "Aaron Turon " "Adolfo Ochagavía <>" "Niko Matsakis <>" "Steven Fackler <>" "Chase Southwood " "Eduard Burtescu <>" "Florian Wilkens <>" "Félix Raimundo <>" "Tibor Benke <>" "Markus Siemens " "Josh Branchaud " "Huon Wilson " "Corey Farwell " "Aaron Liblong <>" "Nick Cameron " "Patrick Walton " "Felix S Klock II <>" "Andrew Paseltiner " "Sean McArthur " "Vadim Petrochenkov <>" ]; + sha256 = "1jj2nrg8h3l53d43rwkpkikq5a5x15ms4rf1rw92hp5lrqhi8mpi"; + inherit dependencies buildDependencies features; + }; + void_1_0_2_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "void"; + version = "1.0.2"; + authors = [ "Jonathan Reem " ]; + sha256 = "0h1dm0dx8dhf56a83k68mijyxigqhizpskwxfdrs1drwv2cdclv3"; + inherit dependencies buildDependencies features; + }; + winapi_0_2_8_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi"; + version = "0.2.8"; + authors = [ "Peter Atashian " ]; + sha256 = "0a45b58ywf12vb7gvj6h3j264nydynmzyqz8d8rqxsj6icqv82as"; + inherit dependencies buildDependencies features; + }; + winapi_0_3_4_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi"; + version = "0.3.4"; + authors = [ "Peter Atashian " ]; + sha256 = "1qbrf5dcnd8j36cawby5d9r5vx07r0l4ryf672pfncnp8895k9lx"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + winapi_build_0_1_1_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-build"; + version = "0.1.1"; + authors = [ "Peter Atashian " ]; + sha256 = "1lxlpi87rkhxcwp2ykf1ldw3p108hwm24nywf3jfrvmff4rjhqga"; + libName = "build"; + inherit dependencies buildDependencies features; + }; + winapi_i686_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-i686-pc-windows-gnu"; + version = "0.4.0"; + authors = [ "Peter Atashian " ]; + sha256 = "05ihkij18r4gamjpxj4gra24514can762imjzlmak5wlzidplzrp"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + winapi_x86_64_pc_windows_gnu_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winapi-x86_64-pc-windows-gnu"; + version = "0.4.0"; + authors = [ "Peter Atashian " ]; + sha256 = "0n1ylmlsb8yg1v583i4xy0qmqg42275flvbc51hdqjjfjcl9vlbj"; + build = "build.rs"; + inherit dependencies buildDependencies features; + }; + winreg_0_4_0_ = { dependencies?[], buildDependencies?[], features?[] }: buildRustCrate { + crateName = "winreg"; + version = "0.4.0"; + authors = [ "Igor Shaula " ]; + sha256 = "1zhk2a6qwyfpvwjd929qs0y6zzxl7g90pnz59qhazfg72m36iwda"; + inherit dependencies buildDependencies features; + }; + advapi32_sys_0_2_0 = { features?(advapi32_sys_0_2_0_features {}) }: advapi32_sys_0_2_0_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + advapi32_sys_0_2_0_features = f: updateFeatures f (rec { + advapi32_sys_0_2_0.default = (f.advapi32_sys_0_2_0.default or true); + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; + aho_corasick_0_6_4 = { features?(aho_corasick_0_6_4_features {}) }: aho_corasick_0_6_4_ { + dependencies = mapFeatures features ([ memchr_2_0_1 ]); + }; + aho_corasick_0_6_4_features = f: updateFeatures f (rec { + aho_corasick_0_6_4.default = (f.aho_corasick_0_6_4.default or true); + memchr_2_0_1.default = true; + }) [ memchr_2_0_1_features ]; + ansi_term_0_11_0 = { features?(ansi_term_0_11_0_features {}) }: ansi_term_0_11_0_ { + dependencies = (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + ansi_term_0_11_0_features = f: updateFeatures f (rec { + ansi_term_0_11_0.default = (f.ansi_term_0_11_0.default or true); + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.errhandlingapi = true; + winapi_0_3_4.processenv = true; + }) [ winapi_0_3_4_features ]; + array_tool_1_0_3 = { features?(array_tool_1_0_3_features {}) }: array_tool_1_0_3_ {}; + array_tool_1_0_3_features = f: updateFeatures f (rec { + array_tool_1_0_3.default = (f.array_tool_1_0_3.default or true); + }) []; + atty_0_2_10 = { features?(atty_0_2_10_features {}) }: atty_0_2_10_ { + dependencies = (if kernel == "redox" then mapFeatures features ([ termion_1_5_1 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + }; + atty_0_2_10_features = f: updateFeatures f (rec { + atty_0_2_10.default = (f.atty_0_2_10.default or true); + libc_0_2_40.default = (f.libc_0_2_40.default or false); + termion_1_5_1.default = true; + winapi_0_3_4.consoleapi = true; + winapi_0_3_4.default = true; + winapi_0_3_4.minwinbase = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.processenv = true; + winapi_0_3_4.winbase = true; + }) [ termion_1_5_1_features libc_0_2_40_features winapi_0_3_4_features ]; + bitflags_0_9_1 = { features?(bitflags_0_9_1_features {}) }: bitflags_0_9_1_ { + features = mkFeatures (features.bitflags_0_9_1 or {}); + }; + bitflags_0_9_1_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = (f.bitflags_0_9_1.default or true); + bitflags_0_9_1.example_generated = + (f.bitflags_0_9_1.example_generated or false) || + (f.bitflags_0_9_1.default or false) || + (bitflags_0_9_1.default or false); + }) []; + bitflags_1_0_3 = { features?(bitflags_1_0_3_features {}) }: bitflags_1_0_3_ { + features = mkFeatures (features.bitflags_1_0_3 or {}); + }; + bitflags_1_0_3_features = f: updateFeatures f (rec { + bitflags_1_0_3.default = (f.bitflags_1_0_3.default or true); + }) []; + cargo_update_1_5_2 = { features?(cargo_update_1_5_2_features {}) }: cargo_update_1_5_2_ { + dependencies = mapFeatures features ([ array_tool_1_0_3 clap_2_31_2 git2_0_6_11 json_0_11_13 lazy_static_1_0_0 lazysort_0_2_0 regex_0_2_11 semver_0_9_0 serde_1_0_55 serde_derive_1_0_55 tabwriter_1_0_4 toml_0_4_6 url_1_7_0 ]); + buildDependencies = mapFeatures features ([ embed_resource_1_1_4 ]); + }; + cargo_update_1_5_2_features = f: updateFeatures f (rec { + array_tool_1_0_3.default = true; + cargo_update_1_5_2.default = (f.cargo_update_1_5_2.default or true); + clap_2_31_2.default = true; + embed_resource_1_1_4.default = true; + git2_0_6_11.default = true; + json_0_11_13.default = true; + lazy_static_1_0_0.default = true; + lazysort_0_2_0.default = true; + regex_0_2_11.default = true; + semver_0_9_0.default = true; + semver_0_9_0.serde = true; + serde_1_0_55.default = true; + serde_derive_1_0_55.default = true; + tabwriter_1_0_4.default = true; + toml_0_4_6.default = true; + url_1_7_0.default = true; + }) [ array_tool_1_0_3_features clap_2_31_2_features git2_0_6_11_features json_0_11_13_features lazy_static_1_0_0_features lazysort_0_2_0_features regex_0_2_11_features semver_0_9_0_features serde_1_0_55_features serde_derive_1_0_55_features tabwriter_1_0_4_features toml_0_4_6_features url_1_7_0_features embed_resource_1_1_4_features ]; + cc_1_0_15 = { features?(cc_1_0_15_features {}) }: cc_1_0_15_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.cc_1_0_15 or {}); + }; + cc_1_0_15_features = f: updateFeatures f (rec { + cc_1_0_15.default = (f.cc_1_0_15.default or true); + cc_1_0_15.rayon = + (f.cc_1_0_15.rayon or false) || + (f.cc_1_0_15.parallel or false) || + (cc_1_0_15.parallel or false); + }) []; + clap_2_31_2 = { features?(clap_2_31_2_features {}) }: clap_2_31_2_ { + dependencies = mapFeatures features ([ bitflags_1_0_3 textwrap_0_9_0 unicode_width_0_1_4 ] + ++ (if features.clap_2_31_2.atty or false then [ atty_0_2_10 ] else []) + ++ (if features.clap_2_31_2.strsim or false then [ strsim_0_7_0 ] else []) + ++ (if features.clap_2_31_2.vec_map or false then [ vec_map_0_8_1 ] else [])) + ++ (if !(kernel == "windows") then mapFeatures features ([ ] + ++ (if features.clap_2_31_2.ansi_term or false then [ ansi_term_0_11_0 ] else [])) else []); + features = mkFeatures (features.clap_2_31_2 or {}); + }; + clap_2_31_2_features = f: updateFeatures f (rec { + ansi_term_0_11_0.default = true; + atty_0_2_10.default = true; + bitflags_1_0_3.default = true; + clap_2_31_2.ansi_term = + (f.clap_2_31_2.ansi_term or false) || + (f.clap_2_31_2.color or false) || + (clap_2_31_2.color or false); + clap_2_31_2.atty = + (f.clap_2_31_2.atty or false) || + (f.clap_2_31_2.color or false) || + (clap_2_31_2.color or false); + clap_2_31_2.clippy = + (f.clap_2_31_2.clippy or false) || + (f.clap_2_31_2.lints or false) || + (clap_2_31_2.lints or false); + clap_2_31_2.color = + (f.clap_2_31_2.color or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.default = (f.clap_2_31_2.default or true); + clap_2_31_2.strsim = + (f.clap_2_31_2.strsim or false) || + (f.clap_2_31_2.suggestions or false) || + (clap_2_31_2.suggestions or false); + clap_2_31_2.suggestions = + (f.clap_2_31_2.suggestions or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.term_size = + (f.clap_2_31_2.term_size or false) || + (f.clap_2_31_2.wrap_help or false) || + (clap_2_31_2.wrap_help or false); + clap_2_31_2.vec_map = + (f.clap_2_31_2.vec_map or false) || + (f.clap_2_31_2.default or false) || + (clap_2_31_2.default or false); + clap_2_31_2.yaml = + (f.clap_2_31_2.yaml or false) || + (f.clap_2_31_2.doc or false) || + (clap_2_31_2.doc or false); + clap_2_31_2.yaml-rust = + (f.clap_2_31_2.yaml-rust or false) || + (f.clap_2_31_2.yaml or false) || + (clap_2_31_2.yaml or false); + strsim_0_7_0.default = true; + textwrap_0_9_0.default = true; + textwrap_0_9_0.term_size = + (f.textwrap_0_9_0.term_size or false) || + (clap_2_31_2.wrap_help or false) || + (f.clap_2_31_2.wrap_help or false); + unicode_width_0_1_4.default = true; + vec_map_0_8_1.default = true; + }) [ atty_0_2_10_features bitflags_1_0_3_features strsim_0_7_0_features textwrap_0_9_0_features unicode_width_0_1_4_features vec_map_0_8_1_features ansi_term_0_11_0_features ]; + cmake_0_1_31 = { features?(cmake_0_1_31_features {}) }: cmake_0_1_31_ { + dependencies = mapFeatures features ([ cc_1_0_15 ]); + }; + cmake_0_1_31_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; + cmake_0_1_31.default = (f.cmake_0_1_31.default or true); + }) [ cc_1_0_15_features ]; + curl_sys_0_4_5 = { features?(curl_sys_0_4_5_features {}) }: curl_sys_0_4_5_ { + dependencies = mapFeatures features ([ libc_0_2_40 libz_sys_1_0_18 ]) + ++ (if (kernel == "linux" || kernel == "darwin") && !(kernel == "darwin") then mapFeatures features ([ openssl_sys_0_9_30 ]) else []) + ++ (if abi == "msvc" then mapFeatures features ([]) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + buildDependencies = mapFeatures features ([ cc_1_0_15 pkg_config_0_3_11 ]); + }; + curl_sys_0_4_5_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; + curl_sys_0_4_5.default = (f.curl_sys_0_4_5.default or true); + libc_0_2_40.default = true; + libz_sys_1_0_18.default = true; + openssl_sys_0_9_30.default = true; + pkg_config_0_3_11.default = true; + winapi_0_3_4.default = true; + winapi_0_3_4.winsock2 = true; + winapi_0_3_4.ws2def = true; + }) [ libc_0_2_40_features libz_sys_1_0_18_features cc_1_0_15_features pkg_config_0_3_11_features openssl_sys_0_9_30_features winapi_0_3_4_features ]; + embed_resource_1_1_4 = { features?(embed_resource_1_1_4_features {}) }: embed_resource_1_1_4_ { + dependencies = (if kernel == "windows" && abi == "msvc" then mapFeatures features ([ winreg_0_4_0 ]) else []); + }; + embed_resource_1_1_4_features = f: updateFeatures f (rec { + embed_resource_1_1_4.default = (f.embed_resource_1_1_4.default or true); + winreg_0_4_0.default = (f.winreg_0_4_0.default or false); + }) [ winreg_0_4_0_features ]; + fuchsia_zircon_0_3_3 = { features?(fuchsia_zircon_0_3_3_features {}) }: fuchsia_zircon_0_3_3_ { + dependencies = mapFeatures features ([ bitflags_1_0_3 fuchsia_zircon_sys_0_3_3 ]); + }; + fuchsia_zircon_0_3_3_features = f: updateFeatures f (rec { + bitflags_1_0_3.default = true; + fuchsia_zircon_0_3_3.default = (f.fuchsia_zircon_0_3_3.default or true); + fuchsia_zircon_sys_0_3_3.default = true; + }) [ bitflags_1_0_3_features fuchsia_zircon_sys_0_3_3_features ]; + fuchsia_zircon_sys_0_3_3 = { features?(fuchsia_zircon_sys_0_3_3_features {}) }: fuchsia_zircon_sys_0_3_3_ {}; + fuchsia_zircon_sys_0_3_3_features = f: updateFeatures f (rec { + fuchsia_zircon_sys_0_3_3.default = (f.fuchsia_zircon_sys_0_3_3.default or true); + }) []; + git2_0_6_11 = { features?(git2_0_6_11_features {}) }: git2_0_6_11_ { + dependencies = mapFeatures features ([ bitflags_0_9_1 libc_0_2_40 libgit2_sys_0_6_19 url_1_7_0 ]) + ++ (if (kernel == "linux" || kernel == "darwin") && !(kernel == "darwin") then mapFeatures features ([ ] + ++ (if features.git2_0_6_11.openssl-probe or false then [ openssl_probe_0_1_2 ] else []) + ++ (if features.git2_0_6_11.openssl-sys or false then [ openssl_sys_0_9_30 ] else [])) else []); + features = mkFeatures (features.git2_0_6_11 or {}); + }; + git2_0_6_11_features = f: updateFeatures f (rec { + bitflags_0_9_1.default = true; + git2_0_6_11.curl = + (f.git2_0_6_11.curl or false) || + (f.git2_0_6_11.default or false) || + (git2_0_6_11.default or false); + git2_0_6_11.default = (f.git2_0_6_11.default or true); + git2_0_6_11.https = + (f.git2_0_6_11.https or false) || + (f.git2_0_6_11.default or false) || + (git2_0_6_11.default or false); + git2_0_6_11.openssl-probe = + (f.git2_0_6_11.openssl-probe or false) || + (f.git2_0_6_11.https or false) || + (git2_0_6_11.https or false); + git2_0_6_11.openssl-sys = + (f.git2_0_6_11.openssl-sys or false) || + (f.git2_0_6_11.https or false) || + (git2_0_6_11.https or false); + git2_0_6_11.ssh = + (f.git2_0_6_11.ssh or false) || + (f.git2_0_6_11.default or false) || + (git2_0_6_11.default or false); + libc_0_2_40.default = true; + libgit2_sys_0_6_19.curl = + (f.libgit2_sys_0_6_19.curl or false) || + (git2_0_6_11.curl or false) || + (f.git2_0_6_11.curl or false); + libgit2_sys_0_6_19.default = true; + libgit2_sys_0_6_19.https = + (f.libgit2_sys_0_6_19.https or false) || + (git2_0_6_11.https or false) || + (f.git2_0_6_11.https or false); + libgit2_sys_0_6_19.ssh = + (f.libgit2_sys_0_6_19.ssh or false) || + (git2_0_6_11.ssh or false) || + (f.git2_0_6_11.ssh or false); + openssl_probe_0_1_2.default = true; + openssl_sys_0_9_30.default = true; + url_1_7_0.default = true; + }) [ bitflags_0_9_1_features libc_0_2_40_features libgit2_sys_0_6_19_features url_1_7_0_features openssl_probe_0_1_2_features openssl_sys_0_9_30_features ]; + idna_0_1_4 = { features?(idna_0_1_4_features {}) }: idna_0_1_4_ { + dependencies = mapFeatures features ([ matches_0_1_6 unicode_bidi_0_3_4 unicode_normalization_0_1_7 ]); + }; + idna_0_1_4_features = f: updateFeatures f (rec { + idna_0_1_4.default = (f.idna_0_1_4.default or true); + matches_0_1_6.default = true; + unicode_bidi_0_3_4.default = true; + unicode_normalization_0_1_7.default = true; + }) [ matches_0_1_6_features unicode_bidi_0_3_4_features unicode_normalization_0_1_7_features ]; + json_0_11_13 = { features?(json_0_11_13_features {}) }: json_0_11_13_ {}; + json_0_11_13_features = f: updateFeatures f (rec { + json_0_11_13.default = (f.json_0_11_13.default or true); + }) []; + kernel32_sys_0_2_2 = { features?(kernel32_sys_0_2_2_features {}) }: kernel32_sys_0_2_2_ { + dependencies = mapFeatures features ([ winapi_0_2_8 ]); + buildDependencies = mapFeatures features ([ winapi_build_0_1_1 ]); + }; + kernel32_sys_0_2_2_features = f: updateFeatures f (rec { + kernel32_sys_0_2_2.default = (f.kernel32_sys_0_2_2.default or true); + winapi_0_2_8.default = true; + winapi_build_0_1_1.default = true; + }) [ winapi_0_2_8_features winapi_build_0_1_1_features ]; + lazy_static_1_0_0 = { features?(lazy_static_1_0_0_features {}) }: lazy_static_1_0_0_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.lazy_static_1_0_0 or {}); + }; + lazy_static_1_0_0_features = f: updateFeatures f (rec { + lazy_static_1_0_0.compiletest_rs = + (f.lazy_static_1_0_0.compiletest_rs or false) || + (f.lazy_static_1_0_0.compiletest or false) || + (lazy_static_1_0_0.compiletest or false); + lazy_static_1_0_0.default = (f.lazy_static_1_0_0.default or true); + lazy_static_1_0_0.nightly = + (f.lazy_static_1_0_0.nightly or false) || + (f.lazy_static_1_0_0.spin_no_std or false) || + (lazy_static_1_0_0.spin_no_std or false); + lazy_static_1_0_0.spin = + (f.lazy_static_1_0_0.spin or false) || + (f.lazy_static_1_0_0.spin_no_std or false) || + (lazy_static_1_0_0.spin_no_std or false); + }) []; + lazysort_0_2_0 = { features?(lazysort_0_2_0_features {}) }: lazysort_0_2_0_ { + dependencies = mapFeatures features ([ rand_0_3_22 ]); + features = mkFeatures (features.lazysort_0_2_0 or {}); + }; + lazysort_0_2_0_features = f: updateFeatures f (rec { + lazysort_0_2_0.default = (f.lazysort_0_2_0.default or true); + rand_0_3_22.default = true; + }) [ rand_0_3_22_features ]; + libc_0_2_40 = { features?(libc_0_2_40_features {}) }: libc_0_2_40_ { + features = mkFeatures (features.libc_0_2_40 or {}); + }; + libc_0_2_40_features = f: updateFeatures f (rec { + libc_0_2_40.default = (f.libc_0_2_40.default or true); + libc_0_2_40.use_std = + (f.libc_0_2_40.use_std or false) || + (f.libc_0_2_40.default or false) || + (libc_0_2_40.default or false); + }) []; + libgit2_sys_0_6_19 = { features?(libgit2_sys_0_6_19_features {}) }: libgit2_sys_0_6_19_ { + dependencies = mapFeatures features ([ libc_0_2_40 libz_sys_1_0_18 ] + ++ (if features.libgit2_sys_0_6_19.curl-sys or false then [ curl_sys_0_4_5 ] else []) + ++ (if features.libgit2_sys_0_6_19.libssh2-sys or false then [ libssh2_sys_0_2_7 ] else [])) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ ] + ++ (if features.libgit2_sys_0_6_19.openssl-sys or false then [ openssl_sys_0_9_30 ] else [])) else []); + buildDependencies = mapFeatures features ([ cc_1_0_15 cmake_0_1_31 pkg_config_0_3_11 ]); + features = mkFeatures (features.libgit2_sys_0_6_19 or {}); + }; + libgit2_sys_0_6_19_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; + cmake_0_1_31.default = true; + curl_sys_0_4_5.default = true; + libc_0_2_40.default = true; + libgit2_sys_0_6_19.curl-sys = + (f.libgit2_sys_0_6_19.curl-sys or false) || + (f.libgit2_sys_0_6_19.curl or false) || + (libgit2_sys_0_6_19.curl or false); + libgit2_sys_0_6_19.default = (f.libgit2_sys_0_6_19.default or true); + libgit2_sys_0_6_19.libssh2-sys = + (f.libgit2_sys_0_6_19.libssh2-sys or false) || + (f.libgit2_sys_0_6_19.ssh or false) || + (libgit2_sys_0_6_19.ssh or false); + libgit2_sys_0_6_19.openssl-sys = + (f.libgit2_sys_0_6_19.openssl-sys or false) || + (f.libgit2_sys_0_6_19.https or false) || + (libgit2_sys_0_6_19.https or false); + libssh2_sys_0_2_7.default = true; + libz_sys_1_0_18.default = true; + openssl_sys_0_9_30.default = true; + pkg_config_0_3_11.default = true; + }) [ curl_sys_0_4_5_features libc_0_2_40_features libssh2_sys_0_2_7_features libz_sys_1_0_18_features cc_1_0_15_features cmake_0_1_31_features pkg_config_0_3_11_features openssl_sys_0_9_30_features ]; + libssh2_sys_0_2_7 = { features?(libssh2_sys_0_2_7_features {}) }: libssh2_sys_0_2_7_ { + dependencies = mapFeatures features ([ libc_0_2_40 libz_sys_1_0_18 ]) + ++ (if abi == "msvc" then mapFeatures features ([]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ openssl_sys_0_9_30 ]) else []); + buildDependencies = mapFeatures features ([ cmake_0_1_31 pkg_config_0_3_11 ]); + }; + libssh2_sys_0_2_7_features = f: updateFeatures f (rec { + cmake_0_1_31.default = true; + libc_0_2_40.default = true; + libssh2_sys_0_2_7.default = (f.libssh2_sys_0_2_7.default or true); + libz_sys_1_0_18.default = true; + openssl_sys_0_9_30.default = true; + pkg_config_0_3_11.default = true; + }) [ libc_0_2_40_features libz_sys_1_0_18_features cmake_0_1_31_features pkg_config_0_3_11_features openssl_sys_0_9_30_features ]; + libz_sys_1_0_18 = { features?(libz_sys_1_0_18_features {}) }: libz_sys_1_0_18_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]) + ++ (if abi == "msvc" then mapFeatures features ([]) else []); + buildDependencies = mapFeatures features ([ cc_1_0_15 pkg_config_0_3_11 ]); + }; + libz_sys_1_0_18_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; + libc_0_2_40.default = true; + libz_sys_1_0_18.default = (f.libz_sys_1_0_18.default or true); + pkg_config_0_3_11.default = true; + }) [ libc_0_2_40_features cc_1_0_15_features pkg_config_0_3_11_features ]; + matches_0_1_6 = { features?(matches_0_1_6_features {}) }: matches_0_1_6_ {}; + matches_0_1_6_features = f: updateFeatures f (rec { + matches_0_1_6.default = (f.matches_0_1_6.default or true); + }) []; + memchr_2_0_1 = { features?(memchr_2_0_1_features {}) }: memchr_2_0_1_ { + dependencies = mapFeatures features ([ ] + ++ (if features.memchr_2_0_1.libc or false then [ libc_0_2_40 ] else [])); + features = mkFeatures (features.memchr_2_0_1 or {}); + }; + memchr_2_0_1_features = f: updateFeatures f (rec { + libc_0_2_40.default = (f.libc_0_2_40.default or false); + libc_0_2_40.use_std = + (f.libc_0_2_40.use_std or false) || + (memchr_2_0_1.use_std or false) || + (f.memchr_2_0_1.use_std or false); + memchr_2_0_1.default = (f.memchr_2_0_1.default or true); + memchr_2_0_1.libc = + (f.memchr_2_0_1.libc or false) || + (f.memchr_2_0_1.default or false) || + (memchr_2_0_1.default or false) || + (f.memchr_2_0_1.use_std or false) || + (memchr_2_0_1.use_std or false); + memchr_2_0_1.use_std = + (f.memchr_2_0_1.use_std or false) || + (f.memchr_2_0_1.default or false) || + (memchr_2_0_1.default or false); + }) [ libc_0_2_40_features ]; + openssl_probe_0_1_2 = { features?(openssl_probe_0_1_2_features {}) }: openssl_probe_0_1_2_ {}; + openssl_probe_0_1_2_features = f: updateFeatures f (rec { + openssl_probe_0_1_2.default = (f.openssl_probe_0_1_2.default or true); + }) []; + openssl_sys_0_9_30 = { features?(openssl_sys_0_9_30_features {}) }: openssl_sys_0_9_30_ { + dependencies = mapFeatures features ([ libc_0_2_40 ]) + ++ (if abi == "msvc" then mapFeatures features ([]) else []); + buildDependencies = mapFeatures features ([ cc_1_0_15 pkg_config_0_3_11 ]); + }; + openssl_sys_0_9_30_features = f: updateFeatures f (rec { + cc_1_0_15.default = true; + libc_0_2_40.default = true; + openssl_sys_0_9_30.default = (f.openssl_sys_0_9_30.default or true); + pkg_config_0_3_11.default = true; + }) [ libc_0_2_40_features cc_1_0_15_features pkg_config_0_3_11_features ]; + percent_encoding_1_0_1 = { features?(percent_encoding_1_0_1_features {}) }: percent_encoding_1_0_1_ {}; + percent_encoding_1_0_1_features = f: updateFeatures f (rec { + percent_encoding_1_0_1.default = (f.percent_encoding_1_0_1.default or true); + }) []; + pkg_config_0_3_11 = { features?(pkg_config_0_3_11_features {}) }: pkg_config_0_3_11_ {}; + pkg_config_0_3_11_features = f: updateFeatures f (rec { + pkg_config_0_3_11.default = (f.pkg_config_0_3_11.default or true); + }) []; + proc_macro2_0_3_8 = { features?(proc_macro2_0_3_8_features {}) }: proc_macro2_0_3_8_ { + dependencies = mapFeatures features ([ unicode_xid_0_1_0 ]); + features = mkFeatures (features.proc_macro2_0_3_8 or {}); + }; + proc_macro2_0_3_8_features = f: updateFeatures f (rec { + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or true); + proc_macro2_0_3_8.proc-macro = + (f.proc_macro2_0_3_8.proc-macro or false) || + (f.proc_macro2_0_3_8.default or false) || + (proc_macro2_0_3_8.default or false) || + (f.proc_macro2_0_3_8.nightly or false) || + (proc_macro2_0_3_8.nightly or false); + unicode_xid_0_1_0.default = true; + }) [ unicode_xid_0_1_0_features ]; + quote_0_5_2 = { features?(quote_0_5_2_features {}) }: quote_0_5_2_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_8 ]); + features = mkFeatures (features.quote_0_5_2 or {}); + }; + quote_0_5_2_features = f: updateFeatures f (rec { + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); + proc_macro2_0_3_8.proc-macro = + (f.proc_macro2_0_3_8.proc-macro or false) || + (quote_0_5_2.proc-macro or false) || + (f.quote_0_5_2.proc-macro or false); + quote_0_5_2.default = (f.quote_0_5_2.default or true); + quote_0_5_2.proc-macro = + (f.quote_0_5_2.proc-macro or false) || + (f.quote_0_5_2.default or false) || + (quote_0_5_2.default or false); + }) [ proc_macro2_0_3_8_features ]; + rand_0_3_22 = { features?(rand_0_3_22_features {}) }: rand_0_3_22_ { + dependencies = mapFeatures features ([ libc_0_2_40 rand_0_4_2 ]) + ++ (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []); + features = mkFeatures (features.rand_0_3_22 or {}); + }; + rand_0_3_22_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + libc_0_2_40.default = true; + rand_0_3_22.default = (f.rand_0_3_22.default or true); + rand_0_3_22.i128_support = + (f.rand_0_3_22.i128_support or false) || + (f.rand_0_3_22.nightly or false) || + (rand_0_3_22.nightly or false); + rand_0_4_2.default = true; + }) [ libc_0_2_40_features rand_0_4_2_features fuchsia_zircon_0_3_3_features ]; + rand_0_4_2 = { features?(rand_0_4_2_features {}) }: rand_0_4_2_ { + dependencies = (if kernel == "fuchsia" then mapFeatures features ([ fuchsia_zircon_0_3_3 ]) else []) + ++ (if (kernel == "linux" || kernel == "darwin") then mapFeatures features ([ ] + ++ (if features.rand_0_4_2.libc or false then [ libc_0_2_40 ] else [])) else []) + ++ (if kernel == "windows" then mapFeatures features ([ winapi_0_3_4 ]) else []); + features = mkFeatures (features.rand_0_4_2 or {}); + }; + rand_0_4_2_features = f: updateFeatures f (rec { + fuchsia_zircon_0_3_3.default = true; + libc_0_2_40.default = true; + rand_0_4_2.default = (f.rand_0_4_2.default or true); + rand_0_4_2.i128_support = + (f.rand_0_4_2.i128_support or false) || + (f.rand_0_4_2.nightly or false) || + (rand_0_4_2.nightly or false); + rand_0_4_2.libc = + (f.rand_0_4_2.libc or false) || + (f.rand_0_4_2.std or false) || + (rand_0_4_2.std or false); + rand_0_4_2.std = + (f.rand_0_4_2.std or false) || + (f.rand_0_4_2.default or false) || + (rand_0_4_2.default or false); + winapi_0_3_4.default = true; + winapi_0_3_4.minwindef = true; + winapi_0_3_4.ntsecapi = true; + winapi_0_3_4.profileapi = true; + winapi_0_3_4.winnt = true; + }) [ fuchsia_zircon_0_3_3_features libc_0_2_40_features winapi_0_3_4_features ]; + redox_syscall_0_1_37 = { features?(redox_syscall_0_1_37_features {}) }: redox_syscall_0_1_37_ {}; + redox_syscall_0_1_37_features = f: updateFeatures f (rec { + redox_syscall_0_1_37.default = (f.redox_syscall_0_1_37.default or true); + }) []; + redox_termios_0_1_1 = { features?(redox_termios_0_1_1_features {}) }: redox_termios_0_1_1_ { + dependencies = mapFeatures features ([ redox_syscall_0_1_37 ]); + }; + redox_termios_0_1_1_features = f: updateFeatures f (rec { + redox_syscall_0_1_37.default = true; + redox_termios_0_1_1.default = (f.redox_termios_0_1_1.default or true); + }) [ redox_syscall_0_1_37_features ]; + regex_0_2_11 = { features?(regex_0_2_11_features {}) }: regex_0_2_11_ { + dependencies = mapFeatures features ([ aho_corasick_0_6_4 memchr_2_0_1 regex_syntax_0_5_6 thread_local_0_3_5 utf8_ranges_1_0_0 ]); + features = mkFeatures (features.regex_0_2_11 or {}); + }; + regex_0_2_11_features = f: updateFeatures f (rec { + aho_corasick_0_6_4.default = true; + memchr_2_0_1.default = true; + regex_0_2_11.default = (f.regex_0_2_11.default or true); + regex_0_2_11.pattern = + (f.regex_0_2_11.pattern or false) || + (f.regex_0_2_11.unstable or false) || + (regex_0_2_11.unstable or false); + regex_syntax_0_5_6.default = true; + thread_local_0_3_5.default = true; + utf8_ranges_1_0_0.default = true; + }) [ aho_corasick_0_6_4_features memchr_2_0_1_features regex_syntax_0_5_6_features thread_local_0_3_5_features utf8_ranges_1_0_0_features ]; + regex_syntax_0_5_6 = { features?(regex_syntax_0_5_6_features {}) }: regex_syntax_0_5_6_ { + dependencies = mapFeatures features ([ ucd_util_0_1_1 ]); + }; + regex_syntax_0_5_6_features = f: updateFeatures f (rec { + regex_syntax_0_5_6.default = (f.regex_syntax_0_5_6.default or true); + ucd_util_0_1_1.default = true; + }) [ ucd_util_0_1_1_features ]; + semver_0_9_0 = { features?(semver_0_9_0_features {}) }: semver_0_9_0_ { + dependencies = mapFeatures features ([ semver_parser_0_7_0 ] + ++ (if features.semver_0_9_0.serde or false then [ serde_1_0_55 ] else [])); + features = mkFeatures (features.semver_0_9_0 or {}); + }; + semver_0_9_0_features = f: updateFeatures f (rec { + semver_0_9_0.default = (f.semver_0_9_0.default or true); + semver_0_9_0.serde = + (f.semver_0_9_0.serde or false) || + (f.semver_0_9_0.ci or false) || + (semver_0_9_0.ci or false); + semver_parser_0_7_0.default = true; + serde_1_0_55.default = true; + }) [ semver_parser_0_7_0_features serde_1_0_55_features ]; + semver_parser_0_7_0 = { features?(semver_parser_0_7_0_features {}) }: semver_parser_0_7_0_ {}; + semver_parser_0_7_0_features = f: updateFeatures f (rec { + semver_parser_0_7_0.default = (f.semver_parser_0_7_0.default or true); + }) []; + serde_1_0_55 = { features?(serde_1_0_55_features {}) }: serde_1_0_55_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.serde_1_0_55 or {}); + }; + serde_1_0_55_features = f: updateFeatures f (rec { + serde_1_0_55.default = (f.serde_1_0_55.default or true); + serde_1_0_55.serde_derive = + (f.serde_1_0_55.serde_derive or false) || + (f.serde_1_0_55.derive or false) || + (serde_1_0_55.derive or false); + serde_1_0_55.std = + (f.serde_1_0_55.std or false) || + (f.serde_1_0_55.default or false) || + (serde_1_0_55.default or false); + serde_1_0_55.unstable = + (f.serde_1_0_55.unstable or false) || + (f.serde_1_0_55.alloc or false) || + (serde_1_0_55.alloc or false); + }) []; + serde_derive_1_0_55 = { features?(serde_derive_1_0_55_features {}) }: serde_derive_1_0_55_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_8 quote_0_5_2 syn_0_13_10 ]); + features = mkFeatures (features.serde_derive_1_0_55 or {}); + }; + serde_derive_1_0_55_features = f: updateFeatures f (rec { + proc_macro2_0_3_8.default = true; + quote_0_5_2.default = true; + serde_derive_1_0_55.default = (f.serde_derive_1_0_55.default or true); + syn_0_13_10.default = true; + syn_0_13_10.visit = true; + }) [ proc_macro2_0_3_8_features quote_0_5_2_features syn_0_13_10_features ]; + strsim_0_7_0 = { features?(strsim_0_7_0_features {}) }: strsim_0_7_0_ {}; + strsim_0_7_0_features = f: updateFeatures f (rec { + strsim_0_7_0.default = (f.strsim_0_7_0.default or true); + }) []; + syn_0_13_10 = { features?(syn_0_13_10_features {}) }: syn_0_13_10_ { + dependencies = mapFeatures features ([ proc_macro2_0_3_8 unicode_xid_0_1_0 ] + ++ (if features.syn_0_13_10.quote or false then [ quote_0_5_2 ] else [])); + features = mkFeatures (features.syn_0_13_10 or {}); + }; + syn_0_13_10_features = f: updateFeatures f (rec { + proc_macro2_0_3_8.default = (f.proc_macro2_0_3_8.default or false); + proc_macro2_0_3_8.proc-macro = + (f.proc_macro2_0_3_8.proc-macro or false) || + (syn_0_13_10.proc-macro or false) || + (f.syn_0_13_10.proc-macro or false); + quote_0_5_2.default = (f.quote_0_5_2.default or false); + quote_0_5_2.proc-macro = + (f.quote_0_5_2.proc-macro or false) || + (syn_0_13_10.proc-macro or false) || + (f.syn_0_13_10.proc-macro or false); + syn_0_13_10.clone-impls = + (f.syn_0_13_10.clone-impls or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.default = (f.syn_0_13_10.default or true); + syn_0_13_10.derive = + (f.syn_0_13_10.derive or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.parsing = + (f.syn_0_13_10.parsing or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.printing = + (f.syn_0_13_10.printing or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.proc-macro = + (f.syn_0_13_10.proc-macro or false) || + (f.syn_0_13_10.default or false) || + (syn_0_13_10.default or false); + syn_0_13_10.quote = + (f.syn_0_13_10.quote or false) || + (f.syn_0_13_10.printing or false) || + (syn_0_13_10.printing or false); + unicode_xid_0_1_0.default = true; + }) [ proc_macro2_0_3_8_features quote_0_5_2_features unicode_xid_0_1_0_features ]; + tabwriter_1_0_4 = { features?(tabwriter_1_0_4_features {}) }: tabwriter_1_0_4_ { + dependencies = mapFeatures features ([ unicode_width_0_1_4 ]); + features = mkFeatures (features.tabwriter_1_0_4 or {}); + }; + tabwriter_1_0_4_features = f: updateFeatures f (rec { + tabwriter_1_0_4.default = (f.tabwriter_1_0_4.default or true); + tabwriter_1_0_4.lazy_static = + (f.tabwriter_1_0_4.lazy_static or false) || + (f.tabwriter_1_0_4.ansi_formatting or false) || + (tabwriter_1_0_4.ansi_formatting or false); + tabwriter_1_0_4.regex = + (f.tabwriter_1_0_4.regex or false) || + (f.tabwriter_1_0_4.ansi_formatting or false) || + (tabwriter_1_0_4.ansi_formatting or false); + unicode_width_0_1_4.default = true; + }) [ unicode_width_0_1_4_features ]; + termion_1_5_1 = { features?(termion_1_5_1_features {}) }: termion_1_5_1_ { + dependencies = (if !(kernel == "redox") then mapFeatures features ([ libc_0_2_40 ]) else []) + ++ (if kernel == "redox" then mapFeatures features ([ redox_syscall_0_1_37 redox_termios_0_1_1 ]) else []); + }; + termion_1_5_1_features = f: updateFeatures f (rec { + libc_0_2_40.default = true; + redox_syscall_0_1_37.default = true; + redox_termios_0_1_1.default = true; + termion_1_5_1.default = (f.termion_1_5_1.default or true); + }) [ libc_0_2_40_features redox_syscall_0_1_37_features redox_termios_0_1_1_features ]; + textwrap_0_9_0 = { features?(textwrap_0_9_0_features {}) }: textwrap_0_9_0_ { + dependencies = mapFeatures features ([ unicode_width_0_1_4 ]); + }; + textwrap_0_9_0_features = f: updateFeatures f (rec { + textwrap_0_9_0.default = (f.textwrap_0_9_0.default or true); + unicode_width_0_1_4.default = true; + }) [ unicode_width_0_1_4_features ]; + thread_local_0_3_5 = { features?(thread_local_0_3_5_features {}) }: thread_local_0_3_5_ { + dependencies = mapFeatures features ([ lazy_static_1_0_0 unreachable_1_0_0 ]); + }; + thread_local_0_3_5_features = f: updateFeatures f (rec { + lazy_static_1_0_0.default = true; + thread_local_0_3_5.default = (f.thread_local_0_3_5.default or true); + unreachable_1_0_0.default = true; + }) [ lazy_static_1_0_0_features unreachable_1_0_0_features ]; + toml_0_4_6 = { features?(toml_0_4_6_features {}) }: toml_0_4_6_ { + dependencies = mapFeatures features ([ serde_1_0_55 ]); + }; + toml_0_4_6_features = f: updateFeatures f (rec { + serde_1_0_55.default = true; + toml_0_4_6.default = (f.toml_0_4_6.default or true); + }) [ serde_1_0_55_features ]; + ucd_util_0_1_1 = { features?(ucd_util_0_1_1_features {}) }: ucd_util_0_1_1_ {}; + ucd_util_0_1_1_features = f: updateFeatures f (rec { + ucd_util_0_1_1.default = (f.ucd_util_0_1_1.default or true); + }) []; + unicode_bidi_0_3_4 = { features?(unicode_bidi_0_3_4_features {}) }: unicode_bidi_0_3_4_ { + dependencies = mapFeatures features ([ matches_0_1_6 ]); + features = mkFeatures (features.unicode_bidi_0_3_4 or {}); + }; + unicode_bidi_0_3_4_features = f: updateFeatures f (rec { + matches_0_1_6.default = true; + unicode_bidi_0_3_4.default = (f.unicode_bidi_0_3_4.default or true); + unicode_bidi_0_3_4.flame = + (f.unicode_bidi_0_3_4.flame or false) || + (f.unicode_bidi_0_3_4.flame_it or false) || + (unicode_bidi_0_3_4.flame_it or false); + unicode_bidi_0_3_4.flamer = + (f.unicode_bidi_0_3_4.flamer or false) || + (f.unicode_bidi_0_3_4.flame_it or false) || + (unicode_bidi_0_3_4.flame_it or false); + unicode_bidi_0_3_4.serde = + (f.unicode_bidi_0_3_4.serde or false) || + (f.unicode_bidi_0_3_4.with_serde or false) || + (unicode_bidi_0_3_4.with_serde or false); + }) [ matches_0_1_6_features ]; + unicode_normalization_0_1_7 = { features?(unicode_normalization_0_1_7_features {}) }: unicode_normalization_0_1_7_ {}; + unicode_normalization_0_1_7_features = f: updateFeatures f (rec { + unicode_normalization_0_1_7.default = (f.unicode_normalization_0_1_7.default or true); + }) []; + unicode_width_0_1_4 = { features?(unicode_width_0_1_4_features {}) }: unicode_width_0_1_4_ { + features = mkFeatures (features.unicode_width_0_1_4 or {}); + }; + unicode_width_0_1_4_features = f: updateFeatures f (rec { + unicode_width_0_1_4.default = (f.unicode_width_0_1_4.default or true); + }) []; + unicode_xid_0_1_0 = { features?(unicode_xid_0_1_0_features {}) }: unicode_xid_0_1_0_ { + features = mkFeatures (features.unicode_xid_0_1_0 or {}); + }; + unicode_xid_0_1_0_features = f: updateFeatures f (rec { + unicode_xid_0_1_0.default = (f.unicode_xid_0_1_0.default or true); + }) []; + unreachable_1_0_0 = { features?(unreachable_1_0_0_features {}) }: unreachable_1_0_0_ { + dependencies = mapFeatures features ([ void_1_0_2 ]); + }; + unreachable_1_0_0_features = f: updateFeatures f (rec { + unreachable_1_0_0.default = (f.unreachable_1_0_0.default or true); + void_1_0_2.default = (f.void_1_0_2.default or false); + }) [ void_1_0_2_features ]; + url_1_7_0 = { features?(url_1_7_0_features {}) }: url_1_7_0_ { + dependencies = mapFeatures features ([ idna_0_1_4 matches_0_1_6 percent_encoding_1_0_1 ]); + features = mkFeatures (features.url_1_7_0 or {}); + }; + url_1_7_0_features = f: updateFeatures f (rec { + idna_0_1_4.default = true; + matches_0_1_6.default = true; + percent_encoding_1_0_1.default = true; + url_1_7_0.default = (f.url_1_7_0.default or true); + url_1_7_0.encoding = + (f.url_1_7_0.encoding or false) || + (f.url_1_7_0.query_encoding or false) || + (url_1_7_0.query_encoding or false); + url_1_7_0.heapsize = + (f.url_1_7_0.heapsize or false) || + (f.url_1_7_0.heap_size or false) || + (url_1_7_0.heap_size or false); + }) [ idna_0_1_4_features matches_0_1_6_features percent_encoding_1_0_1_features ]; + utf8_ranges_1_0_0 = { features?(utf8_ranges_1_0_0_features {}) }: utf8_ranges_1_0_0_ {}; + utf8_ranges_1_0_0_features = f: updateFeatures f (rec { + utf8_ranges_1_0_0.default = (f.utf8_ranges_1_0_0.default or true); + }) []; + vcpkg_0_2_3 = { features?(vcpkg_0_2_3_features {}) }: vcpkg_0_2_3_ {}; + vcpkg_0_2_3_features = f: updateFeatures f (rec { + vcpkg_0_2_3.default = (f.vcpkg_0_2_3.default or true); + }) []; + vec_map_0_8_1 = { features?(vec_map_0_8_1_features {}) }: vec_map_0_8_1_ { + dependencies = mapFeatures features ([]); + features = mkFeatures (features.vec_map_0_8_1 or {}); + }; + vec_map_0_8_1_features = f: updateFeatures f (rec { + vec_map_0_8_1.default = (f.vec_map_0_8_1.default or true); + vec_map_0_8_1.serde = + (f.vec_map_0_8_1.serde or false) || + (f.vec_map_0_8_1.eders or false) || + (vec_map_0_8_1.eders or false); + }) []; + void_1_0_2 = { features?(void_1_0_2_features {}) }: void_1_0_2_ { + features = mkFeatures (features.void_1_0_2 or {}); + }; + void_1_0_2_features = f: updateFeatures f (rec { + void_1_0_2.default = (f.void_1_0_2.default or true); + void_1_0_2.std = + (f.void_1_0_2.std or false) || + (f.void_1_0_2.default or false) || + (void_1_0_2.default or false); + }) []; + winapi_0_2_8 = { features?(winapi_0_2_8_features {}) }: winapi_0_2_8_ {}; + winapi_0_2_8_features = f: updateFeatures f (rec { + winapi_0_2_8.default = (f.winapi_0_2_8.default or true); + }) []; + winapi_0_3_4 = { features?(winapi_0_3_4_features {}) }: winapi_0_3_4_ { + dependencies = (if kernel == "i686-pc-windows-gnu" then mapFeatures features ([ winapi_i686_pc_windows_gnu_0_4_0 ]) else []) + ++ (if kernel == "x86_64-pc-windows-gnu" then mapFeatures features ([ winapi_x86_64_pc_windows_gnu_0_4_0 ]) else []); + features = mkFeatures (features.winapi_0_3_4 or {}); + }; + winapi_0_3_4_features = f: updateFeatures f (rec { + winapi_0_3_4.default = (f.winapi_0_3_4.default or true); + winapi_i686_pc_windows_gnu_0_4_0.default = true; + winapi_x86_64_pc_windows_gnu_0_4_0.default = true; + }) [ winapi_i686_pc_windows_gnu_0_4_0_features winapi_x86_64_pc_windows_gnu_0_4_0_features ]; + winapi_build_0_1_1 = { features?(winapi_build_0_1_1_features {}) }: winapi_build_0_1_1_ {}; + winapi_build_0_1_1_features = f: updateFeatures f (rec { + winapi_build_0_1_1.default = (f.winapi_build_0_1_1.default or true); + }) []; + winapi_i686_pc_windows_gnu_0_4_0 = { features?(winapi_i686_pc_windows_gnu_0_4_0_features {}) }: winapi_i686_pc_windows_gnu_0_4_0_ {}; + winapi_i686_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { + winapi_i686_pc_windows_gnu_0_4_0.default = (f.winapi_i686_pc_windows_gnu_0_4_0.default or true); + }) []; + winapi_x86_64_pc_windows_gnu_0_4_0 = { features?(winapi_x86_64_pc_windows_gnu_0_4_0_features {}) }: winapi_x86_64_pc_windows_gnu_0_4_0_ {}; + winapi_x86_64_pc_windows_gnu_0_4_0_features = f: updateFeatures f (rec { + winapi_x86_64_pc_windows_gnu_0_4_0.default = (f.winapi_x86_64_pc_windows_gnu_0_4_0.default or true); + }) []; + winreg_0_4_0 = { features?(winreg_0_4_0_features {}) }: winreg_0_4_0_ { + dependencies = mapFeatures features ([ advapi32_sys_0_2_0 kernel32_sys_0_2_2 winapi_0_2_8 ]); + features = mkFeatures (features.winreg_0_4_0 or {}); + }; + winreg_0_4_0_features = f: updateFeatures f (rec { + advapi32_sys_0_2_0.default = true; + kernel32_sys_0_2_2.default = true; + winapi_0_2_8.default = true; + winreg_0_4_0.default = (f.winreg_0_4_0.default or true); + winreg_0_4_0.ktmw32-sys = + (f.winreg_0_4_0.ktmw32-sys or false) || + (f.winreg_0_4_0.transactions or false) || + (winreg_0_4_0.transactions or false); + winreg_0_4_0.rustc-serialize = + (f.winreg_0_4_0.rustc-serialize or false) || + (f.winreg_0_4_0.serialization-rustc or false) || + (winreg_0_4_0.serialization-rustc or false); + winreg_0_4_0.serialization-rustc = + (f.winreg_0_4_0.serialization-rustc or false) || + (f.winreg_0_4_0.default or false) || + (winreg_0_4_0.default or false); + winreg_0_4_0.transactions = + (f.winreg_0_4_0.transactions or false) || + (f.winreg_0_4_0.default or false) || + (winreg_0_4_0.default or false) || + (f.winreg_0_4_0.serialization-rustc or false) || + (winreg_0_4_0.serialization-rustc or false); + }) [ advapi32_sys_0_2_0_features kernel32_sys_0_2_2_features winapi_0_2_8_features ]; +} diff --git a/pkgs/tools/package-management/cargo-update/default.nix b/pkgs/tools/package-management/cargo-update/default.nix new file mode 100644 index 00000000000..70a14ded7bf --- /dev/null +++ b/pkgs/tools/package-management/cargo-update/default.nix @@ -0,0 +1,27 @@ +{ stdenv, callPackage, defaultCrateOverrides, fetchFromGitHub, cmake, libssh2, libgit2, openssl, zlib }: + +((callPackage ./cargo-update.nix {}).cargo_update {}).override { + crateOverrides = defaultCrateOverrides // { + cargo-update = attrs: rec { + name = "cargo-update-${version}"; + version = "1.5.2"; + + src = fetchFromGitHub { + owner = "nabijaczleweli"; + repo = "cargo-update"; + rev = "v${version}"; + sha256 = "1bvrdgcw2akzd78wgvsisvghi8pvdk3szyg9s46qxv4km9sf88s7"; + }; + + buildInputs = [ cmake libssh2 libgit2 openssl zlib ]; + + meta = with stdenv.lib; { + description = "A cargo subcommand for checking and applying updates to installed executables"; + homepage = https://github.com/nabijaczleweli/cargo-update; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ gerschtli ]; + platforms = platforms.all; + }; + }; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 93e17b11488..7d8333e8545 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7089,6 +7089,7 @@ with pkgs; cargo-edit = callPackage ../tools/package-management/cargo-edit { }; cargo-release = callPackage ../tools/package-management/cargo-release { }; cargo-tree = callPackage ../tools/package-management/cargo-tree { }; + cargo-update = callPackage ../tools/package-management/cargo-update { }; cargo-asm = callPackage ../development/tools/rust/cargo-asm { }; cargo-fuzz = callPackage ../development/tools/rust/cargo-fuzz { }; From cd794f42161f1ebe31c8254be006dc5715562606 Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 2 Aug 2018 08:35:21 +0000 Subject: [PATCH 65/81] xfce4-13.xfce4-session: init at 4.13.0 (#44336) --- pkgs/desktops/xfce4-13/default.nix | 5 +++- .../xfce4-13/xfce4-session/default.nix | 27 +++++++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 pkgs/desktops/xfce4-13/xfce4-session/default.nix diff --git a/pkgs/desktops/xfce4-13/default.nix b/pkgs/desktops/xfce4-13/default.nix index 0ce8450724e..13c1cb3ca69 100644 --- a/pkgs/desktops/xfce4-13/default.nix +++ b/pkgs/desktops/xfce4-13/default.nix @@ -74,10 +74,13 @@ makeScope newScope (self: with self; { inherit (gnome3) libsoup; }; - xfce4-taskmanager = callPackage ./xfce4-taskmanager { }; + xfce4-session = callPackage ./xfce4-session { }; + xinitrc = "${xfce4-session}/etc/xdg/xfce4/xinitrc"; xfce4-settings = callPackage ./xfce4-settings { }; + xfce4-taskmanager = callPackage ./xfce4-taskmanager { }; + xfce4-terminal = callPackage ./xfce4-terminal { inherit (gnome3) vte; }; diff --git a/pkgs/desktops/xfce4-13/xfce4-session/default.nix b/pkgs/desktops/xfce4-13/xfce4-session/default.nix new file mode 100644 index 00000000000..ecf1f6ac505 --- /dev/null +++ b/pkgs/desktops/xfce4-13/xfce4-session/default.nix @@ -0,0 +1,27 @@ +{ mkXfceDerivation, polkit, exo, libxfce4util, libxfce4ui, xfconf, dbus-glib, dbus, iceauth, gtk3, libwnck3, xorg }: + +mkXfceDerivation rec { + category = "xfce"; + pname = "xfce4-session"; + version = "4.13.0"; + + sha256 = "0d6h1kgqq6g084jrxx4jxw98h5g0vwsxqrvk0bmapyxh2sbrg07y"; + + buildInputs = [ exo dbus-glib dbus gtk3 libxfce4ui libxfce4util libwnck3 xfconf polkit iceauth ]; + + configureFlags = [ "--with-xsession-prefix=$(out)" ]; + + NIX_CFLAGS_COMPILE = [ "-I${dbus-glib.dev}/include/dbus-1.0" + "-I${dbus.dev}/include/dbus-1.0" + "-I${dbus.lib}/lib/dbus-1.0/include" + ]; + + postPatch = '' + substituteInPlace configure.ac.in --replace gio-2.0 gio-unix-2.0 + substituteInPlace scripts/xflock4 --replace PATH=/bin:/usr/bin "PATH=\$PATH:$out/bin:${xorg.xset}/bin" + ''; + + meta = { + description = "Session manager for Xfce"; + }; +} From c431713f999f28c4a97f78a6655394fd24c3f532 Mon Sep 17 00:00:00 2001 From: Carlos D Date: Thu, 2 Aug 2018 18:36:57 +1000 Subject: [PATCH 66/81] tinyproxy: init at 1.8.4 --- pkgs/tools/networking/tinyproxy/default.nix | 53 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/tools/networking/tinyproxy/default.nix diff --git a/pkgs/tools/networking/tinyproxy/default.nix b/pkgs/tools/networking/tinyproxy/default.nix new file mode 100644 index 00000000000..b4a2db8a970 --- /dev/null +++ b/pkgs/tools/networking/tinyproxy/default.nix @@ -0,0 +1,53 @@ +{ stdenv, fetchFromGitHub, automake, autoreconfHook, asciidoc, libxml2, libxslt }: + +stdenv.mkDerivation rec{ + name = "tinyproxy-${version}"; + version = "1.8.4"; + + src = fetchFromGitHub { + sha256 = "043mfqin5bsba9igm1lqbkp2spibk4j3niyjqc868cnzgx60709c"; + rev = "${version}"; + repo = "tinyproxy"; + owner = "tinyproxy"; + }; + + nativeBuildInputs = [ autoreconfHook asciidoc libxml2 libxslt ]; + + # -z flag is not supported in darwin + preAutoreconf = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace configure.ac --replace \ + 'LDFLAGS="-Wl,-z,defs $LDFLAGS"' \ + 'LDFLAGS="-Wl, $LDFLAGS"' + ''; + + # See: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=154624 + postConfigure = '' + substituteInPlace docs/man5/Makefile --replace \ + "-f manpage" \ + "-f manpage \\ + -L" + substituteInPlace docs/man8/Makefile --replace \ + "-f manpage" \ + "-f manpage \\ + -L" + ''; + + configureFlags = [ + "--disable-debug" # Turn off debugging + "--enable-xtinyproxy" # Compile in support for the XTinyproxy header, which is sent to any web server in your domain. + "--enable-filter" # Allows Tinyproxy to filter out certain domains and URLs. + "--enable-upstream" # Enable support for proxying connections through another proxy server. + "--enable-transparent" # Allow Tinyproxy to be used as a transparent proxy daemon. + "--enable-reverse" # Enable reverse proxying. + ] ++ + # See: https://github.com/tinyproxy/tinyproxy/issues/1 + stdenv.lib.optional stdenv.isDarwin "--disable-regexcheck"; + + meta = with stdenv.lib; { + homepage = https://tinyproxy.github.io/; + description = "A light-weight HTTP/HTTPS proxy daemon for POSIX operating systems"; + license = licenses.gpl2; + platforms = platforms.all; + maintainers = [ maintainers.carlosdagos ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0ae3f49c443..10c87c5b95f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5448,6 +5448,8 @@ with pkgs; tiny8086 = callPackage ../applications/virtualization/8086tiny { }; + tinyproxy = callPackage ../tools/networking/tinyproxy {}; + tio = callPackage ../tools/misc/tio { }; tldr = callPackage ../tools/misc/tldr { }; From 4979fef9e722c877d87fbb5958d4be6eae03a935 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Thu, 2 Aug 2018 12:06:44 +0200 Subject: [PATCH 67/81] opencollada: add license see issue #43716 --- pkgs/development/libraries/opencollada/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/libraries/opencollada/default.nix b/pkgs/development/libraries/opencollada/default.nix index a0a39980d45..404a62c5fbc 100644 --- a/pkgs/development/libraries/opencollada/default.nix +++ b/pkgs/development/libraries/opencollada/default.nix @@ -31,5 +31,6 @@ stdenv.mkDerivation rec { homepage = https://github.com/KhronosGroup/OpenCOLLADA/; maintainers = [ stdenv.lib.maintainers.eelco ]; platforms = stdenv.lib.platforms.unix; + license = stdenv.lib.licenses.mit; }; } From 5641eb306e1608a09779ab8701e94364faea57f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 2 Aug 2018 12:29:35 +0200 Subject: [PATCH 68/81] abcm2ps: 8.13.23 -> 8.13.24 --- pkgs/tools/audio/abcm2ps/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/audio/abcm2ps/default.nix b/pkgs/tools/audio/abcm2ps/default.nix index 1fd092577f7..023d03f0414 100644 --- a/pkgs/tools/audio/abcm2ps/default.nix +++ b/pkgs/tools/audio/abcm2ps/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { name = "abcm2ps-${version}"; - version = "8.13.23"; + version = "8.13.24"; src = fetchFromGitHub { owner = "leesavide"; repo = "abcm2ps"; rev = "v${version}"; - sha256 = "00bc4vsdvnyznfwcrkij02n2736nsbjlrh0rng96zv00p4abv4ad"; + sha256 = "0xb0gdxbagy6bzrh61s667svab43r06d6yi20gw52dh022mj99ag"; }; prePatch = '' @@ -23,7 +23,9 @@ stdenv.mkDerivation rec { "CC=${stdenv.cc}/bin/cc" ]; - buildInputs = [ which pkgconfig freetype pango ]; + nativeBuildInputs = [ which pkgconfig ]; + + buildInputs = [ freetype pango ]; meta = with stdenv.lib; { homepage = http://moinejf.free.fr/; From 3af85571bf8062b5a7a6b884df0dbaa4d9008f54 Mon Sep 17 00:00:00 2001 From: Pascal Wittmann Date: Thu, 2 Aug 2018 12:45:47 +0200 Subject: [PATCH 69/81] cabextract: 1.6 -> 1.7 --- pkgs/tools/archivers/cabextract/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/archivers/cabextract/default.nix b/pkgs/tools/archivers/cabextract/default.nix index 782e0f461ec..238ee364607 100644 --- a/pkgs/tools/archivers/cabextract/default.nix +++ b/pkgs/tools/archivers/cabextract/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl }: stdenv.mkDerivation rec { - name = "cabextract-1.6"; + name = "cabextract-1.7"; src = fetchurl { url = "https://www.cabextract.org.uk/${name}.tar.gz"; - sha256 = "1ysmmz25fjghq7mxb2anyyvr1ljxqxzi4piwjhk0sdamcnsn3rnf"; + sha256 = "1g86wmb8lkjiv2jarfz979ngbgg7d3si8x5il4g801604v406wi9"; }; meta = with stdenv.lib; { From afaaac243251ab5c37f3ce312ac7ca67d0c938d9 Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Tue, 31 Jul 2018 23:28:33 -0400 Subject: [PATCH 70/81] haskell-language-ecmascript: jailbreak to fix the build --- pkgs/development/haskell-modules/configuration-common.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 8c1c2fac250..f2c2d8b2243 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1125,4 +1125,7 @@ self: super: { # Tests require a browser: https://github.com/ku-fpg/blank-canvas/issues/73 blank-canvas = dontCheck super.blank-canvas; blank-canvas_0_6_2 = dontCheck super.blank-canvas_0_6_2; + + # needed because of testing-feat >=0.4.0.2 && <1.1 + language-ecmascript = doJailbreak super.language-ecmascript; } From b79046e21baafc009245f48fb2a14d69bc994b85 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Thu, 2 Aug 2018 14:08:30 +0200 Subject: [PATCH 71/81] masterpdfeditor: fix broken source url. the old one 404s (#44351) --- pkgs/applications/misc/masterpdfeditor/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/misc/masterpdfeditor/default.nix b/pkgs/applications/misc/masterpdfeditor/default.nix index 23f14d7ac9a..943f36a57ac 100644 --- a/pkgs/applications/misc/masterpdfeditor/default.nix +++ b/pkgs/applications/misc/masterpdfeditor/default.nix @@ -4,7 +4,7 @@ let in stdenv.mkDerivation { name = "masterpdfeditor-${version}"; src = fetchurl { - url = "https://get.code-industry.net/public/master-pdf-editor-${version}_qt5.amd64.tar.gz"; + url = "https://code-industry.net/public/master-pdf-editor-${version}_qt5.amd64.tar.gz"; sha256 = "0k5bzlhqglskiiq86nmy18mnh5bf2w3mr9cq3pibrwn5pisxnxxc"; }; From e8cc4b76b22f4bca3ecc85c49e83e90bd3b69929 Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 2 Aug 2018 12:08:44 +0000 Subject: [PATCH 72/81] xfce4-13.xfce4-panel: fix path to tzdata (#44350) --- pkgs/desktops/xfce4-13/xfce4-panel/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/desktops/xfce4-13/xfce4-panel/default.nix b/pkgs/desktops/xfce4-13/xfce4-panel/default.nix index 7960ee84e38..2b52b515c04 100644 --- a/pkgs/desktops/xfce4-13/xfce4-panel/default.nix +++ b/pkgs/desktops/xfce4-13/xfce4-panel/default.nix @@ -1,4 +1,4 @@ -{ mkXfceDerivation, makeWrapper, exo, garcon, gtk2, gtk3, gettext, glib-networking, libxfce4ui, libxfce4util, libwnck3, xfconf }: +{ mkXfceDerivation, makeWrapper, tzdata, exo, garcon, gtk2, gtk3, gettext, glib-networking, libxfce4ui, libxfce4util, libwnck3, xfconf }: mkXfceDerivation rec { category = "xfce"; @@ -17,6 +17,9 @@ mkXfceDerivation rec { for f in $(find . -name \*.sh); do substituteInPlace $f --replace gettext ${gettext}/bin/gettext done + substituteInPlace plugins/clock/clock.c \ + --replace "/usr/share/zoneinfo" "${tzdata}/share/zoneinfo" \ + --replace "if (!g_file_test (filename, G_FILE_TEST_IS_SYMLINK))" "" ''; configureFlags = [ "--enable-gtk3" ]; From 9b349976fcb53fbb88652158db4478e075ef8ce5 Mon Sep 17 00:00:00 2001 From: Assassinkin Date: Thu, 2 Aug 2018 13:14:37 +0100 Subject: [PATCH 73/81] pythonPackages.spglib:1.10.3.75->1.10.4.1 (#44352) --- pkgs/development/python-modules/spglib/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/spglib/default.nix b/pkgs/development/python-modules/spglib/default.nix index e04589f3dfc..9b51c445e73 100644 --- a/pkgs/development/python-modules/spglib/default.nix +++ b/pkgs/development/python-modules/spglib/default.nix @@ -2,11 +2,11 @@ buildPythonPackage rec { pname = "spglib"; - version = "1.10.3.75"; + version = "1.10.4.1"; src = fetchPypi { inherit pname version; - sha256 = "347fea7c87f7d2162fabb780560665d21a43cbd7a0af08328130ba26e6422143"; + sha256 = "1a50c48dfea450c431a6d6790aa2ebbb10dc43eef97f2794f5038ed1eeecbd30"; }; propagatedBuildInputs = [ numpy ]; @@ -22,6 +22,5 @@ buildPythonPackage rec { license = licenses.bsd3; maintainers = with maintainers; [ psyanticy ]; }; - } From 1895354eedeb996cdd0e665b9b5bc08b7a64a4ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 2 Aug 2018 14:00:29 +0200 Subject: [PATCH 74/81] knot-resolver: 2.4.0 -> 2.4.1 (security) Fixes CVE-2018-10920 and some less important things. https://lists.nic.cz/pipermail/knot-resolver-announce/2018/000002.html --- pkgs/servers/dns/knot-resolver/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/dns/knot-resolver/default.nix b/pkgs/servers/dns/knot-resolver/default.nix index 1d7e5722ea7..6d48ed20e0a 100644 --- a/pkgs/servers/dns/knot-resolver/default.nix +++ b/pkgs/servers/dns/knot-resolver/default.nix @@ -12,11 +12,11 @@ inherit (stdenv.lib) optional concatStringsSep; unwrapped = stdenv.mkDerivation rec { name = "knot-resolver-${version}"; - version = "2.4.0"; + version = "2.4.1"; src = fetchurl { url = "https://secure.nic.cz/files/knot-resolver/${name}.tar.xz"; - sha256 = "8c88c73dd50dad6f371bfc170f49cd374022e59f8005ac1fa6cd99764f72b4d1"; + sha256 = "e8044316cd897ad29b3c5284de06652e1568c4d5861e3147ec2191fbacd8d9ff"; }; outputs = [ "out" "dev" ]; From ca7b17a4a0801adda438dd00f3e7cd02557728fd Mon Sep 17 00:00:00 2001 From: Giulio Eulisse Date: Thu, 2 Aug 2018 15:24:23 +0200 Subject: [PATCH 75/81] doing: init at 1.0.10pre (#44034) --- pkgs/applications/misc/doing/Gemfile | 2 + pkgs/applications/misc/doing/Gemfile.lock | 25 ++++++++++ pkgs/applications/misc/doing/default.nix | 25 ++++++++++ pkgs/applications/misc/doing/gemset.nix | 60 +++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 5 files changed, 113 insertions(+) create mode 100644 pkgs/applications/misc/doing/Gemfile create mode 100644 pkgs/applications/misc/doing/Gemfile.lock create mode 100644 pkgs/applications/misc/doing/default.nix create mode 100644 pkgs/applications/misc/doing/gemset.nix diff --git a/pkgs/applications/misc/doing/Gemfile b/pkgs/applications/misc/doing/Gemfile new file mode 100644 index 00000000000..2706a85e9d8 --- /dev/null +++ b/pkgs/applications/misc/doing/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'doing', '1.0.10pre' diff --git a/pkgs/applications/misc/doing/Gemfile.lock b/pkgs/applications/misc/doing/Gemfile.lock new file mode 100644 index 00000000000..4d266827415 --- /dev/null +++ b/pkgs/applications/misc/doing/Gemfile.lock @@ -0,0 +1,25 @@ +GEM + remote: https://rubygems.org/ + specs: + chronic (0.10.2) + deep_merge (1.2.1) + doing (1.0.10pre) + chronic (~> 0.10, >= 0.10.2) + deep_merge + gli (~> 2.17.1) + haml (= 4.0.3) + json (~> 1.8.1) + gli (2.17.1) + haml (4.0.3) + tilt + json (1.8.6) + tilt (2.0.8) + +PLATFORMS + ruby + +DEPENDENCIES + doing (= 1.0.10pre) + +BUNDLED WITH + 1.14.6 diff --git a/pkgs/applications/misc/doing/default.nix b/pkgs/applications/misc/doing/default.nix new file mode 100644 index 00000000000..0286e38a0ed --- /dev/null +++ b/pkgs/applications/misc/doing/default.nix @@ -0,0 +1,25 @@ +{ lib, bundlerEnv, ruby +}: + +# Bundix: +# nix-shell -p bundix zlib +bundlerEnv rec { + pname = "doing"; + version = (import ./gemset.nix).doing.version; + + inherit ruby; + gemdir = ./.; + + meta = with lib; { + description = "A command line tool for keeping track of what you’re doing and tracking what you’ve done."; + longDescription = '' + doing is a basic CLI for adding and listing "what was I doing" reminders + in a TaskPaper-formatted text file. It allows for multiple + sections/categories and flexible output formatting. + ''; + homepage = http://brettterpstra.com/projects/doing/; + license = licenses.mit; + maintainers = with maintainers; [ ktf ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/applications/misc/doing/gemset.nix b/pkgs/applications/misc/doing/gemset.nix new file mode 100644 index 00000000000..b30a124bb58 --- /dev/null +++ b/pkgs/applications/misc/doing/gemset.nix @@ -0,0 +1,60 @@ +{ + chronic = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1hrdkn4g8x7dlzxwb1rfgr8kw3bp4ywg5l4y4i9c2g5cwv62yvvn"; + type = "gem"; + }; + version = "0.10.2"; + }; + deep_merge = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1q3picw7zx1xdkybmrnhmk2hycxzaa0jv4gqrby1s90dy5n7fmsb"; + type = "gem"; + }; + version = "1.2.1"; + }; + doing = { + dependencies = ["chronic" "deep_merge" "gli" "haml" "json"]; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1y42yc7h45sz9hqj3g1dd77ipx58l7v64i7mrsj3is2f5rszd1rv"; + type = "gem"; + }; + version = "1.0.10pre"; + }; + gli = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0g7g3lxhh2b4h4im58zywj9vcfixfgndfsvp84cr3x67b5zm4kaq"; + type = "gem"; + }; + version = "2.17.1"; + }; + haml = { + dependencies = ["tilt"]; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1l9zhfdk9z7xjfdp108r9fw4xa55hflin7hh3lpafbf9bdz96knr"; + type = "gem"; + }; + version = "4.0.3"; + }; + json = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0qmj7fypgb9vag723w1a49qihxrcf5shzars106ynw2zk352gbv5"; + type = "gem"; + }; + version = "1.8.6"; + }; + tilt = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0020mrgdf11q23hm1ddd6fv691l51vi10af00f137ilcdb2ycfra"; + type = "gem"; + }; + version = "2.0.8"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ac6a89201f9..94fe1349f8d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22047,4 +22047,5 @@ with pkgs; powershell = callPackage ../shells/powershell { }; + doing = callPackage ../applications/misc/doing { }; } From a568eec08cf85246f56528ff242e00678c51a3aa Mon Sep 17 00:00:00 2001 From: Carlos D'Agostino Date: Thu, 2 Aug 2018 23:35:29 +1000 Subject: [PATCH 76/81] tinyproxy: add docbook_xsl and add nonet option to a2x --- pkgs/tools/networking/tinyproxy/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/networking/tinyproxy/default.nix b/pkgs/tools/networking/tinyproxy/default.nix index b4a2db8a970..8ecc8554435 100644 --- a/pkgs/tools/networking/tinyproxy/default.nix +++ b/pkgs/tools/networking/tinyproxy/default.nix @@ -1,4 +1,5 @@ -{ stdenv, fetchFromGitHub, automake, autoreconfHook, asciidoc, libxml2, libxslt }: +{ stdenv, fetchFromGitHub, automake, autoreconfHook, asciidoc, libxml2, + libxslt, docbook_xsl }: stdenv.mkDerivation rec{ name = "tinyproxy-${version}"; @@ -11,7 +12,7 @@ stdenv.mkDerivation rec{ owner = "tinyproxy"; }; - nativeBuildInputs = [ autoreconfHook asciidoc libxml2 libxslt ]; + nativeBuildInputs = [ autoreconfHook asciidoc libxml2 libxslt docbook_xsl ]; # -z flag is not supported in darwin preAutoreconf = stdenv.lib.optionalString stdenv.isDarwin '' @@ -24,11 +25,13 @@ stdenv.mkDerivation rec{ postConfigure = '' substituteInPlace docs/man5/Makefile --replace \ "-f manpage" \ - "-f manpage \\ + "--xsltproc-opts=--nonet \\ + -f manpage \\ -L" substituteInPlace docs/man8/Makefile --replace \ "-f manpage" \ - "-f manpage \\ + "--xsltproc-opts=--nonet \\ + -f manpage \\ -L" ''; From 632bda238fb278d5b77df40d03b1c7f2ed51a643 Mon Sep 17 00:00:00 2001 From: Imuli Date: Thu, 2 Aug 2018 10:24:48 -0400 Subject: [PATCH 77/81] idrisPackages.graphviz: fix homepage (#44355) --- pkgs/development/idris-modules/graphviz.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/idris-modules/graphviz.nix b/pkgs/development/idris-modules/graphviz.nix index 955b459289a..47c2ee638c5 100644 --- a/pkgs/development/idris-modules/graphviz.nix +++ b/pkgs/development/idris-modules/graphviz.nix @@ -22,7 +22,7 @@ build-idris-package { meta = { description = "Parser and library for graphviz dot files"; - homepage = https://github.com/mgttlinger/idris-graphviz; + homepage = https://gitlab.com/mgttlinger/idris-graphviz; license = lib.licenses.gpl3; maintainers = [ lib.maintainers.brainrape ]; }; From 3bd5580b04c1e74cc3cb1756a345040ce131e0da Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 2 Aug 2018 16:30:16 +0200 Subject: [PATCH 78/81] python34: 3.4.8 -> 3.4.9 --- pkgs/development/interpreters/python/cpython/3.4/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/3.4/default.nix b/pkgs/development/interpreters/python/cpython/3.4/default.nix index 7e583087c08..c8a544c601a 100644 --- a/pkgs/development/interpreters/python/cpython/3.4/default.nix +++ b/pkgs/development/interpreters/python/cpython/3.4/default.nix @@ -27,7 +27,7 @@ with stdenv.lib; let majorVersion = "3.4"; - minorVersion = "8"; + minorVersion = "9"; minorVersionSuffix = ""; version = "${majorVersion}.${minorVersion}${minorVersionSuffix}"; libPrefix = "python${majorVersion}"; @@ -49,7 +49,7 @@ in stdenv.mkDerivation { src = fetchurl { url = "http://www.python.org/ftp/python/${version}/Python-${version}.tar.xz"; - sha256 = "1sn3i9z9m56inlfrqs250qv8snl8w211wpig2pfjlyrcj3x75919"; + sha256 = "1n9b1kavmw8b7rc3gkrka4fjzrbfq9iqy791yncaf09bp9v9cqjr"; }; NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s"; From 3a61a9478973c62fc3c17d7d49e85cf6104926da Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Thu, 2 Aug 2018 16:30:27 +0200 Subject: [PATCH 79/81] python35: 3.5.5 -> 3.5.6 --- pkgs/development/interpreters/python/cpython/3.5/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/interpreters/python/cpython/3.5/default.nix b/pkgs/development/interpreters/python/cpython/3.5/default.nix index 588880c1e82..2de337a8395 100644 --- a/pkgs/development/interpreters/python/cpython/3.5/default.nix +++ b/pkgs/development/interpreters/python/cpython/3.5/default.nix @@ -27,7 +27,7 @@ with stdenv.lib; let majorVersion = "3.5"; - minorVersion = "5"; + minorVersion = "6"; minorVersionSuffix = ""; version = "${majorVersion}.${minorVersion}${minorVersionSuffix}"; libPrefix = "python${majorVersion}"; @@ -49,7 +49,7 @@ in stdenv.mkDerivation { src = fetchurl { url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz"; - sha256 = "02ahsijk3a42sdzfp2il49shx0v4birhy7kkj0dikmh20hxjqg86"; + sha256 = "0pqmf51zy2lzhbaj4yya2py2qr653j9152d0rg3p7wi1yl2dwp7m"; }; NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s"; From 86b5b1e1742293eb5ce0c47dacdb72a3b10b43ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 2 Aug 2018 16:31:31 +0200 Subject: [PATCH 80/81] Revert "android-studio-preview: Print a deprecation warning" This reverts commit 88bfbf6c7d2308b59f1ca69169c8c9853815ae6b. It broke the tarball job. Discussion: https://github.com/NixOS/nixpkgs/pull/44310#issuecomment-409690460 --- .../editors/android-studio/common.nix | 16 ++-------------- .../editors/android-studio/default.nix | 8 ++------ pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 5 insertions(+), 21 deletions(-) diff --git a/pkgs/applications/editors/android-studio/common.nix b/pkgs/applications/editors/android-studio/common.nix index c980999dc6b..cd031ce5ac8 100644 --- a/pkgs/applications/editors/android-studio/common.nix +++ b/pkgs/applications/editors/android-studio/common.nix @@ -1,4 +1,4 @@ -{ channel, pname, version, build, sha256Hash, deprecated ? false }: +{ channel, pname, version, build, sha256Hash }: { bash , buildFHSUserEnv @@ -37,18 +37,6 @@ }: let - # TODO: This is a bit stupid to be honest... - # The problem is that we have to make sure this is only executed if the - # derivation is actually build to avoid always printing this warning (e.g. - # "nix-env -qaP"). Since this will always evaluate to "" it won't actually - # change the derivation (only generate a side-effect) but we have to make - # sure this expression is evaluated lazily! - printDeprecationWarning = if deprecated then (builtins.trace '' - android-studio-preview and androidStudioPackages.preview are old aliases - and will be dropped at some point, please use androidStudioPackages.beta - instead (corresponds to the correct channel name).'' - "") - else ""; drvName = "android-studio-${channel}-${version}"; androidStudio = stdenv.mkDerivation { name = drvName; @@ -142,7 +130,7 @@ in text = '' #!${bash}/bin/bash ${fhsEnv}/bin/${drvName}-fhs-env ${androidStudio}/bin/studio.sh - '' + printDeprecationWarning; + ''; } // { meta = with stdenv.lib; { description = "The Official IDE for Android (${channel} channel)"; diff --git a/pkgs/applications/editors/android-studio/default.nix b/pkgs/applications/editors/android-studio/default.nix index af58611bddf..b60687c50ba 100644 --- a/pkgs/applications/editors/android-studio/default.nix +++ b/pkgs/applications/editors/android-studio/default.nix @@ -23,12 +23,8 @@ let sha256Hash = "0r93yzw87cgzz60p60gknij5vaqmv1a1kyd4cr9gx8cbxw46lhwh"; }; in rec { - # TODO: Drop old alias after 18.09 - preview = mkStudio (betaVersion // { - channel = "beta"; - pname = "android-studio-preview"; - deprecated = true; - }); + # Old alias + preview = beta; # Attributes are named by their corresponding release channels diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 87b822fd7aa..77dc96884b8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15204,7 +15204,7 @@ with pkgs; androidStudioPackages = recurseIntoAttrs (callPackage ../applications/editors/android-studio { }); android-studio = androidStudioPackages.stable; - android-studio-preview = androidStudioPackages.preview; # TODO: Drop old alias after 18.09 + android-studio-preview = androidStudioPackages.beta; antfs-cli = callPackage ../applications/misc/antfs-cli {}; From 0aae3fda066752a84762ccc5438cae1b22f07b5e Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Thu, 2 Aug 2018 16:39:57 +0200 Subject: [PATCH 81/81] graphite: 1.0.2 -> 1.1.3 & moved dependencies to python-modules (#44276) Fixes #30891 * Upgrade `graphite-web`, `carbon` and `whisper` from 1.0.2 -> 1.1.3. * Replaced the deprecated `pythonPackages.graphite_influxdb` with `pythonPackages.influxgraph.` * Renamed `pythonPackages.graphite_web` to `pythonPackages.graphite-web` to be consistent with the Python package name. * Replaced the unmaintained `pythonPackages.graphite_pager` with `pythonPackages.graphitepager` * Moved all new packages from `python-packages.nix` to `pkgs/development/python-modules` --- .../modules/services/monitoring/graphite.nix | 14 +- nixos/tests/graphite.nix | 5 +- .../python-modules/carbon/default.nix | 24 +++ .../python-modules/graphite-web/default.nix | 54 ++++++ .../graphite_beacon/default.nix | 25 +++ .../python-modules/graphitepager/default.nix | 32 ++++ .../python-modules/influxgraph/default.nix | 30 +++ .../python-modules/whisper/default.nix | 20 ++ pkgs/top-level/python-packages.nix | 171 ++---------------- 9 files changed, 207 insertions(+), 168 deletions(-) create mode 100644 pkgs/development/python-modules/carbon/default.nix create mode 100644 pkgs/development/python-modules/graphite-web/default.nix create mode 100644 pkgs/development/python-modules/graphite_beacon/default.nix create mode 100644 pkgs/development/python-modules/graphitepager/default.nix create mode 100644 pkgs/development/python-modules/influxgraph/default.nix create mode 100644 pkgs/development/python-modules/whisper/default.nix diff --git a/nixos/modules/services/monitoring/graphite.nix b/nixos/modules/services/monitoring/graphite.nix index 7ad26c137e5..cdfd746bc5a 100644 --- a/nixos/modules/services/monitoring/graphite.nix +++ b/nixos/modules/services/monitoring/graphite.nix @@ -136,7 +136,7 @@ in { finders = mkOption { description = "List of finder plugins to load."; default = []; - example = literalExample "[ pkgs.python27Packages.graphite_influxdb ]"; + example = literalExample "[ pkgs.python27Packages.influxgraph ]"; type = types.listOf types.package; }; @@ -485,7 +485,7 @@ in { PYTHONPATH = let penv = pkgs.python.buildEnv.override { extraLibs = [ - pythonPackages.graphite_web + pythonPackages.graphite-web pythonPackages.pysqlite ]; }; @@ -524,16 +524,16 @@ in { fi # Only collect static files when graphite_web changes. - if ! [ "${dataDir}/current_graphite_web" -ef "${pythonPackages.graphite_web}" ]; then + if ! [ "${dataDir}/current_graphite_web" -ef "${pythonPackages.graphite-web}" ]; then mkdir -p ${staticDir} ${pkgs.pythonPackages.django_1_8}/bin/django-admin.py collectstatic --noinput --clear chown -R graphite:graphite ${staticDir} - ln -sfT "${pythonPackages.graphite_web}" "${dataDir}/current_graphite_web" + ln -sfT "${pythonPackages.graphite-web}" "${dataDir}/current_graphite_web" fi ''; }; - environment.systemPackages = [ pythonPackages.graphite_web ]; + environment.systemPackages = [ pythonPackages.graphite-web ]; })) (mkIf cfg.api.enable { @@ -607,7 +607,7 @@ in { GRAPHITE_URL = cfg.pager.graphiteUrl; }; serviceConfig = { - ExecStart = "${pkgs.pythonPackages.graphite_pager}/bin/graphite-pager --config ${pagerConfig}"; + ExecStart = "${pkgs.pythonPackages.graphitepager}/bin/graphite-pager --config ${pagerConfig}"; User = "graphite"; Group = "graphite"; }; @@ -615,7 +615,7 @@ in { services.redis.enable = mkDefault true; - environment.systemPackages = [ pkgs.pythonPackages.graphite_pager ]; + environment.systemPackages = [ pkgs.pythonPackages.graphitepager ]; }) (mkIf cfg.beacon.enable { diff --git a/nixos/tests/graphite.nix b/nixos/tests/graphite.nix index 1fe4357191e..27a87bdbb9f 100644 --- a/nixos/tests/graphite.nix +++ b/nixos/tests/graphite.nix @@ -1,4 +1,4 @@ -import ./make-test.nix ({ ... } : +import ./make-test.nix ({ pkgs, ... } : { name = "graphite"; nodes = { @@ -11,10 +11,12 @@ import ./make-test.nix ({ ... } : api = { enable = true; port = 8082; + finders = [ pkgs.python27Packages.influxgraph ]; }; carbon.enableCache = true; seyren.enable = true; pager.enable = true; + beacon.enable = true; }; }; }; @@ -25,6 +27,7 @@ import ./make-test.nix ({ ... } : $one->waitForUnit("graphiteWeb.service"); $one->waitForUnit("graphiteApi.service"); $one->waitForUnit("graphitePager.service"); + $one->waitForUnit("graphite-beacon.service"); $one->waitForUnit("carbonCache.service"); $one->waitForUnit("seyren.service"); # The services above are of type "simple". systemd considers them active immediately diff --git a/pkgs/development/python-modules/carbon/default.nix b/pkgs/development/python-modules/carbon/default.nix new file mode 100644 index 00000000000..df14f44f0b0 --- /dev/null +++ b/pkgs/development/python-modules/carbon/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k +, twisted, whisper, txamqp, cachetools, urllib3 +}: + +buildPythonPackage rec { + pname = "carbon"; + version = "1.1.3"; + + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "1s7327p30w4l9ak4gc7m5ga521233179n2lr3j0ggfbmfhd6blky"; + }; + + propagatedBuildInputs = [ twisted whisper txamqp cachetools urllib3 ]; + + meta = with stdenv.lib; { + homepage = http://graphite.wikidot.com/; + description = "Backend data caching and persistence daemon for Graphite"; + maintainers = with maintainers; [ rickynils offline basvandijk ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/development/python-modules/graphite-web/default.nix b/pkgs/development/python-modules/graphite-web/default.nix new file mode 100644 index 00000000000..791eb1b8cf0 --- /dev/null +++ b/pkgs/development/python-modules/graphite-web/default.nix @@ -0,0 +1,54 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k, which +, django, django_tagging, whisper, pycairo, cairocffi, ldap, memcached, pytz, urllib3, scandir +}: +if django.version != "1.8.18" +|| django_tagging.version != "0.4.3" +then throw "graphite-web should be build with django_1_8 and django_tagging_0_4_3" +else buildPythonPackage rec { + pname = "graphite-web"; + version = "1.1.3"; + + disabled = isPy3k; + + src = fetchPypi { + inherit pname version; + sha256 = "0nvyq1859abdch2l90avsjk9vb03s7wgxgrjsqvjhf2b9c1ncsfh"; + }; + + propagatedBuildInputs = [ + django django_tagging whisper pycairo cairocffi + ldap memcached pytz urllib3 scandir + ]; + + postInstall = '' + wrapProgram $out/bin/run-graphite-devel-server.py \ + --prefix PATH : ${which}/bin + ''; + + preConfigure = '' + # graphite is configured by storing a local_settings.py file inside the + # graphite python package. Since that package is stored in the immutable + # Nix store we can't modify it. So how do we configure graphite? + # + # First of all we rename "graphite.local_settings" to + # "graphite_local_settings" so that the settings are not looked up in the + # graphite package anymore. Secondly we place a directory containing a + # graphite_local_settings.py on the PYTHONPATH in the graphite module + # . + substituteInPlace webapp/graphite/settings.py \ + --replace "graphite.local_settings" " graphite_local_settings" + + substituteInPlace webapp/graphite/settings.py \ + --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')" + ''; + + # error: invalid command 'test' + doCheck = false; + + meta = with stdenv.lib; { + homepage = http://graphite.wikidot.com/; + description = "Enterprise scalable realtime graphing"; + maintainers = with maintainers; [ rickynils offline basvandijk ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/development/python-modules/graphite_beacon/default.nix b/pkgs/development/python-modules/graphite_beacon/default.nix new file mode 100644 index 00000000000..b94a92bc02f --- /dev/null +++ b/pkgs/development/python-modules/graphite_beacon/default.nix @@ -0,0 +1,25 @@ +{ stdenv, buildPythonPackage, fetchPypi +, tornado, pyyaml, funcparserlib +}: +buildPythonPackage rec { + pname = "graphite_beacon"; + version = "0.27.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks"; + }; + + propagatedBuildInputs = [ tornado pyyaml funcparserlib ]; + + postPatch = '' + substituteInPlace requirements.txt --replace "==" ">=" + ''; + + meta = with stdenv.lib; { + description = "A simple alerting application for Graphite metrics"; + homepage = https://github.com/klen/graphite-beacon; + maintainers = [ maintainers.offline ]; + license = licenses.mit; + }; +} diff --git a/pkgs/development/python-modules/graphitepager/default.nix b/pkgs/development/python-modules/graphitepager/default.nix new file mode 100644 index 00000000000..d2ab8d547fd --- /dev/null +++ b/pkgs/development/python-modules/graphitepager/default.nix @@ -0,0 +1,32 @@ +{ stdenv, buildPythonPackage, fetchPypi +, jinja2, markupsafe, pagerduty, pushbullet, python_magic, python-simple-hipchat +, pyyaml, redis, requests, six, websocket_client, nose +}: +buildPythonPackage rec { + pname = "graphitepager"; + version = "0.2.11"; + + src = fetchPypi { + inherit pname version; + sha256 = "0v3g1qcgnkpgjzh6phnv13lnk8qjrcs9sq2qg6k0dk5ik31jfk3d"; + }; + + propagatedBuildInputs = [ + jinja2 markupsafe pagerduty pushbullet python_magic python-simple-hipchat + pyyaml redis requests six websocket_client + ]; + + postPatch = '' + substituteInPlace requirements.txt --replace "==" ">=" + ''; + + checkInputs = [ nose ]; + checkPhase = "nosetests"; + + meta = with stdenv.lib; { + description = "A simple alerting application for Graphite metrics"; + homepage = https://github.com/seatgeek/graphite-pager; + maintainers = with maintainers; [ offline basvandijk ]; + license = licenses.bsd2; + }; +} diff --git a/pkgs/development/python-modules/influxgraph/default.nix b/pkgs/development/python-modules/influxgraph/default.nix new file mode 100644 index 00000000000..4f7ba65a27f --- /dev/null +++ b/pkgs/development/python-modules/influxgraph/default.nix @@ -0,0 +1,30 @@ +{ stdenv, buildPythonPackage, fetchPypi, isPy3k +, influxdb, graphite_api, memcached, gnugrep +}: + +buildPythonPackage rec { + pname = "influxgraph"; + version = "1.5.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0l33sfwdh4bfprmzp2kx0d9098g6yxbnhyyx9qr3kzczpm0jg9vy"; + }; + + patchPhase = stdenv.lib.optionalString isPy3k '' + sed 's/python-memcached/python3-memcached/' \ + -i ./influxgraph.egg-info/requires.txt \ + -i ./setup.py + ''; + + propagatedBuildInputs = [ influxdb graphite_api memcached ]; + + passthru.moduleName = "influxgraph.InfluxDBFinder"; + + meta = with stdenv.lib; { + description = "InfluxDB storage plugin for Graphite-API"; + homepage = https://github.com/InfluxGraph/influxgraph; + license = licenses.asl20; + maintainers = with maintainers; [ basvandijk ]; + }; +} diff --git a/pkgs/development/python-modules/whisper/default.nix b/pkgs/development/python-modules/whisper/default.nix new file mode 100644 index 00000000000..4d48b63da54 --- /dev/null +++ b/pkgs/development/python-modules/whisper/default.nix @@ -0,0 +1,20 @@ +{ stdenv, buildPythonPackage, fetchPypi, six }: + +buildPythonPackage rec { + pname = "whisper"; + version = "1.1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1ahzsxk52ws8k3kdq52qbsbsx2r9z350j8gg9adw4x5fjwksz4r8"; + }; + + propagatedBuildInputs = [ six ]; + + meta = with stdenv.lib; { + homepage = http://graphite.wikidot.com/; + description = "Fixed size round-robin style database"; + maintainers = with maintainers; [ rickynils offline basvandijk ]; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 614736ce744..757849dd2e9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -69,8 +69,6 @@ let # See build-setupcfg/default.nix for documentation. buildSetupcfg = import ../build-support/build-setupcfg self; - graphiteVersion = "1.0.2"; - fetchPypi = makeOverridable( {format ? "setuptools", ... } @attrs: let fetchWheel = {pname, version, sha256, python ? "py2.py3", abi ? "none", platform ? "any"}: @@ -4782,13 +4780,14 @@ in { django_tagging = callPackage ../development/python-modules/django_tagging { }; django_tagging_0_4_3 = if - self.django != self.django_1_8 + self.django.version != "1.8.18" then throw "django_tagging_0_4_3 should be build with django_1_8" else (callPackage ../development/python-modules/django_tagging {}).overrideAttrs (attrs: rec { - name = "django-tagging-0.4.3"; + pname = "django-tagging"; + version = "0.4.3"; - src = pkgs.fetchurl { - url = "mirror://pypi/d/django-tagging/${name}.tar.gz"; + src = fetchPypi { + inherit pname version; sha256 = "0617azpmp6jpg3d88v2ir97qrc9aqcs2s9gyvv9bgf2cp55khxhs"; }; propagatedBuildInputs = with self; [ django ]; @@ -15401,24 +15400,7 @@ EOF whichcraft = callPackage ../development/python-modules/whichcraft { }; - whisper = buildPythonPackage rec { - name = "whisper-${version}"; - version = graphiteVersion; - - src = pkgs.fetchurl { - url = "mirror://pypi/w/whisper/${name}.tar.gz"; - sha256 = "1v1bi3fl1i6p4z4ki692bykrkw6907dn3mfq0151f70lvi3zpns3"; - }; - - # error: invalid command 'test' - doCheck = false; - - meta = { - homepage = http://graphite.wikidot.com/; - description = "Fixed size round-robin style database"; - maintainers = with maintainers; [ rickynils offline ]; - }; - }; + whisper = callPackage ../development/python-modules/whisper { }; worldengine = buildPythonPackage rec { name = "worldengine-${version}"; @@ -15468,27 +15450,7 @@ EOF }; }; - carbon = buildPythonPackage rec { - name = "carbon-${version}"; - version = graphiteVersion; - - disabled = isPy3k; - - src = pkgs.fetchurl { - url = "mirror://pypi/c/carbon/${name}.tar.gz"; - sha256 = "142smpmgbnjinvfb6s4ijazish4vfgzyd8zcmdkh55y051fkixkn"; - }; - - propagatedBuildInputs = with self; [ whisper txamqp zope_interface twisted ]; - - meta = { - homepage = http://graphite.wikidot.com/; - description = "Backend data caching and persistence daemon for Graphite"; - maintainers = with maintainers; [ rickynils offline ]; - license = licenses.asl20; - }; - }; - + carbon = callPackage ../development/python-modules/carbon { }; ujson = buildPythonPackage rec { name = "ujson-1.35"; @@ -15616,126 +15578,15 @@ EOF }; }; - graphite_web = if - self.django != self.django_1_8 - || self.django_tagging != self.django_tagging_0_4_3 - then throw "graphite_web should be build with django_1_8 and django_tagging_0_4_3" - else buildPythonPackage rec { - name = "graphite-web-${version}"; - disabled = isPy3k; - version = graphiteVersion; - - src = pkgs.fetchurl rec { - url = "mirror://pypi/g/graphite-web/${name}.tar.gz"; - sha256 = "0q8bwlj75jqyzmazfsi5sa26xl58ssa8wdxm2l4j0jqyn8xpfnmc"; - }; - - propagatedBuildInputs = with self; [ - django django_tagging whisper pycairo cairocffi - ldap memcached pytz urllib3 scandir - ]; - - postInstall = '' - wrapProgram $out/bin/run-graphite-devel-server.py \ - --prefix PATH : ${pkgs.which}/bin - ''; - - preConfigure = '' - # graphite is configured by storing a local_settings.py file inside the - # graphite python package. Since that package is stored in the immutable - # Nix store we can't modify it. So how do we configure graphite? - # - # First of all we rename "graphite.local_settings" to - # "graphite_local_settings" so that the settings are not looked up in the - # graphite package anymore. Secondly we place a directory containing a - # graphite_local_settings.py on the PYTHONPATH in the graphite module - # . - substituteInPlace webapp/graphite/settings.py \ - --replace "graphite.local_settings" " graphite_local_settings" - - substituteInPlace webapp/graphite/settings.py \ - --replace "join(WEBAPP_DIR, 'content')" "join('$out', 'webapp', 'content')" - ''; - - # error: invalid command 'test' - doCheck = false; - - meta = { - homepage = http://graphite.wikidot.com/; - description = "Enterprise scalable realtime graphing"; - maintainers = with maintainers; [ rickynils offline ]; - }; - }; + graphite-web = callPackage ../development/python-modules/graphite-web { }; graphite_api = callPackage ../development/python-modules/graphite-api { }; - graphite_beacon = buildPythonPackage rec { - name = "graphite_beacon-0.27.0"; + graphite_beacon = callPackage ../development/python-modules/graphite_beacon { }; - src = pkgs.fetchurl { - url = "mirror://pypi/g/graphite_beacon/${name}.tar.gz"; - sha256 = "03bp4wyfn3xhcqyvs5hnk1n87m4smsmm1p7qp459m7j8hwpbq2ks"; - }; - - propagatedBuildInputs = [ self.tornado self.pyyaml self.funcparserlib ]; - - preBuild = "> requirements.txt"; - - meta = { - description = "A simple alerting application for Graphite metrics"; - homepage = https://github.com/klen/graphite-beacon; - maintainers = [ maintainers.offline ]; - license = licenses.mit; - }; - }; - - graphite_influxdb = buildPythonPackage rec { - name = "graphite-influxdb-0.3"; - - src = pkgs.fetchgit { - url = "https://github.com/vimeo/graphite-influxdb.git"; - rev = "2273d12a24e1d804685a36debfd4224b7416b62f"; - sha256 = "1v00fgrnmsd9c0ahggyw9sia5m7dyzz16i5pa4vy6w2sbfyrmm4v"; - }; - - propagatedBuildInputs = with self; [ influxdb graphite_api ]; - - passthru.moduleName = "graphite_influxdb.InfluxdbFinder"; - - meta = { - description = "An influxdb backend for Graphite-web and graphite-api"; - homepage = https://github.com/vimeo/graphite-influxdb; - license = licenses.asl20; - }; - }; - - graphite_pager = buildPythonPackage rec { - name = "graphite-pager-${version}"; - version = "2bbfe91220ec1e0ca1cdf4b5564386482a44ed7d"; - - src = pkgs.fetchgit { - url = "https://github.com/offlinehacker/graphite-pager.git"; - sha256 = "0ylal0vkc2yrjvssfz1gls84yk9vkvvkx3pyv4lx15jm2qqzdmxd"; - rev = version; - }; - - buildInputs = with self; [ nose mock ]; - propagatedBuildInputs = with self; [ - jinja2 pyyaml redis requests pagerduty - python-simple-hipchat pushbullet - ]; - - patchPhase = "> requirements.txt"; - checkPhase = "nosetests"; - - meta = { - description = "A simple alerting application for Graphite metrics"; - homepage = https://github.com/seatgeek/graphite-pager; - maintainers = with maintainers; [ offline ]; - license = licenses.bsd2; - }; - }; + influxgraph = callPackage ../development/python-modules/influxgraph { }; + graphitepager = callPackage ../development/python-modules/graphitepager { }; pyspotify = buildPythonPackage rec { name = "pyspotify-${version}";