From 856335396f0a0208474fb033b96e9dfb7d194dab Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 5 Mar 2018 16:42:14 -0600 Subject: [PATCH 01/73] x86_64-musl: use native-built bootstrap package on x86_64 Built using: https://github.com/NixOS/nixpkgs/commits/46f83fa9d1bf00b09b1e9a9aa83f577c246ac674 --- pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix b/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix index 12093f340008..dd27c7def4fb 100644 --- a/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix +++ b/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix @@ -5,7 +5,7 @@ executable = true; }; bootstrapTools = import { - url = https://wdtz.org/files/030q34q7fk6jdfxkgcqp5rzr4yhw3pgx-stdenv-bootstrap-tools-x86_64-unknown-linux-musl/on-server/bootstrap-tools.tar.xz; - sha256 = "0ly0wj8wzbikn2j8sn727vikk90bq36drh98qvfx1kkh5k5azm2j"; + url = https://wdtz.org/files/2m15z3pmg495w52jc8dg2nbxxzmzvb04-stdenv-bootstrap-tools/on-server/bootstrap-tools.tar.xz; + sha256 = "1w66l0ra0sfy83hs80w6l0lb015hrhdg3xd89xh4c5kr8bcrjriw"; }; } From d7c2cffd86978999b14a671b0976306366cb16a8 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 5 Mar 2018 17:34:45 -0600 Subject: [PATCH 02/73] x86_64-musl: regen again w/symlinks preserved --- pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix b/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix index dd27c7def4fb..4ec56028a548 100644 --- a/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix +++ b/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix @@ -1,11 +1,11 @@ { busybox = import { - url = https://wdtz.org/files/030q34q7fk6jdfxkgcqp5rzr4yhw3pgx-stdenv-bootstrap-tools-x86_64-unknown-linux-musl/on-server/busybox; - sha256 = "16lzrwwvdk6q3g08gs45pldz0rh6xpln2343xr444960h6wqxl5v"; + url = https://wdtz.org/files/6bh4giyw5rf8mc28621rxipw8d6w6w8d-stdenv-bootstrap-tools/on-server/busybox; + sha256 = "0779c2wn00467h76xpqil678gfi1y2p57c7zq2d917jsv2qj5009"; executable = true; }; bootstrapTools = import { - url = https://wdtz.org/files/2m15z3pmg495w52jc8dg2nbxxzmzvb04-stdenv-bootstrap-tools/on-server/bootstrap-tools.tar.xz; - sha256 = "1w66l0ra0sfy83hs80w6l0lb015hrhdg3xd89xh4c5kr8bcrjriw"; + url = https://wdtz.org/files/6bh4giyw5rf8mc28621rxipw8d6w6w8d-stdenv-bootstrap-tools/on-server/bootstrap-tools.tar.xz; + sha256 = "197h8gjw51q3i25myapzgqba2l4h2skzwi3q1iry26mzjjmbcvys"; }; } From a6e7c85ab87bd13ef42f13d067737da298ba7664 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 6 Mar 2018 11:22:19 -0600 Subject: [PATCH 03/73] x86_64-musl bootstrap regen, much smaller compressed: 28M -> 20M uncompressed: 201M -> 119M Built using: https://github.com/NixOS/nixpkgs/commit/94f3dc4fdf0c6b32816d67f422d8220e9954c76e cc https://github.com/NixOS/nixpkgs/pull/36383 --- pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix b/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix index 4ec56028a548..543c1c838492 100644 --- a/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix +++ b/pkgs/stdenv/linux/bootstrap-files/x86_64-musl.nix @@ -1,11 +1,11 @@ { busybox = import { - url = https://wdtz.org/files/6bh4giyw5rf8mc28621rxipw8d6w6w8d-stdenv-bootstrap-tools/on-server/busybox; + url = https://wdtz.org/files/gywxhjgl70sxippa0pxs0vj5qcgz1wi8-stdenv-bootstrap-tools/on-server/busybox; sha256 = "0779c2wn00467h76xpqil678gfi1y2p57c7zq2d917jsv2qj5009"; executable = true; }; bootstrapTools = import { - url = https://wdtz.org/files/6bh4giyw5rf8mc28621rxipw8d6w6w8d-stdenv-bootstrap-tools/on-server/bootstrap-tools.tar.xz; - sha256 = "197h8gjw51q3i25myapzgqba2l4h2skzwi3q1iry26mzjjmbcvys"; + url = https://wdtz.org/files/gywxhjgl70sxippa0pxs0vj5qcgz1wi8-stdenv-bootstrap-tools/on-server/bootstrap-tools.tar.xz; + sha256 = "1dwiqw4xvnm0b5fdgl89lz2qq45f6s9icwxn6n6ams71xw0dbqyi"; }; } From 3ff636fb2e756ac57d7f0007dc2c6c2425401997 Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Sat, 22 Dec 2018 09:13:50 +0100 Subject: [PATCH 04/73] ldc: 1.11.0 -> 1.12.0 Additional various cleanups here and there --- pkgs/development/compilers/ldc/default.nix | 143 +++++++-------------- 1 file changed, 48 insertions(+), 95 deletions(-) diff --git a/pkgs/development/compilers/ldc/default.nix b/pkgs/development/compilers/ldc/default.nix index e39d6ae8e206..80ccb0dbbd30 100644 --- a/pkgs/development/compilers/ldc/default.nix +++ b/pkgs/development/compilers/ldc/default.nix @@ -2,19 +2,18 @@ , python, libconfig, lit, gdb, unzip, darwin, bash , callPackage, makeWrapper, targetPackages , bootstrapVersion ? false -, version ? "1.11.0" -, ldcSha256 ? "0w4z261gzji31hn1xdnmi9dfkbyydpy6rz8aj4456q5w8yp4yil5" +, version ? "1.12.0" +, ldcSha256 ? "1fdma1w8j37wkr0pqdar11slkk36qymamxnk6d9k8ybhjmxaaawm" }: let - bootstrapLdc = if !bootstrapVersion then # LDC 0.17.x is the last version which doesn't need a working D compiler to # build so we use that version to bootstrap the actual build. callPackage ./default.nix { bootstrapVersion = true; - version = "0.17.5"; - ldcSha256 = "0200r5y8hs5yv2cx24csgyh00dlg18877b9cfblixypr6nhl19bs"; + version = "0.17.6"; + ldcSha256 = "0qf5kbxddgmg3kqzi0kf4bgv8vdrnv16y07hcpm0cwv9mc3qr2w6"; } else ""; @@ -31,97 +30,52 @@ let postUnpack = '' patchShebangs . + '' + + + stdenv.lib.optionalString (!bootstrapVersion && stdenv.hostPlatform.isDarwin) '' + # http://forum.dlang.org/thread/xtbbqthxutdoyhnxjhxl@forum.dlang.org + rm -r ldc-${version}-src/tests/dynamiccompile + + # https://github.com/NixOS/nixpkgs/issues/34817 + rm -r ldc-${version}-src/tests/plugins/addFuncEntryCall + + # https://github.com/NixOS/nixpkgs/pull/36378#issuecomment-385034818 + rm -r ldc-${version}-src/tests/debuginfo/classtypes_gdb.d + rm -r ldc-${version}-src/tests/debuginfo/nested_gdb.d + + rm ldc-${version}-src/tests/d2/dmd-testsuite/runnable/test16096.sh + rm ldc-${version}-src/tests/d2/dmd-testsuite/compilable/ldc_output_filenames.sh + rm ldc-${version}-src/tests/d2/dmd-testsuite/compilable/crlf.sh + rm ldc-${version}-src/tests/d2/dmd-testsuite/compilable/issue15574.sh + rm ldc-${version}-src/tests/d2/dmd-testsuite/compilable/test6461.sh + '' + + + stdenv.lib.optionalString (!bootstrapVersion) '' + echo ${tzdata}/share/zoneinfo/ > ldc-${version}-src/TZDatabaseDirFile # Remove cppa test for now because it doesn't work. rm ldc-${version}-src/tests/d2/dmd-testsuite/runnable/cppa.d rm ldc-${version}-src/tests/d2/dmd-testsuite/runnable/extra-files/cppb.cpp - '' - - + stdenv.lib.optionalString (bootstrapVersion) '' - # ... runnable/variadic.d () - #Test failed. The logged output: - #/tmp/nix-build-ldcBuild-0.17.5.drv-0/ldc-0.17.5-src/build/bin/ldmd2 -conf= -m64 -Irunnable -od/tmp/nix-build-ldcBuild-0.17.5.drv-0/ldc-0.17.5-src/build/dmd-testsuite/runnable -of/tmp/nix-build-ldcBuild-0.17.5.drv-0/ldc-0.17.5-src/build/dmd-testsuite/runnable/variadic_0 runnable/variadic.d - #Error: integer constant expression expected instead of - #Error: integer constant expression expected instead of - #Error: integer constant expression expected instead of - #Error: integer constant expression expected instead of - #Error: integer constant expression expected instead of - #runnable/variadic.d(84): Error: template instance variadic.Foo3!(int, int, int) error instantiating - # - # - #============================== - #Test failed: expected rc == 0, exited with rc == 1 - rm ldc-${version}-src/tests/d2/dmd-testsuite/runnable/variadic.d - '' - - + stdenv.lib.optionalString (!bootstrapVersion) '' - # http://forum.dlang.org/thread/xtbbqthxutdoyhnxjhxl@forum.dlang.org - rm -r ldc-${version}-src/tests/dynamiccompile - - # https://github.com/NixOS/nixpkgs/issues/34817 - rm -r ldc-${version}-src/tests/plugins/addFuncEntryCall ''; - ROOT_HOME_DIR = "$(echo ~root)"; - datetimePath = if bootstrapVersion then "phobos/std/datetime.d" else "phobos/std/datetime/timezone.d"; postPatch = '' - substituteInPlace runtime/${datetimePath} \ - --replace "import core.time;" "import core.time;import std.path;" - - substituteInPlace runtime/${datetimePath} \ - --replace "tzName == \"leapseconds\"" "baseName(tzName) == \"leapseconds\"" - + # https://issues.dlang.org/show_bug.cgi?id=15391 substituteInPlace runtime/phobos/std/net/curl.d \ --replace libcurl.so ${curl.out}/lib/libcurl.so - # Ugly hack to fix the hardcoded path to zoneinfo in the source file. - # https://issues.dlang.org/show_bug.cgi?id=15391 - substituteInPlace runtime/${datetimePath} \ - --replace /usr/share/zoneinfo/ ${tzdata}/share/zoneinfo/ - substituteInPlace tests/d2/dmd-testsuite/Makefile \ --replace "SHELL=/bin/bash" "SHELL=${bash}/bin/bash" '' - + stdenv.lib.optionalString stdenv.hostPlatform.isLinux '' - # See https://github.com/NixOS/nixpkgs/issues/29443 - substituteInPlace runtime/phobos/std/path.d \ - --replace "\"/root" "\"${ROOT_HOME_DIR}" - - # Can be remove with front end version >= 2.078.0 - substituteInPlace runtime/druntime/src/core/memory.d \ - --replace "assert(z is null);" "//assert(z is null);" - '' - + stdenv.lib.optionalString (bootstrapVersion && stdenv.hostPlatform.isDarwin) '' - # https://github.com/ldc-developers/ldc/pull/2306 - # Can be removed on bootstrap version > 0.17.5 - substituteInPlace gen/programs.cpp \ - --replace "gcc" "clang" - # Was not able to compile on darwin due to "__inline_isnanl" # being undefined. substituteInPlace dmd2/root/port.c --replace __inline_isnanl __inline_isnan - '' - - + stdenv.lib.optionalString (!bootstrapVersion) '' - # TODO Can be removed with the next ldc version > 1.7.0 - # https://github.com/ldc-developers/ldc/issues/2493 - substituteInPlace tests/d2/dmd-testsuite/Makefile \ - --replace "# disable tests based on arch" "DISABLED_TESTS += test_cdvecfill" - '' - - + stdenv.lib.optionalString (bootstrapVersion) '' - substituteInPlace runtime/${datetimePath} \ - --replace "import std.traits;" "import std.traits;import std.path;" - - substituteInPlace runtime/${datetimePath} \ - --replace "tzName == \"+VERSION\"" "baseName(tzName) == \"leapseconds\" || tzName == \"+VERSION\"" ''; nativeBuildInputs = [ cmake makeWrapper llvm bootstrapLdc python lit gdb unzip ] @@ -137,17 +91,24 @@ let buildInputs = [ curl tzdata ]; - preConfigure = '' - cmakeFlagsArray=("-DINCLUDE_INSTALL_DIR=$out/include/dlang/ldc" - "-DCMAKE_BUILD_TYPE=Release" - "-DCMAKE_SKIP_RPATH=ON" - "-DBUILD_SHARED_LIBS=OFF" - "-DLDC_WITH_LLD=OFF" - # Xcode 9.0.1 fixes that bug according to ldc release notes - "-DRT_ARCHIVE_WITH_LDC=OFF" - ) + #"-DINCLUDE_INSTALL_DIR=$out/include/dlang/ldc" + # Xcode 9.0.1 fixes that bug according to ldc release notes + #"-DRT_ARCHIVE_WITH_LDC=OFF" + #"-DD_FLAGS=TZ_DATABASE_DIR=${tzdata}/share/zoneinfo/" + #"-DCMAKE_BUILD_TYPE=Release" + #"-DCMAKE_SKIP_RPATH=ON" + + #-DINCLUDE_INSTALL_DIR=$out/include/dlang/ldc + # + cmakeFlagsString = stdenv.lib.optionalString (!bootstrapVersion) '' + "-DD_FLAGS=-d-version=TZDatabaseDir;-J$PWD" ''; + preConfigure = stdenv.lib.optionalString (!bootstrapVersion) '' + cmakeFlagsArray=( + ${cmakeFlagsString} + ) + ''; postConfigure = '' export DMD=$PWD/bin/ldmd2 @@ -155,10 +116,7 @@ let makeFlags = [ "DMD=$DMD" ]; - # Disable tests on Darwin for now because of - # https://github.com/NixOS/nixpkgs/issues/41099 - # https://github.com/NixOS/nixpkgs/pull/36378#issuecomment-385034818 - doCheck = !bootstrapVersion && !stdenv.hostPlatform.isDarwin; + doCheck = !bootstrapVersion; checkPhase = '' # Build and run LDC D unittests. @@ -216,15 +174,10 @@ let buildInputs = ldcBuild.buildInputs; preConfigure = '' - cmakeFlagsArray=( "-DINCLUDE_INSTALL_DIR=$out/include/dlang/ldc" - "-DCMAKE_BUILD_TYPE=Release" - "-DCMAKE_SKIP_RPATH=ON" - "-DBUILD_SHARED_LIBS=OFF" - "-DLDC_WITH_LLD=OFF" - # Xcode 9.0.1 fixes that bug according to ldc release notes - "-DRT_ARCHIVE_WITH_LDC=OFF" - "-DD_COMPILER=${ldcBuild.out}/bin/ldmd2" - ) + cmakeFlagsArray=( + ${ldcBuild.cmakeFlagsString} + "-DD_COMPILER=${ldcBuild.out}/bin/ldmd2" + ) ''; postConfigure = ldcBuild.postConfigure; From 50e450cc2ddedfad4673cacb0582b72cce2043a7 Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Sat, 22 Dec 2018 18:07:50 +0100 Subject: [PATCH 05/73] dmd: 2.081.2 -> 2.083.1 --- pkgs/development/compilers/dmd/default.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/pkgs/development/compilers/dmd/default.nix b/pkgs/development/compilers/dmd/default.nix index 90e5cfe74119..8d68a6d4d3f9 100644 --- a/pkgs/development/compilers/dmd/default.nix +++ b/pkgs/development/compilers/dmd/default.nix @@ -2,10 +2,10 @@ , makeWrapper, unzip, which , curl, tzdata, gdb, darwin , callPackage, targetPackages, ldc -, version ? "2.081.2" -, dmdSha256 ? "1wwk4shqldvgyczv1ihmljpfj3yidq7mxcj69i9kjl7jqx54hw62" -, druntimeSha256 ? "0dqfsy34q2q7mk2gsi4ix3vgqg7szg3m067fghgx53vnvrzlpsc0" -, phobosSha256 ? "1dan59lc4wggsrv5aax7jsxnzg7fz37xah84k1cbwjb3xxhhkd9n" +, version ? "2.083.1" +, dmdSha256 ? "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90" +, druntimeSha256 ? "1hm9p59ih21yv8x7cqjhkyy94677q4f8wk9fs9i1rybx8x19njyn" +, phobosSha256 ? "1zmz0f1wj0dgxy2cy63ljjc1sl2sgb7ij8bamlxw9nxrchwi3l43" }: let @@ -48,12 +48,15 @@ let # Remove cppa test for now because it doesn't work. rm dmd/test/runnable/cppa.d rm dmd/test/runnable/extra-files/cppb.cpp + '' + + + stdenv.lib.optionalString (stdenv.hostPlatform.isDarwin) '' + rm dmd/test/runnable/test16096.sh ''; # Compile with PIC to prevent colliding modules with binutils 2.28. # https://issues.dlang.org/show_bug.cgi?id=17375 usePIC = "-fPIC"; - ROOT_HOME_DIR = "$(echo ~root)"; phobosPatches = '' # Ugly hack so the dlopen call has a chance to succeed. @@ -105,13 +108,14 @@ let cd ../druntime make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} cd ../phobos - make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} TZ_DATABASE_DIR=${tzdata}/share/zoneinfo/ + echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile + make -j$NIX_BUILD_CORES -f posix.mak BUILD=release ENABLE_RELEASE=1 PIC=1 INSTALL_DIR=$out DMD=${pathToDmd} DFLAGS="-version=TZDatabaseDir -J$(pwd)" cd .. ''; # Disable tests on Darwin for now because of # https://github.com/NixOS/nixpkgs/issues/41099 - doCheck = !stdenv.hostPlatform.isDarwin; + doCheck = true; checkPhase = '' cd dmd @@ -197,7 +201,8 @@ let buildPhase = '' cd phobos - make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd TZ_DATABASE_DIR=${tzdata}/share/zoneinfo/ + echo ${tzdata}/share/zoneinfo/ > TZDatabaseDirFile + make -j$NIX_BUILD_CORES -f posix.mak unittest BUILD=release ENABLE_RELEASE=1 PIC=1 DMD=${dmdBuild}/bin/dmd DFLAGS="-version=TZDatabaseDir -J$(pwd)" ''; installPhase = '' From 42e5ebb9c6a6601a027dbf6dd754f60427fa1f25 Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Thu, 27 Dec 2018 13:23:57 +0100 Subject: [PATCH 06/73] dtools: 2.081.2 -> 2.083.1 --- pkgs/development/tools/dtools/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/dtools/default.nix b/pkgs/development/tools/dtools/default.nix index b1703cd45dd5..9fc1a682c60a 100644 --- a/pkgs/development/tools/dtools/default.nix +++ b/pkgs/development/tools/dtools/default.nix @@ -2,21 +2,21 @@ stdenv.mkDerivation rec { name = "dtools-${version}"; - version = "2.081.2"; + version = "2.083.1"; srcs = [ (fetchFromGitHub { owner = "dlang"; repo = "dmd"; rev = "v${version}"; - sha256 = "1wwk4shqldvgyczv1ihmljpfj3yidq7mxcj69i9kjl7jqx54hw62"; + sha256 = "0b52yq7slgbrawb22kib9bk2x9xjiy6axwz1317fck5axl093d90"; name = "dmd"; }) (fetchFromGitHub { owner = "dlang"; repo = "tools"; rev = "v${version}"; - sha256 = "1sbcfj8r1nvy7ynh9dy55q9bvfvxwf1z3llpxckvi8p6yvf35qn2"; + sha256 = "0z3xkv9s1pdx8zdhsb92mwax2q5xhwjgh6g3iv53xip1nsxygn48"; name = "dtools"; }) ]; From 0bee7282c11c9bb812433531bf8ad18d62d3117e Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Thu, 27 Dec 2018 13:40:51 +0100 Subject: [PATCH 07/73] dub: 1.10.0 -> 1.12.1 --- pkgs/development/tools/build-managers/dub/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/build-managers/dub/default.nix b/pkgs/development/tools/build-managers/dub/default.nix index 11461fc69522..cce34b17040e 100644 --- a/pkgs/development/tools/build-managers/dub/default.nix +++ b/pkgs/development/tools/build-managers/dub/default.nix @@ -4,7 +4,7 @@ let dubBuild = stdenv.mkDerivation rec { name = "dubBuild-${version}"; - version = "1.10.0"; + version = "1.12.1"; enableParallelBuilding = true; @@ -12,7 +12,7 @@ let owner = "dlang"; repo = "dub"; rev = "v${version}"; - sha256 = "02xxpfcjs427jqbwz0vh5vl3bh62ys65zmi9gpa3svzqffyx13n4"; + sha256 = "0q4968vxgfxhq6ywhdvj6sqddwf7aadqmmpfqc6nl65r7jyga52a"; }; postUnpack = '' From 2cf4b84aff90927b4921ad3a2589dbc4784724b0 Mon Sep 17 00:00:00 2001 From: Thomas Mader Date: Thu, 27 Dec 2018 13:41:58 +0100 Subject: [PATCH 08/73] Literate: 2018-08-20 -> 2018-12-23 --- .../tools/literate-programming/Literate/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/literate-programming/Literate/default.nix b/pkgs/development/tools/literate-programming/Literate/default.nix index 8fbbcdb6e5f7..d8afdf54a933 100644 --- a/pkgs/development/tools/literate-programming/Literate/default.nix +++ b/pkgs/development/tools/literate-programming/Literate/default.nix @@ -1,12 +1,12 @@ { stdenv, fetchgit, dmd, dub }: stdenv.mkDerivation { - name = "Literate-2018-08-20"; + name = "Literate-2018-12-23"; src = fetchgit { url = "https://github.com/zyedidia/Literate.git"; - rev = "737567e49c9e12ac56222c147191da58ea1521e2"; - sha256 = "19v8v66lv8ayg3irqkbk7ln5lkmgwpx4wgz8h3yr81arl40bbzqs"; + rev = "99a0b7dd1ac451c2386094be06364df9386c3862"; + sha256 = "0jvciajr33iz049m0yal41mz9p8nxmwkpq2mrfhg1ysx2zv3q3pm"; }; buildInputs = [ dmd dub ]; From 70a05bcfaab04de980c70ac42934cf17636cad07 Mon Sep 17 00:00:00 2001 From: Milan Svoboda Date: Sun, 30 Dec 2018 15:25:05 +0100 Subject: [PATCH 09/73] wings3d: 1.5.4 -> 2.2.1 --- pkgs/applications/graphics/wings/default.nix | 29 +++++++++--------- pkgs/development/libraries/esdl/default.nix | 32 -------------------- pkgs/top-level/all-packages.nix | 5 +-- 3 files changed, 16 insertions(+), 50 deletions(-) delete mode 100644 pkgs/development/libraries/esdl/default.nix diff --git a/pkgs/applications/graphics/wings/default.nix b/pkgs/applications/graphics/wings/default.nix index 9ecf94e21c01..be2b2b51a73e 100644 --- a/pkgs/applications/graphics/wings/default.nix +++ b/pkgs/applications/graphics/wings/default.nix @@ -1,34 +1,35 @@ -{ fetchurl, stdenv, erlang, esdl, cl }: +{ fetchurl, stdenv, erlang, cl, libGL, libGLU }: stdenv.mkDerivation rec { - name = "wings-1.5.4"; + name = "wings-2.2.1"; src = fetchurl { url = "mirror://sourceforge/wings/${name}.tar.bz2"; - sha256 = "0qz6rmmkqgk3p0d3v2ikkf22n511bq0m7xp3kkradwrp28fcl15x"; + sha256 = "1adlq3wd9bz0hjznpzsgilxgsbhr0kk01f06872mq37v4cbw76bh"; }; - ERL_LIBS = "${esdl}/lib/erlang/lib:${cl}/lib/erlang/lib"; + ERL_LIBS = "${cl}/lib/erlang/lib"; patchPhase = '' - sed -i 's,include("sdl_keyboard.hrl"),include_lib("esdl/include/sdl_keyboard.hrl"),' \ - src/wings_body.erl plugins_src/commands/wpc_constraints.erl - - # Fix reference - sed -i 's,wings/e3d/,,' plugins_src/import_export/wpc_lwo.erl + sed -i 's,-Werror ,,' e3d/Makefile + sed -i 's,../../wings/,../,' icons/Makefile + find plugins_src -mindepth 2 -type f -name "*.[eh]rl" -exec sed -i 's,wings/src/,../../src/,' {} \; + find plugins_src -mindepth 2 -type f -name "*.[eh]rl" -exec sed -i 's,wings/e3d/,../../e3d/,' {} \; + find plugins_src -mindepth 2 -type f -name "*.[eh]rl" -exec sed -i 's,wings/intl_tools/,../../intl_tools/,' {} \; + find . -type f -name "*.[eh]rl" -exec sed -i 's,wings/src/,../src/,' {} \; + find . -type f -name "*.[eh]rl" -exec sed -i 's,wings/e3d/,../e3d/,' {} \; + find . -type f -name "*.[eh]rl" -exec sed -i 's,wings/intl_tools/,../intl_tools/,' {} \; ''; - buildInputs = [ erlang esdl cl ]; + buildInputs = [ erlang cl libGL libGLU ]; # I did not test the *cl* part. I added the -pa just by imitation. installPhase = '' mkdir -p $out/bin $out/lib/${name}/ebin cp ebin/* $out/lib/${name}/ebin - cp -R fonts textures shaders plugins $out/lib/$name + cp -R icons textures shaders plugins $out/lib/$name cat << EOF > $out/bin/wings #!/bin/sh - ${erlang}/bin/erl -smp disable \ - -pa ${esdl}/lib/erlang/lib/${cl.name}/ebin \ - -pa ${esdl}/lib/erlang/lib/${esdl.name}/ebin \ + ${erlang}/bin/erl \ -pa $out/lib/${name}/ebin -run wings_start start_halt "$@" EOF chmod +x $out/bin/wings diff --git a/pkgs/development/libraries/esdl/default.nix b/pkgs/development/libraries/esdl/default.nix deleted file mode 100644 index 7b40359837a3..000000000000 --- a/pkgs/development/libraries/esdl/default.nix +++ /dev/null @@ -1,32 +0,0 @@ -{stdenv, fetchurl, SDL, libGLU_combined, rebar, erlang}: - -stdenv.mkDerivation rec { - name = "esdl-1.3.1"; - - src = fetchurl { - url = "mirror://sourceforge/esdl/${name}.src.tgz"; - sha256 = "0f5ad519600qarsa2anmnaxh6b7djzx1dnwxzi4l36pxsq896y01"; - }; - - buildInputs = [ erlang rebar ]; - propagatedBuildInputs = [ SDL libGLU_combined ]; - - buildPhase = '' - rebar compile - ''; - - # 'cp' line taken from Arch recipe - # https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/erlang-sdl - installPhase = '' - DIR=$out/lib/erlang/lib/${name} - mkdir -p $DIR - cp -ruv c_src doc ebin include priv src $DIR - ''; - - meta = { - homepage = http://esdl.sourceforge.net/; - description = "Erlang binding to SDL that includes a binding to OpenGL"; - license = "BSD"; - platforms = stdenv.lib.platforms.linux; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9494790f0666..e670c14cd694 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9649,8 +9649,6 @@ in epoxy = callPackage ../development/libraries/epoxy {}; - esdl = callPackage ../development/libraries/esdl { }; - libesmtp = callPackage ../development/libraries/libesmtp { }; exiv2 = callPackage ../development/libraries/exiv2 { }; @@ -19953,8 +19951,7 @@ in winswitch = callPackage ../tools/X11/winswitch { }; wings = callPackage ../applications/graphics/wings { - esdl = esdl.override { erlang = erlangR18; }; - erlang = erlangR18; + erlang = erlangR21; }; write_stylus = libsForQt5.callPackage ../applications/graphics/write_stylus { }; From c65e727236e9222c49cc0eb8b157c0352190657d Mon Sep 17 00:00:00 2001 From: Milan Svoboda Date: Sun, 30 Dec 2018 15:47:32 +0100 Subject: [PATCH 10/73] remove icons folder --- pkgs/applications/graphics/wings/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/graphics/wings/default.nix b/pkgs/applications/graphics/wings/default.nix index be2b2b51a73e..ed3220d2bf96 100644 --- a/pkgs/applications/graphics/wings/default.nix +++ b/pkgs/applications/graphics/wings/default.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { installPhase = '' mkdir -p $out/bin $out/lib/${name}/ebin cp ebin/* $out/lib/${name}/ebin - cp -R icons textures shaders plugins $out/lib/$name + cp -R textures shaders plugins $out/lib/$name cat << EOF > $out/bin/wings #!/bin/sh ${erlang}/bin/erl \ From 104d37c7a2aec3247a684562860621874c4d60eb Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 30 Dec 2018 16:20:50 -0600 Subject: [PATCH 11/73] trilium: init at 0.26.1 --- pkgs/applications/office/trilium/default.nix | 58 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 60 insertions(+) create mode 100644 pkgs/applications/office/trilium/default.nix diff --git a/pkgs/applications/office/trilium/default.nix b/pkgs/applications/office/trilium/default.nix new file mode 100644 index 000000000000..c274ef0440d7 --- /dev/null +++ b/pkgs/applications/office/trilium/default.nix @@ -0,0 +1,58 @@ +{ stdenv, fetchurl, p7zip, autoPatchelfHook, atomEnv, makeWrapper, makeDesktopItem }: + +let + description = "Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases."; + desktopItem = makeDesktopItem { + name = "Trilium"; + exec = "trilium"; + icon = "trilium"; + comment = description; + desktopName = "Trilium Notes"; + categories = "Office"; + }; + +in stdenv.mkDerivation rec { + name = "trilium-${version}"; + version = "0.26.1"; + + src = fetchurl { + url = "https://github.com/zadam/trilium/releases/download/v${version}/trilium-linux-x64-${version}.7z"; + sha256 = "184b0b0s8q32h1mpkrin8x1q0kjvard7r7xqrclziwwxg4khp3cz"; + }; + + nativeBuildInputs = [ + p7zip /* for unpacking */ + autoPatchelfHook + makeWrapper + ]; + + buildInputs = atomEnv.packages; + + installPhase = '' + mkdir -p $out/bin + mkdir -p $out/share/trilium + mkdir -p $out/share/{applications,icons/hicolor/scalable/apps} + + cp -r ./* $out/share/trilium + ln -s $out/share/trilium/trilium $out/bin/trilium + + ln -s $out/share/trilium/resources/app/src/public/images/trilium.svg $out/share/icons/hicolor/scalable/apps/trilium.svg + cp ${desktopItem}/share/applications/* $out/share/applications + ''; + + + # This "shouldn't" be needed, remove when possible :) + preFixup = '' + wrapProgram $out/bin/trilium --prefix LD_LIBRARY_PATH : "${atomEnv.libPath}" + ''; + + dontStrip = true; + + meta = with stdenv.lib; { + inherit description; + homepage = https://github.com/zadam/trilium; + license = licenses.agpl3; + platforms = platforms.linux; + maintainers = with maintainers; [ emmanuelrosa dtzWill ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 03fa56c02138..bda5d4d42ff8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5874,6 +5874,8 @@ in triggerhappy = callPackage ../tools/inputmethods/triggerhappy {}; + trilium = callPackage ../applications/office/trilium { }; + trousers = callPackage ../tools/security/trousers { }; tryton = callPackage ../applications/office/tryton { }; From dc34d82a28bdc955142143fde8285241047a03e8 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 30 Dec 2018 16:50:49 -0600 Subject: [PATCH 12/73] release: add more unstable release-critical jobs Adds a few new blocking jobs: - pandoc.x86_64-linux - unar.x86_64-linux - re-enable gimp.x86_64-darwin for darwin-tested --- pkgs/top-level/release.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/release.nix b/pkgs/top-level/release.nix index 9bdad5473d4e..6c2159f9befd 100644 --- a/pkgs/top-level/release.nix +++ b/pkgs/top-level/release.nix @@ -51,6 +51,7 @@ let jobs.nix-info-tested.x86_64-darwin jobs.openssh.x86_64-darwin jobs.openssl.x86_64-darwin + jobs.pandoc.x86_64-darwin jobs.postgresql.x86_64-darwin jobs.python.x86_64-darwin jobs.python3.x86_64-darwin @@ -64,7 +65,7 @@ let jobs.firefox-unwrapped.x86_64-darwin jobs.qt5.qtmultimedia.x86_64-darwin jobs.inkscape.x86_64-darwin - # jobs.gimp.x86_64-darwin + jobs.gimp.x86_64-darwin jobs.emacs.x86_64-darwin jobs.wireshark.x86_64-darwin jobs.transmission-gtk.x86_64-darwin @@ -91,6 +92,7 @@ let jobs.lib-tests jobs.stdenv.x86_64-linux jobs.linux.x86_64-linux + jobs.pandoc.x86_64-linux jobs.python.x86_64-linux jobs.python3.x86_64-linux # Needed by travis-ci to test PRs @@ -100,6 +102,7 @@ let jobs.nix-info-tested.x86_64-linux # Ensure that X11/GTK+ are in order. jobs.thunderbird.x86_64-linux + jobs.unar.x86_64-linux jobs.tests.cc-wrapper.x86_64-linux jobs.tests.cc-wrapper-gcc7.x86_64-linux From fd42776622df0dcc618255584e237531484ec2a5 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Sun, 30 Dec 2018 11:39:19 -0600 Subject: [PATCH 13/73] libxmlb: 0.1.5 -> 0.1.6 --- pkgs/development/libraries/libxmlb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libxmlb/default.nix b/pkgs/development/libraries/libxmlb/default.nix index 201940f1705e..cce73ba89bcd 100644 --- a/pkgs/development/libraries/libxmlb/default.nix +++ b/pkgs/development/libraries/libxmlb/default.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { name = "libxmlb-${version}"; - version = "0.1.5"; + version = "0.1.6"; outputs = [ "out" "lib" "dev" "devdoc" ]; @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { owner = "hughsie"; repo = "libxmlb"; rev = version; - sha256 = "037j9fwkzsy3765gl2grkrmbxrfs67wlai213qbgsa5xn6fb8y68"; + sha256 = "194slg11lp2i8zvc4a3zkzshps7qglzmrabp5k0r92rampx4dbwa"; }; nativeBuildInputs = [ meson ninja python3 pkgconfig gobject-introspection gtk-doc shared-mime-info docbook_xsl docbook_xml_dtd_43 ]; From 89851509d54129a6dd6cfe6bd394342c733eea0b Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 31 Oct 2018 16:37:29 -0500 Subject: [PATCH 14/73] fractal: init at 4.0.0 ! Matrix chat app. --- .../instant-messengers/fractal/default.nix | 43 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 + 2 files changed, 45 insertions(+) create mode 100644 pkgs/applications/networking/instant-messengers/fractal/default.nix diff --git a/pkgs/applications/networking/instant-messengers/fractal/default.nix b/pkgs/applications/networking/instant-messengers/fractal/default.nix new file mode 100644 index 000000000000..45137aafcaeb --- /dev/null +++ b/pkgs/applications/networking/instant-messengers/fractal/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchurl, fetchFromGitLab, meson, ninja, gettext, cargo, rustc, python3, rustPlatform, pkgconfig, gtksourceview +, hicolor-icon-theme, glib, libhandy, gtk3, libsecret, dbus, openssl, sqlite, gst_all_1, wrapGAppsHook }: + +rustPlatform.buildRustPackage rec { + version = "4.0.0"; + name = "fractal-${version}"; + + src = fetchFromGitLab { + domain = "gitlab.gnome.org"; + owner = "GNOME"; + repo = "fractal"; + rev = version; + sha256 = "05q47jdgbi5jz01280msb8gxnbsrgf2jvglfm6k40f1xw4wxkrzy"; + }; + + nativeBuildInputs = [ + meson ninja pkgconfig gettext cargo rustc python3 wrapGAppsHook + ]; + buildInputs = [ + glib gtk3 libhandy dbus openssl sqlite gst_all_1.gstreamer gst_all_1.gst-plugins-base gst_all_1.gst-plugins-bad + gtksourceview hicolor-icon-theme libsecret + ]; + + postPatch = '' + patchShebangs scripts/meson_post_install.py + ''; + + # Don't use buildRustPackage phases, only use it for rust deps setup + configurePhase = null; + buildPhase = null; + checkPhase = null; + installPhase = null; + + cargoSha256 = "0hlvdcdzkggc2adggmlxz0yxigwp3320wfav77gddlvfip1f90sw"; + + meta = with stdenv.lib; { + description = "Matrix group messaging app"; + homepage = https://gitlab.gnome.org/GNOME/fractal; + license = licenses.gpl3; + maintainers = with maintainers; [ dtzWill ]; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 64709155d1ba..1aa5303b8183 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17230,6 +17230,8 @@ in fomp = callPackage ../applications/audio/fomp { }; + fractal = callPackage ../applications/networking/instant-messengers/fractal { }; + freecad = callPackage ../applications/graphics/freecad { mpi = openmpi; }; freemind = callPackage ../applications/misc/freemind { }; From 6e26190763077de481f638abf0eb3e9dacd4fed6 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 31 Dec 2018 02:21:14 +0100 Subject: [PATCH 15/73] fsv: init at 0.9-1 --- pkgs/applications/misc/fsv/default.nix | 47 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 49 insertions(+) create mode 100644 pkgs/applications/misc/fsv/default.nix diff --git a/pkgs/applications/misc/fsv/default.nix b/pkgs/applications/misc/fsv/default.nix new file mode 100644 index 000000000000..782a37040d8f --- /dev/null +++ b/pkgs/applications/misc/fsv/default.nix @@ -0,0 +1,47 @@ +{ stdenv, fetchurl, fetchFromGitHub, autoreconfHook +, libtool, pkgconfig, gtk2, libGLU, file +}: + +let + gtkglarea = stdenv.mkDerivation rec { + name = "gtkglarea-${version}"; + version = "2.1.0"; + src = fetchurl { + url = "mirror://gnome/sources/gtkglarea/2.1/${name}.tar.xz"; + sha256 = "1pl2vdj6l64j864ilhkq1bcggb3hrlxjwk5m029i7xfjfxc587lf"; + }; + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ gtk2 libGLU ]; + hardeningDisable = [ "format" ]; + }; + +in stdenv.mkDerivation rec { + name = "fsv-${version}"; + version = "0.9-1"; + + src = fetchFromGitHub { + owner = "mcuelenaere"; + repo = "fsv"; + rev = name; + sha256 = "0n09jd7yqj18mx6zqbg7kab4idg5llr15g6avafj74fpg1h7iimj"; + }; + + nativeBuildInputs = [ autoreconfHook libtool pkgconfig ]; + buildInputs = [ file gtk2 libGLU gtkglarea ]; + + meta = with stdenv.lib; { + description = "fsv is a file system visualizer in cyberspace"; + longDescription = '' + fsv (pronounced eff-ess-vee) is a file system visualizer in cyberspace. + It lays out files and directories in three dimensions, geometrically + representing the file system hierarchy to allow visual overview + and analysis. fsv can visualize a modest home directory, a workstation's + hard drive, or any arbitrarily large collection of files, limited only + by the host computer's memory and graphics hardware. + ''; + homepage = https://github.com/mcuelenaere/fsv; + license = licenses.lgpl2; + platforms = platforms.mesaPlatforms; + maintainers = with maintainers; [ rnhmjoj ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 03fa56c02138..0e7e4a4a7cce 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16984,6 +16984,8 @@ in fritzing = libsForQt5.callPackage ../applications/science/electronics/fritzing { }; + fsv = callPackages ../applications/misc/fsv { }; + fvwm = callPackage ../applications/window-managers/fvwm { }; ganttproject-bin = callPackage ../applications/misc/ganttproject-bin { }; From ce235f70ca23f6b82113920ec938bec3e6e9832d Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Fri, 14 Dec 2018 15:05:38 +0100 Subject: [PATCH 16/73] postgresql_9_3: drop Postgresql 9.3 reached end of life on november 11, 2018 (see https://www.postgresql.org/about/news/1905/) (Rebase of #52052. Closes #52052.) Signed-off-by: Austin Seipp --- pkgs/servers/sql/postgresql/default.nix | 6 ------ pkgs/top-level/aliases.nix | 1 - pkgs/top-level/all-packages.nix | 2 -- 3 files changed, 9 deletions(-) diff --git a/pkgs/servers/sql/postgresql/default.nix b/pkgs/servers/sql/postgresql/default.nix index 2b56c32d6350..b8c06d5ec2f5 100644 --- a/pkgs/servers/sql/postgresql/default.nix +++ b/pkgs/servers/sql/postgresql/default.nix @@ -113,12 +113,6 @@ let in { - postgresql_9_3 = common { - version = "9.3.25"; - psqlSchema = "9.3"; - sha256 = "1nxn0hjrg4y5v5n2jgzrbicgv4504r2yfjyk6g6rq0sx8603x5g4"; - }; - postgresql_9_4 = common { version = "9.4.20"; psqlSchema = "9.4"; diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index b56640049d87..51916f3146eb 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -234,7 +234,6 @@ mapAliases ({ pltScheme = racket; # just to be sure pmtools = acpica-tools; # added 2018-11-01 poppler_qt5 = libsForQt5.poppler; # added 2015-12-19 - postgresql93 = postgresql_9_3; postgresql94 = postgresql_9_4; postgresql95 = postgresql_9_5; postgresql96 = postgresql_9_6; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 28a3698e59c0..b38692036541 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13891,7 +13891,6 @@ in pgbouncer = callPackage ../servers/sql/pgbouncer { }; - pgpool93 = pgpool.override { postgresql = postgresql_9_3; }; pgpool94 = pgpool.override { postgresql = postgresql_9_4; }; pgpool = callPackage ../servers/sql/pgpool { @@ -13904,7 +13903,6 @@ in postgresql = postgresql_9_6; inherit (callPackages ../servers/sql/postgresql { }) - postgresql_9_3 postgresql_9_4 postgresql_9_5 postgresql_9_6 From a0dc57e27bcc8762d3bc7b9951ebd1a4a6388d15 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Mon, 31 Dec 2018 16:26:06 +0100 Subject: [PATCH 17/73] vimUtils: derive pname from the plugin string (#53121) For backwards compatibility. The user may specify their own plugins without the pname attribute. In that case the attrname of the plugin (given as a string) is the pname. Fixes #53112 --- pkgs/misc/vim-plugins/vim-utils.nix | 70 ++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/pkgs/misc/vim-plugins/vim-utils.nix b/pkgs/misc/vim-plugins/vim-utils.nix index 61e89521c8c9..6e867dfc9661 100644 --- a/pkgs/misc/vim-plugins/vim-utils.nix +++ b/pkgs/misc/vim-plugins/vim-utils.nix @@ -1,5 +1,7 @@ -{stdenv, vim, vimPlugins, vim_configurable, neovim, buildEnv, writeText, writeScriptBin -, nix-prefetch-hg, nix-prefetch-git }: +{ stdenv, vim, vimPlugins, vim_configurable, neovim, buildEnv, writeText, writeScriptBin +, nix-prefetch-hg, nix-prefetch-git +, fetchFromGitHub +}: /* @@ -150,20 +152,23 @@ vim_with_plugins can be installed like any other application within Nix. let inherit (stdenv) lib; - # transitive closure of plugin dependencies - transitiveClosure = knownPlugins: plugin: - let - # vam puts out a list of strings as the dependency list, we need to be able to deal with that. - # Because of that, "plugin" may be a string or a derivation. If it is a string, it is resolved - # using `knownPlugins`. Otherwise `knownPlugins` can be null. - knownPlugins' = if knownPlugins == null then vimPlugins else knownPlugins; - pluginDrv = if builtins.isString plugin then knownPlugins'.${plugin} else plugin; - in - [ pluginDrv ] ++ ( - lib.unique (builtins.concatLists (map (transitiveClosure knownPlugins) pluginDrv.dependencies or [])) + # make sure a plugin is a derivation. If plugin already is a derivation, this + # is a no-op. If it is a string, it is looked up in knownPlugins. + pluginToDrv = knownPlugins: plugin: + if builtins.isString plugin then + # make sure `pname` is set to that we are able to convert the derivation + # back to a string. + ( knownPlugins.${plugin} // { pname = plugin; }) + else + plugin; + + # transitive closure of plugin dependencies (plugin needs to be a derivation) + transitiveClosure = plugin: + [ plugin ] ++ ( + lib.unique (builtins.concatLists (map transitiveClosure plugin.dependencies or [])) ); - findDependenciesRecursively = knownPlugins: plugins: lib.concatMap (transitiveClosure knownPlugins) plugins; + findDependenciesRecursively = plugins: lib.concatMap transitiveClosure plugins; attrnamesToPlugins = { knownPlugins, names }: map (name: if builtins.isString name then knownPlugins.${name} else name) knownPlugins; @@ -195,7 +200,7 @@ let (let knownPlugins = pathogen.knownPlugins or vimPlugins; - plugins = findDependenciesRecursively knownPlugins pathogen.pluginNames; + plugins = findDependenciesRecursively (map (pluginToDrv knownPlugins) pathogen.pluginNames); pluginsEnv = buildEnv { name = "pathogen-plugin-env"; @@ -240,7 +245,10 @@ let (let knownPlugins = vam.knownPlugins or vimPlugins; - plugins = findDependenciesRecursively knownPlugins (lib.concatMap vamDictToNames vam.pluginDictionaries); + # plugins specified by the user + specifiedPlugins = map (pluginToDrv knownPlugins) (lib.concatMap vamDictToNames vam.pluginDictionaries); + # plugins with dependencies + plugins = findDependenciesRecursively specifiedPlugins; # Vim almost reads JSON, so eventually JSON support should be added to Nix # TODO: proper quoting @@ -298,8 +306,8 @@ let # opposed to older implementations that have to maintain backwards # compatibility). Therefore we don't need to deal with "knownPlugins" # and can simply pass `null`. - depsOfOptionalPlugins = lib.subtractLists opt (findDependenciesRecursively null opt); - startWithDeps = findDependenciesRecursively null start; + depsOfOptionalPlugins = lib.subtractLists opt (findDependenciesRecursively opt); + startWithDeps = findDependenciesRecursively start; in ["mkdir -p $out/pack/${packageName}/start"] # To avoid confusion, even dependencies of optional plugins are added @@ -421,8 +429,8 @@ rec { if vam != null && vam ? knownPlugins then vam.knownPlugins else if pathogen != null && pathogen ? knownPlugins then pathogen.knownPlugins else vimPlugins; - pathogenPlugins = findDependenciesRecursively knownPlugins pathogen.pluginNames; - vamPlugins = findDependenciesRecursively knownPlugins (lib.concatMap vamDictToNames vam.pluginDictionaries); + pathogenPlugins = findDependenciesRecursively ((map pluginToDrv knownPlugins) pathogen.pluginNames); + vamPlugins = findDependenciesRecursively (map (pluginToDrv knownPlugins) (lib.concatMap vamDictToNames vam.pluginDictionaries)); nonNativePlugins = (lib.optionals (pathogen != null) pathogenPlugins) ++ (lib.optionals (vam != null) vamPlugins) ++ (lib.optionals (plug != null) plug.plugins); @@ -457,4 +465,26 @@ rec { test_nvim_with_vim_nix_using_pathogen = neovim.override { configure.pathogen.pluginNames = [ "vim-nix" ]; }; + + # regression test for https://github.com/NixOS/nixpkgs/issues/53112 + # The user may have specified their own plugins which may not be formatted + # exactly as the generated ones. In particular, they may not have the `pname` + # attribute. + test_vim_with_custom_plugin = vim_configurable.customize { + name = "vim_with_custom_plugin"; + vimrcConfig.vam.knownPlugins = + vimPlugins // ({ + "vim-trailing-whitespace" = buildVimPluginFrom2Nix { + name = "vim-trailing-whitespace"; + src = fetchFromGitHub { + owner = "bronson"; + repo = "vim-trailing-whitespace"; + rev = "4c596548216b7c19971f8fc94e38ef1a2b55fee6"; + sha256 = "0f1cpnp1nxb4i5hgymjn2yn3k1jwkqmlgw1g02sq270lavp2dzs9"; + }; + dependencies = []; + }; + }); + vimrcConfig.vam.pluginDictionaries = [ { names = [ "vim-trailing-whitespace" ]; } ]; + }; } From ed7a86d17526bd77cfabebe22c93f911eb25efea Mon Sep 17 00:00:00 2001 From: Ivan Kozik Date: Tue, 1 Jan 2019 05:04:22 +0000 Subject: [PATCH 18/73] sublime3-dev: 3183 -> 3184 --- pkgs/applications/editors/sublime/3/packages.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/editors/sublime/3/packages.nix b/pkgs/applications/editors/sublime/3/packages.nix index f9a6f1cb6dc9..2d214f18e9f6 100644 --- a/pkgs/applications/editors/sublime/3/packages.nix +++ b/pkgs/applications/editors/sublime/3/packages.nix @@ -5,9 +5,9 @@ let in rec { sublime3-dev = common { - buildVersion = "3183"; - x32sha256 = "0rgah7iq9y3afbawcb723d2b7m56lz0ji5l8klxvkp59c9rphqxh"; - x64sha256 = "1n3zarkhs22p2vi32fswb0fvcn9fzivmziw6zcvjy02c0rmxmdkz"; + buildVersion = "3184"; + x32sha256 = "1b6f1fid75g5z247dbnyyj276lrlv99scrdk1vvfcr6vyws77vzr"; + x64sha256 = "03127jhfjr17ai96p3axh5b5940fds8jcw6vkid8y6dmvd2dpylz"; } {}; sublime3 = common { From 61cefaf7dd9241d89f54f3e9592dd5a8ca972383 Mon Sep 17 00:00:00 2001 From: Brian McKenna Date: Tue, 1 Jan 2019 12:00:43 +0530 Subject: [PATCH 19/73] haskellPackages.djinn: apply patch for GHC 8.4 --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 9e0dd0758b04..8c758e9b22ac 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -688,6 +688,13 @@ self: super: { sha256 = "1m2d47ni4jbrpvxry50imj91qahr3r7zkqm157clrzlmw6gzpgnq"; }); + # Djinn's last release was 2014, incompatible with Semigroup-Monoid Proposal + # https://github.com/augustss/djinn/pull/8 + djinn = appendPatch super.djinn (pkgs.fetchpatch { + url = https://github.com/augustss/djinn/commit/6cb9433a137fb6b5194afe41d616bd8b62b95630.patch; + sha256 = "0s021y5nzrh74gfp8xpxpxm11ivzfs3jwg6mkrlyry3iy584xqil"; + }); + # We cannot build this package w/o the C library from . phash = markBroken super.phash; From b0f10d2d531ebac8130c8f111570311ac758da8e Mon Sep 17 00:00:00 2001 From: "(cdep)illabout" Date: Sat, 29 Dec 2018 22:09:47 +0900 Subject: [PATCH 20/73] cpufreq: add option for setting the cpu max and min frequencies This adds a NixOS option for setting the CPU max and min frequencies with `cpufreq`. The two options that have been added are: - `powerManagement.cpufreq.max` - `powerManagement.cpufreq.min` It also adds an alias to the `powerManagement.cpuFreqGovernor` option as `powerManagement.cpufreq.governor`. This updates the installer to use the new option name. It also updates the manual with a note about the new name. --- nixos/doc/manual/release-notes/rl-1903.xml | 10 +++ .../installer/tools/nixos-generate-config.pl | 2 +- nixos/modules/rename.nix | 3 + nixos/modules/services/hardware/tlp.nix | 4 +- nixos/modules/tasks/cpu-freq.nix | 71 ++++++++++++++----- 5 files changed, 69 insertions(+), 21 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-1903.xml b/nixos/doc/manual/release-notes/rl-1903.xml index 89d9f48aedd3..65761c12c6a4 100644 --- a/nixos/doc/manual/release-notes/rl-1903.xml +++ b/nixos/doc/manual/release-notes/rl-1903.xml @@ -408,6 +408,16 @@ from nixpkgs due to the lack of maintainers. + + + The option has been + aliased to . On laptops, + is sometimes set in + /etc/nixos/hardware-configuration.nix, so you can + rename it to the new name, or run + nixos-generate-config again. + + diff --git a/nixos/modules/installer/tools/nixos-generate-config.pl b/nixos/modules/installer/tools/nixos-generate-config.pl index 52a129b39bcd..fa01dc7bbaf0 100644 --- a/nixos/modules/installer/tools/nixos-generate-config.pl +++ b/nixos/modules/installer/tools/nixos-generate-config.pl @@ -104,7 +104,7 @@ if (-e "/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors") { foreach $e (@desired_governors) { if (index($governors, $e) != -1) { - last if (push @attrs, "powerManagement.cpuFreqGovernor = lib.mkDefault \"$e\";"); + last if (push @attrs, "powerManagement.cpufreq.governor = lib.mkDefault \"$e\";"); } } } diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index dc0a175d5bb8..0ed0f4ac209a 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -286,6 +286,9 @@ with lib; (mkRenamedOptionModule [ "hardware" "ckb" "enable" ] [ "hardware" "ckb-next" "enable" ]) (mkRenamedOptionModule [ "hardware" "ckb" "package" ] [ "hardware" "ckb-next" "package" ]) + # cpufeq + (mkAliasOptionModule [ "powerManagement" "cpuFreqGovernor" ] [ "powerManagement" "cpufreq" "governor" ]) + ] ++ (flip map [ "blackboxExporter" "collectdExporter" "fritzboxExporter" "jsonExporter" "minioExporter" "nginxExporter" "nodeExporter" "snmpExporter" "unifiExporter" "varnishExporter" ] diff --git a/nixos/modules/services/hardware/tlp.nix b/nixos/modules/services/hardware/tlp.nix index 68425822a884..bbc5b5b80a08 100644 --- a/nixos/modules/services/hardware/tlp.nix +++ b/nixos/modules/services/hardware/tlp.nix @@ -55,7 +55,9 @@ in config = mkIf cfg.enable { powerManagement.scsiLinkPolicy = null; - powerManagement.cpuFreqGovernor = null; + powerManagement.cpufreq.governor = null; + powerManagement.cpufreq.max = null; + powerManagement.cpufreq.min = null; systemd.sockets."systemd-rfkill".enable = false; diff --git a/nixos/modules/tasks/cpu-freq.nix b/nixos/modules/tasks/cpu-freq.nix index 5f8b5df52acf..684c43a1e903 100644 --- a/nixos/modules/tasks/cpu-freq.nix +++ b/nixos/modules/tasks/cpu-freq.nix @@ -4,22 +4,43 @@ with lib; let cpupower = config.boot.kernelPackages.cpupower; - cfg = config.powerManagement; + cfg = config.powerManagement.cpufreq; in { ###### interface - options = { + options.powerManagement.cpufreq = { - powerManagement.cpuFreqGovernor = mkOption { + governor = mkOption { type = types.nullOr types.str; default = null; example = "ondemand"; description = '' Configure the governor used to regulate the frequence of the available CPUs. By default, the kernel configures the - performance governor. + performance governor, although this may be overwriten in your + hardware-configuration.nix file. + + Often used values: "ondemand", "powersave", "performance" + ''; + }; + + max = mkOption { + type = types.nullOr types.ints.unsigned; + default = null; + example = 2200000; + description = '' + The maximum frequency the CPU will use. Defaults to the maximum possible. + ''; + }; + + min = mkOption { + type = types.nullOr types.ints.unsigned; + default = null; + example = 800000; + description = '' + The minimum frequency the CPU will use. ''; }; @@ -28,25 +49,37 @@ in ###### implementation - config = mkIf (!config.boot.isContainer && config.powerManagement.cpuFreqGovernor != null) { + config = + let + governorEnable = cfg.governor != null; + maxEnable = cfg.max != null; + minEnable = cfg.min != null; + enable = + !config.boot.isContainer && + (governorEnable || maxEnable || minEnable); + in + mkIf enable { - boot.kernelModules = [ "cpufreq_${cfg.cpuFreqGovernor}" ]; + boot.kernelModules = optional governorEnable "cpufreq_${cfg.governor}"; - environment.systemPackages = [ cpupower ]; + environment.systemPackages = [ cpupower ]; - systemd.services.cpufreq = { - description = "CPU Frequency Governor Setup"; - after = [ "systemd-modules-load.service" ]; - wantedBy = [ "multi-user.target" ]; - path = [ cpupower pkgs.kmod ]; - unitConfig.ConditionVirtualization = false; - serviceConfig = { - Type = "oneshot"; - RemainAfterExit = "yes"; - ExecStart = "${cpupower}/bin/cpupower frequency-set -g ${cfg.cpuFreqGovernor}"; - SuccessExitStatus = "0 237"; + systemd.services.cpufreq = { + description = "CPU Frequency Setup"; + after = [ "systemd-modules-load.service" ]; + wantedBy = [ "multi-user.target" ]; + path = [ cpupower pkgs.kmod ]; + unitConfig.ConditionVirtualization = false; + serviceConfig = { + Type = "oneshot"; + RemainAfterExit = "yes"; + ExecStart = "${cpupower}/bin/cpupower frequency-set " + + optionalString governorEnable "--governor ${cfg.governor} " + + optionalString maxEnable "--max ${toString cfg.max} " + + optionalString minEnable "--min ${toString cfg.min} "; + SuccessExitStatus = "0 237"; + }; }; - }; }; } From 574700085ae63a5dae6dd91d1426f59d364d7288 Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 1 Jan 2019 11:50:01 +0000 Subject: [PATCH 21/73] sdate: init at 0.5 --- pkgs/tools/misc/sdate/default.nix | 19 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 21 insertions(+) create mode 100644 pkgs/tools/misc/sdate/default.nix diff --git a/pkgs/tools/misc/sdate/default.nix b/pkgs/tools/misc/sdate/default.nix new file mode 100644 index 000000000000..8d74435ea61e --- /dev/null +++ b/pkgs/tools/misc/sdate/default.nix @@ -0,0 +1,19 @@ +with import {}; +stdenv.mkDerivation rec { + name = "sdate-${version}"; + version = "0.5"; + src = fetchurl { + url = "https://github.com/ChristophBerg/sdate/archive/${version}.tar.gz"; + sha256 = "0gbjl1jfxjwiiwf9rz38yp6rb1mgzhawcyg0g9byl6m4kgivf0cx"; + }; + + buildInputs = [ autoreconfHook ]; + + meta = { + homepage = https://www.df7cb.de/projects/sdate; + description = "Eternal september version of the date program"; + license = stdenv.lib.licenses.gpl2Plus; + maintainers = with stdenv.lib.maintainers; [ edef ]; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 34bf096fcd99..c29d384a77fa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5360,6 +5360,8 @@ in scrypt = callPackage ../tools/security/scrypt { }; + sdate = callPackage ../tools/misc/sdate { }; + sdcv = callPackage ../applications/misc/sdcv { }; sdl-jstest = callPackage ../tools/misc/sdl-jstest { }; From 04ba895ecd9cd30748b699c68a209b43f0305331 Mon Sep 17 00:00:00 2001 From: Timo Kaufmann Date: Tue, 1 Jan 2019 15:47:55 +0100 Subject: [PATCH 22/73] suitesparse: 5.3.0 -> 5.4.0 (#53128) --- .../libraries/science/math/suitesparse/default.nix | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/science/math/suitesparse/default.nix b/pkgs/development/libraries/science/math/suitesparse/default.nix index ce3b048e764d..a6c803be260a 100644 --- a/pkgs/development/libraries/science/math/suitesparse/default.nix +++ b/pkgs/development/libraries/science/math/suitesparse/default.nix @@ -1,9 +1,10 @@ { stdenv, fetchurl, gfortran, openblas, cmake, fixDarwinDylibNames +, gnum4 , enableCuda ? false, cudatoolkit }: let - version = "5.3.0"; + version = "5.4.0"; name = "suitesparse-${version}"; SHLIB_EXT = stdenv.hostPlatform.extensions.sharedLibrary; @@ -13,7 +14,7 @@ stdenv.mkDerivation rec { src = fetchurl { url = "http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-${version}.tar.gz"; - sha256 = "0gcn1xj3z87wpp26gxn11k8073bxv6jswfd8jmddlm64v09rgrlh"; + sha256 = "1lfvjj787yqyhk25w7brlrkrl7dnnn5dq4ijxws3wrbcd4vd2k9p"; }; dontUseCmakeConfigure = true; @@ -119,8 +120,10 @@ stdenv.mkDerivation rec { runHook postInstall ''; - nativeBuildInputs = [ cmake ] - ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; + nativeBuildInputs = [ + cmake + gnum4 + ] ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames; buildInputs = [ openblas gfortran.cc.lib ] ++ stdenv.lib.optional enableCuda cudatoolkit; From c5729a30f81098260fd10f79ac4becc1b21c1b9a Mon Sep 17 00:00:00 2001 From: edef Date: Tue, 1 Jan 2019 14:49:49 +0000 Subject: [PATCH 23/73] sdate: fix function wrapper --- pkgs/tools/misc/sdate/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/misc/sdate/default.nix b/pkgs/tools/misc/sdate/default.nix index 8d74435ea61e..23dccc0273d1 100644 --- a/pkgs/tools/misc/sdate/default.nix +++ b/pkgs/tools/misc/sdate/default.nix @@ -1,4 +1,4 @@ -with import {}; +{ stdenv, fetchurl, autoreconfHook }: stdenv.mkDerivation rec { name = "sdate-${version}"; version = "0.5"; From 559916f6480b0cd745e52970dd1167ce7abbc6b1 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Tue, 1 Jan 2019 16:51:24 +0100 Subject: [PATCH 24/73] haskellPackages.inline-c-cpp: disable test-suite on darwin to fix the build --- .../haskell-modules/configuration-common.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 9e0dd0758b04..cf762b03a5aa 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -173,12 +173,14 @@ self: super: { inline-c-cpp = if !pkgs.stdenv.isDarwin then super.inline-c-cpp - else addExtraLibrary (overrideCabal super.inline-c-cpp (drv: - { - postPatch = '' - substituteInPlace inline-c-cpp.cabal --replace stdc++ c++ - ''; - })) pkgs.libcxx; + else + let drv = addExtraLibrary (overrideCabal super.inline-c-cpp (drv: { + postPatch = '' + substituteInPlace inline-c-cpp.cabal --replace stdc++ c++ + ''; + })) pkgs.libcxx; + in # https://github.com/fpco/inline-c/issues/75 + dontCheck drv; inline-java = addBuildDepend super.inline-java pkgs.jdk; From c5c2ac4f45959727b043b3478f28829fac36fffb Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 1 Jan 2019 17:19:07 +0100 Subject: [PATCH 25/73] qrencode: merge with libqrencode --- pkgs/applications/altcoins/namecoin.nix | 4 +-- pkgs/applications/audio/faust/faustlive.nix | 4 +-- .../misc/digitalbitbox/default.nix | 4 +-- pkgs/applications/misc/pwsafe/default.nix | 4 +-- .../instant-messengers/toxic/default.nix | 4 +-- .../haskell-modules/hackage-packages.nix | 6 ++-- .../libraries/libqrencode/default.nix | 35 ------------------- .../libraries/qrencode/default.nix | 33 +++++++++++++++++ .../linux/google-authenticator/default.nix | 2 +- pkgs/tools/graphics/qrencode/default.nix | 21 ----------- .../asc-key-to-qr-code-gif/default.nix | 6 ++-- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 4 +-- 13 files changed, 52 insertions(+), 76 deletions(-) delete mode 100644 pkgs/development/libraries/libqrencode/default.nix create mode 100644 pkgs/development/libraries/qrencode/default.nix delete mode 100644 pkgs/tools/graphics/qrencode/default.nix diff --git a/pkgs/applications/altcoins/namecoin.nix b/pkgs/applications/altcoins/namecoin.nix index 93f9faf833a1..4b8dc5525dc4 100644 --- a/pkgs/applications/altcoins/namecoin.nix +++ b/pkgs/applications/altcoins/namecoin.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, libqrencode, hexdump +{ stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, qrencode, hexdump , withGui }: with stdenv.lib; @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { ] ++ optionals withGui [ qt4 protobuf - libqrencode + qrencode ]; enableParallelBuilding = true; diff --git a/pkgs/applications/audio/faust/faustlive.nix b/pkgs/applications/audio/faust/faustlive.nix index b8ff73f2cb32..754c48070603 100644 --- a/pkgs/applications/audio/faust/faustlive.nix +++ b/pkgs/applications/audio/faust/faustlive.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub -, llvm, qt48Full, libqrencode, libmicrohttpd, libjack2, alsaLib, faust, curl +, llvm, qt48Full, qrencode, libmicrohttpd, libjack2, alsaLib, faust, curl , bc, coreutils, which }: @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { }; buildInputs = [ - llvm qt48Full libqrencode libmicrohttpd libjack2 alsaLib faust curl + llvm qt48Full qrencode libmicrohttpd libjack2 alsaLib faust curl bc coreutils which ]; diff --git a/pkgs/applications/misc/digitalbitbox/default.nix b/pkgs/applications/misc/digitalbitbox/default.nix index 3e6a6ab53f77..939e2e9fc166 100644 --- a/pkgs/applications/misc/digitalbitbox/default.nix +++ b/pkgs/applications/misc/digitalbitbox/default.nix @@ -6,7 +6,7 @@ , libcap , libevent , libtool -, libqrencode +, qrencode , udev , libusb , makeWrapper @@ -74,7 +74,7 @@ in stdenv.mkDerivation rec { libtool udev libusb - libqrencode + qrencode qtbase qtwebsockets diff --git a/pkgs/applications/misc/pwsafe/default.nix b/pkgs/applications/misc/pwsafe/default.nix index 7b0e299924cb..a0b702fa1451 100644 --- a/pkgs/applications/misc/pwsafe/default.nix +++ b/pkgs/applications/misc/pwsafe/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, cmake, pkgconfig, zip, gettext, perl , wxGTK31, libXi, libXt, libXtst, xercesc, xextproto -, libqrencode, libuuid, libyubikey, yubikey-personalization +, qrencode, libuuid, libyubikey, yubikey-personalization }: stdenv.mkDerivation rec { @@ -17,7 +17,7 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ cmake pkgconfig zip ]; buildInputs = [ - gettext perl libqrencode libuuid + gettext perl qrencode libuuid libXi libXt libXtst wxGTK31 xercesc xextproto libyubikey yubikey-personalization ]; diff --git a/pkgs/applications/networking/instant-messengers/toxic/default.nix b/pkgs/applications/networking/instant-messengers/toxic/default.nix index cbf2dd7d99a2..c8cd91f07277 100644 --- a/pkgs/applications/networking/instant-messengers/toxic/default.nix +++ b/pkgs/applications/networking/instant-messengers/toxic/default.nix @@ -1,6 +1,6 @@ { stdenv, fetchFromGitHub, libsodium, ncurses, curl , libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig, libopus -, libqrencode, gdk_pixbuf, libnotify }: +, qrencode, gdk_pixbuf, libnotify }: stdenv.mkDerivation rec { name = "toxic-${version}"; @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { buildInputs = [ libtoxcore libsodium ncurses curl gdk_pixbuf libnotify ] ++ stdenv.lib.optionals (!stdenv.isAarch32) [ - openal libopus libvpx freealut libqrencode + openal libopus libvpx freealut qrencode ]; nativeBuildInputs = [ pkgconfig libconfig ]; diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index a6deacf70157..574c29f76da3 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -171338,7 +171338,7 @@ self: { "qr-imager" = callPackage ({ mkDerivation, base, binary, bytestring, cryptonite, directory - , haskell-qrencode, hspec, jose-jwt, JuicyPixels, libqrencode + , haskell-qrencode, hspec, jose-jwt, JuicyPixels, qrencode , microlens, process, split, vector }: mkDerivation { @@ -171349,12 +171349,12 @@ self: { base binary bytestring cryptonite directory haskell-qrencode jose-jwt JuicyPixels microlens process split vector ]; - libraryPkgconfigDepends = [ libqrencode ]; + libraryPkgconfigDepends = [ qrencode ]; testHaskellDepends = [ base hspec ]; description = "Library to generate images"; license = stdenv.lib.licenses.bsd3; hydraPlatforms = stdenv.lib.platforms.none; - }) {inherit (pkgs) libqrencode;}; + }) {inherit (pkgs) qrencode;}; "qr-repa" = callPackage ({ mkDerivation, aeson, base, bytestring, cryptonite, directory diff --git a/pkgs/development/libraries/libqrencode/default.nix b/pkgs/development/libraries/libqrencode/default.nix deleted file mode 100644 index 7c1844bf281e..000000000000 --- a/pkgs/development/libraries/libqrencode/default.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ stdenv, fetchurl, autoconf, automake, pkgconfig, - libtool, SDL2, libpng }: - -stdenv.mkDerivation rec { - name = "libqrencode-${version}"; - version = "4.0.0"; - - src = fetchurl { - url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz"; - sha1 = "644054a76c8b593acb66a8c8b7dcf1b987c3d0b2"; - sha256 = "10da4q5pym7pzxcv21w2kc2rxmq7sp1rg58zdklwfr0jjci1nqjv"; - }; - - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ autoconf automake libtool SDL2 libpng ]; - - propagatedBuildInputs = [ SDL2 libpng ]; - - doCheck = true; - - meta = with stdenv.lib; { - homepage = https://fukuchi.org/works/qrencode/; - description = "A C library for encoding data in a QR Code symbol"; - - longDescription = '' - Libqrencode is a C library for encoding data in a QR Code symbol, - a kind of 2D symbology that can be scanned by handy terminals - such as a mobile phone with CCD. - ''; - - license = licenses.gpl2Plus; - maintainers = [ maintainers.adolfogc ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/development/libraries/qrencode/default.nix b/pkgs/development/libraries/qrencode/default.nix new file mode 100644 index 000000000000..7e6b20599aff --- /dev/null +++ b/pkgs/development/libraries/qrencode/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, pkgconfig, SDL2, libpng }: + +stdenv.mkDerivation rec { + pname = "qrencode"; + version = "4.0.2"; + + outputs = [ "bin" "out" "man" "dev" ]; + + src = fetchurl { + url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz"; + sha256 = "079v3a15ydpr67zdi3xbgvic8n2kxvi0m32dyz8jaik10yffgayv"; + }; + + nativeBuildInputs = [ pkgconfig ]; + buildInputs = [ SDL2 libpng ]; + + doCheck = true; + + meta = with stdenv.lib; { + homepage = https://fukuchi.org/works/qrencode/; + description = "C library for encoding data in a QR Code symbol"; + + longDescription = '' + Libqrencode is a C library for encoding data in a QR Code symbol, + a kind of 2D symbology that can be scanned by handy terminals + such as a mobile phone with CCD. + ''; + + license = licenses.lgpl21Plus; + maintainers = with maintainers; [ adolfogc yegortimoshenko ]; + platforms = platforms.all; + }; +} diff --git a/pkgs/os-specific/linux/google-authenticator/default.nix b/pkgs/os-specific/linux/google-authenticator/default.nix index 4e04c16d70bd..8ae5785eea8b 100644 --- a/pkgs/os-specific/linux/google-authenticator/default.nix +++ b/pkgs/os-specific/linux/google-authenticator/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { buildInputs = [ pam ]; preConfigure = '' - sed -i "s|libqrencode.so.4|${qrencode}/lib/libqrencode.so.4|" src/google-authenticator.c + sed -i "s|libqrencode.so.4|${qrencode.out}/lib/libqrencode.so.4|" src/google-authenticator.c ''; installPhase = '' diff --git a/pkgs/tools/graphics/qrencode/default.nix b/pkgs/tools/graphics/qrencode/default.nix deleted file mode 100644 index 7c5aed9b4e23..000000000000 --- a/pkgs/tools/graphics/qrencode/default.nix +++ /dev/null @@ -1,21 +0,0 @@ -{ stdenv, fetchurl, libpng, pkgconfig }: - -stdenv.mkDerivation rec { - name = "qrencode-4.0.2"; - - src = fetchurl { - url = "${meta.homepage}/${name}.tar.bz2"; - sha256 = "1d2q5d3v8g3hsi3h5jq4n177bjhf3kawms09immw7p187f6jgjy9"; - }; - - buildInputs = [ libpng ]; - nativeBuildInputs = [ pkgconfig ]; - - meta = with stdenv.lib; { - homepage = https://fukuchi.org/works/qrencode/; - description = "QR code encoder"; - platforms = platforms.all; - license = licenses.lgpl21Plus; - maintainers = with maintainers; [ yegortimoshenko ]; - }; -} diff --git a/pkgs/tools/security/asc-key-to-qr-code-gif/default.nix b/pkgs/tools/security/asc-key-to-qr-code-gif/default.nix index e04b41557482..ca2ea67e7881 100644 --- a/pkgs/tools/security/asc-key-to-qr-code-gif/default.nix +++ b/pkgs/tools/security/asc-key-to-qr-code-gif/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchFromGitHub, imagemagick, libqrencode +{ stdenv, fetchFromGitHub, imagemagick, qrencode , testQR ? false, zbar ? null }: @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { sha256 = "0yrc302a2fhbzryb10718ky4fymfcps3lk67ivis1qab5kbp6z8r"; }; - buildInputs = [ imagemagick libqrencode ] ++ stdenv.lib.optional testQR zbar; + buildInputs = [ imagemagick qrencode ] ++ stdenv.lib.optional testQR zbar; dontBuild = true; dontStrip = true; dontPatchELF = true; @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { preInstall = '' substituteInPlace asc-to-gif.sh \ --replace "convert" "${imagemagick}/bin/convert" \ - --replace "qrencode" "${libqrencode}/bin/qrencode" + --replace "qrencode" "${qrencode.bin}/bin/qrencode" ''; installPhase = '' diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 51916f3146eb..90136f86acaf 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -171,6 +171,7 @@ mapAliases ({ libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28 liblapackWithoutAtlas = liblapack; # added 2018-11-05 libmysql = mysql.connector-c; # added # 2017-12-28, this was a misnomer refering to libmysqlclient + libqrencode = qrencode; # added 2019-01-01 librecad2 = librecad; # backwards compatibility alias, added 2015-10 libsysfs = sysfsutils; # added 2018-04-25 libtidy = html-tidy; # added 2014-12-21 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c29d384a77fa..fda0fcc95892 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3992,8 +3992,6 @@ in libqmi = callPackage ../development/libraries/libqmi { }; - libqrencode = callPackage ../development/libraries/libqrencode { }; - libmbim = callPackage ../development/libraries/libmbim { }; libmongo-client = callPackage ../development/libraries/libmongo-client { }; @@ -17429,7 +17427,7 @@ in java = if stdenv.isLinux then jre else jdk; }; - qrencode = callPackage ../tools/graphics/qrencode { }; + qrencode = callPackage ../development/libraries/qrencode { }; geeqie = callPackage ../applications/graphics/geeqie { }; From 317249e5aec33c4995ee53ee11513ddd571e3b53 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 1 Jan 2019 17:38:11 +0100 Subject: [PATCH 26/73] qrencode: fix tests --- pkgs/development/libraries/qrencode/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/development/libraries/qrencode/default.nix b/pkgs/development/libraries/qrencode/default.nix index 7e6b20599aff..1cbdf1ffdf8a 100644 --- a/pkgs/development/libraries/qrencode/default.nix +++ b/pkgs/development/libraries/qrencode/default.nix @@ -14,8 +14,22 @@ stdenv.mkDerivation rec { nativeBuildInputs = [ pkgconfig ]; buildInputs = [ SDL2 libpng ]; + configureFlags = [ + "--with-tests" + ]; + doCheck = true; + checkPhase = '' + runHook preCheck + + pushd tests + ./test_basic.sh + popd + + runHook postCheck + ''; + meta = with stdenv.lib; { homepage = https://fukuchi.org/works/qrencode/; description = "C library for encoding data in a QR Code symbol"; From 711a74c65a8c96c39e1f4331349ed60d0a3fdddf Mon Sep 17 00:00:00 2001 From: Tim Steinbach Date: Tue, 1 Jan 2019 12:38:06 -0500 Subject: [PATCH 27/73] sbt: 1.2.7 -> 1.2.8 --- pkgs/development/tools/build-managers/sbt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/build-managers/sbt/default.nix b/pkgs/development/tools/build-managers/sbt/default.nix index d6eed35e30ae..8110027b6cfc 100644 --- a/pkgs/development/tools/build-managers/sbt/default.nix +++ b/pkgs/development/tools/build-managers/sbt/default.nix @@ -2,7 +2,7 @@ stdenv.mkDerivation rec { name = "sbt-${version}"; - version = "1.2.7"; + version = "1.2.8"; src = fetchurl { urls = [ @@ -10,7 +10,7 @@ stdenv.mkDerivation rec { "https://github.com/sbt/sbt/releases/download/v${version}/sbt-${version}.tgz" "https://cocl.us/sbt-${version}.tgz" ]; - sha256 = "10g7a1j2knbqmnbpvfhy1rqdg2pflmasz879ax59pv3mvgccn996"; + sha256 = "0n7yghnb1q3lyjpv721znvslk5lwib7y84mxwz66yv8p84jj3fcv"; }; patchPhase = '' From 8f8c7ecc7fa0d6bdd7ced5c74e588b0ddd53f6e3 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 1 Jan 2019 12:02:47 -0600 Subject: [PATCH 28/73] smartmontools: 6.6 -> 7.0 (#53115) https://listi.jpberlin.de/pipermail/smartmontools-announce/2018-December/000001.html --- pkgs/tools/system/smartmontools/default.nix | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix index e8fbe90acde7..6c26855b9561 100644 --- a/pkgs/tools/system/smartmontools/default.nix +++ b/pkgs/tools/system/smartmontools/default.nix @@ -2,13 +2,13 @@ , IOKit ? null , ApplicationServices ? null }: let - version = "6.6"; + version = "7.0"; - dbrev = "4852"; + dbrev = "4883"; drivedbBranch = "RELEASE_${builtins.replaceStrings ["."] ["_"] version}_DRIVEDB"; driverdb = fetchurl { url = "https://sourceforge.net/p/smartmontools/code/${dbrev}/tree/branches/${drivedbBranch}/smartmontools/drivedb.h?format=raw"; - sha256 = "15gbwiw38yzl3cdvys6r7wknv5zdycm7zbswa2p9vzxlc8s63rlr"; + sha256 = "07x3haz65jyhj579h4z17v6jkw6bbyid34442gl4qddmgv2qzvwx"; name = "smartmontools-drivedb.h"; }; @@ -17,17 +17,10 @@ in stdenv.mkDerivation rec { src = fetchurl { url = "mirror://sourceforge/smartmontools/${name}.tar.gz"; - sha256 = "0m1hllbb78rr6cxkbalmz1gqkl0psgq8rrmv4gwcmz34n07kvx2i"; + sha256 = "077nx2rn9szrg6isdh0938zbp7vr3dsyxl4jdyyzv1xwhqksrqg5"; }; - patches = [ ./smartmontools.patch ] - # https://www.smartmontools.org/changeset/4603 - ++ stdenv.lib.optional stdenv.hostPlatform.isMusl (fetchpatch { - name = "musl-canonicalize_file_name.patch"; - url = "https://www.smartmontools.org/changeset/4603?format=diff&new=4603"; - sha256 = "06s9pcd95snjkrbfrsjby2lln3lnwjd21bgabmvr4p7fx19b75zp"; - stripLen = 2; - }); + patches = [ ./smartmontools.patch ]; postPatch = "cp -v ${driverdb} drivedb.h"; nativeBuildInputs = [ autoreconfHook ]; From b58ccb43c991ccdb67ca7f11051a2ba1bc1d2ff2 Mon Sep 17 00:00:00 2001 From: Milan Svoboda Date: Tue, 1 Jan 2019 19:03:47 +0100 Subject: [PATCH 29/73] neovim: 0.3.1 -> 0.3.2 (#53130) * update neovim * neovim: -> 0.3.2 --- pkgs/applications/editors/neovim/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/neovim/default.nix b/pkgs/applications/editors/neovim/default.nix index 26fc44cc6b11..99c3c62663c9 100644 --- a/pkgs/applications/editors/neovim/default.nix +++ b/pkgs/applications/editors/neovim/default.nix @@ -11,13 +11,13 @@ let neovim = stdenv.mkDerivation rec { name = "neovim-unwrapped-${version}"; - version = "0.3.1"; + version = "0.3.2"; src = fetchFromGitHub { owner = "neovim"; repo = "neovim"; rev = "v${version}"; - sha256 = "19jy9nr2ffscli6wsysqkdvqvh7sgkkwhzkw3yypfrvg4pj9rl56"; + sha256 = "0gniick8jbra1xz5nmg9jyxr7dsnbh9n9bcbp7fq3acb2qnrd22y"; }; enableParallelBuilding = true; From 098d919425f39e12acc6c3e3003af2270c018ace Mon Sep 17 00:00:00 2001 From: volth Date: Tue, 1 Jan 2019 18:08:44 +0000 Subject: [PATCH 30/73] perldevel: 5.29.4 -> 5.29.6 (#52510) --- .../development/interpreters/perl/default.nix | 9 +- .../interpreters/perl/no-sys-dirs-5.29.patch | 251 ++++++++++++++++++ 2 files changed, 256 insertions(+), 4 deletions(-) create mode 100644 pkgs/development/interpreters/perl/no-sys-dirs-5.29.patch diff --git a/pkgs/development/interpreters/perl/default.nix b/pkgs/development/interpreters/perl/default.nix index 8d21d92ef430..ca0335178373 100644 --- a/pkgs/development/interpreters/perl/default.nix +++ b/pkgs/development/interpreters/perl/default.nix @@ -42,13 +42,14 @@ let patches = [ # Do not look in /usr etc. for dependencies. - ./no-sys-dirs-5.26.patch + (if (versionOlder version "5.29.6") then ./no-sys-dirs-5.26.patch else ./no-sys-dirs-5.29.patch) + ] + ++ optional (versionOlder version "5.29.6") # Fix parallel building: https://rt.perl.org/Public/Bug/Display.html?id=132360 (fetchurlBoot { url = "https://rt.perl.org/Public/Ticket/Attachment/1502646/807252/0001-Fix-missing-build-dependency-for-pods.patch"; sha256 = "1bb4mldfp8kq1scv480wm64n2jdsqa3ar46cjp1mjpby8h5dr2r0"; }) - ] ++ optional stdenv.isSunOS ./ld-shared.patch ++ optionals stdenv.isDarwin [ ./cpp-precomp.patch ./sw_vers.patch ] ++ optional crossCompiling ./MakeMaker-cross.patch; @@ -186,7 +187,7 @@ in rec { # the latest Devel version perldevel = common { - version = "5.29.4"; - sha256 = "153r0f6jdqrl7hxrvhfivf5g8ivhbvggfhg841q3hi3db5rc86k4"; + version = "5.29.6"; + sha256 = "0wj2bia8s30788f69mf5s533l72zbhqpdr85kkk97yrh1c9sgcd6"; }; } diff --git a/pkgs/development/interpreters/perl/no-sys-dirs-5.29.patch b/pkgs/development/interpreters/perl/no-sys-dirs-5.29.patch new file mode 100644 index 000000000000..0ccf6254b782 --- /dev/null +++ b/pkgs/development/interpreters/perl/no-sys-dirs-5.29.patch @@ -0,0 +1,251 @@ +diff -ru -x '*~' -x '*.rej' perl-5.20.0-orig/Configure perl-5.20.0/Configure +--- perl-5.20.0-orig/Configure 2014-05-26 15:34:18.000000000 +0200 ++++ perl-5.20.0/Configure 2014-06-25 10:43:35.368285986 +0200 +@@ -106,15 +106,7 @@ + fi + + : Proper PATH setting +-paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin' +-paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin" +-paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" +-paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin" +-paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb" +-paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin" +-paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib" +-paths="$paths /sbin /usr/sbin /usr/libexec" +-paths="$paths /system/gnu_library/bin" ++paths='' + + for p in $paths + do +@@ -1337,8 +1329,7 @@ + archname='' + : Possible local include directories to search. + : Set locincpth to "" in a hint file to defeat local include searches. +-locincpth="/usr/local/include /opt/local/include /usr/gnu/include" +-locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include" ++locincpth="" + : + : no include file wanted by default + inclwanted='' +@@ -1349,17 +1340,12 @@ + + libnames='' + : change the next line if compiling for Xenix/286 on Xenix/386 +-xlibpth='/usr/lib/386 /lib/386' ++xlibpth='' + : Possible local library directories to search. +-loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib" +-loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" ++loclibpth="" + + : general looking path for locating libraries +-glibpth="/lib /usr/lib $xlibpth" +-glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib" +-test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth" +-test -f /shlib/libc.so && glibpth="/shlib $glibpth" +-test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64" ++glibpth="" + + : Private path used by Configure to find libraries. Its value + : is prepended to libpth. This variable takes care of special +@@ -1391,8 +1377,6 @@ + libswanted="$libswanted m crypt sec util c cposix posix ucb bsd BSD" + : We probably want to search /usr/shlib before most other libraries. + : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. +-glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` +-glibpth="/usr/shlib $glibpth" + : Do not use vfork unless overridden by a hint file. + usevfork=false + +@@ -2446,7 +2430,6 @@ + zip + " + pth=`echo $PATH | sed -e "s/$p_/ /g"` +-pth="$pth $sysroot/lib $sysroot/usr/lib" + for file in $loclist; do + eval xxx=\$$file + case "$xxx" in +@@ -4936,7 +4919,7 @@ + : Set private lib path + case "$plibpth" in + '') if ./mips; then +- plibpth="$incpath/usr/lib $sysroot/usr/local/lib $sysroot/usr/ccs/lib" ++ plibpth="$incpath/usr/lib" + fi;; + esac + case "$libpth" in +@@ -8600,13 +8583,8 @@ + echo " " + case "$sysman" in + '') +- syspath='/usr/share/man/man1 /usr/man/man1' +- syspath="$syspath /usr/man/mann /usr/man/manl /usr/man/local/man1" +- syspath="$syspath /usr/man/u_man/man1" +- syspath="$syspath /usr/catman/u_man/man1 /usr/man/l_man/man1" +- syspath="$syspath /usr/local/man/u_man/man1 /usr/local/man/l_man/man1" +- syspath="$syspath /usr/man/man.L /local/man/man1 /usr/local/man/man1" +- sysman=`./loc . /usr/man/man1 $syspath` ++ syspath='' ++ sysman='' + ;; + esac + if $test -d "$sysman"; then +@@ -19900,9 +19878,10 @@ + case "$full_ar" in + '') full_ar=$ar ;; + esac ++full_ar=ar + + : Store the full pathname to the sed program for use in the C program +-full_sed=$sed ++full_sed=sed + + : see what type gids are declared as in the kernel + echo " " +Only in perl-5.20.0/: Configure.orig +diff -ru -x '*~' -x '*.rej' perl-5.20.0-orig/ext/Errno/Errno_pm.PL perl-5.20.0/ext/Errno/Errno_pm.PL +--- perl-5.20.0-orig/ext/Errno/Errno_pm.PL 2014-05-26 15:34:20.000000000 +0200 ++++ perl-5.20.0/ext/Errno/Errno_pm.PL 2014-06-25 10:31:24.317970047 +0200 +@@ -134,12 +126,7 @@ + if ($dep =~ /(\S+errno\.h)/) { + $file{$1} = 1; + } +- } elsif ($^O eq 'linux' && +- $Config{gccversion} ne '' && +- $Config{gccversion} !~ /intel/i && +- # might be using, say, Intel's icc +- $linux_errno_h +- ) { ++ } elsif (0) { + $file{$linux_errno_h} = 1; + } elsif ($^O eq 'haiku') { + # hidden in a special place +Only in perl-5.20.0/ext/Errno: Errno_pm.PL.orig +diff -ru -x '*~' -x '*.rej' perl-5.20.0-orig/hints/freebsd.sh perl-5.20.0/hints/freebsd.sh +--- perl-5.20.0-orig/hints/freebsd.sh 2014-01-31 22:55:51.000000000 +0100 ++++ perl-5.20.0/hints/freebsd.sh 2014-06-25 10:25:53.263964680 +0200 +@@ -119,21 +119,21 @@ + objformat=`/usr/bin/objformat` + if [ x$objformat = xaout ]; then + if [ -e /usr/lib/aout ]; then +- libpth="/usr/lib/aout /usr/local/lib /usr/lib" +- glibpth="/usr/lib/aout /usr/local/lib /usr/lib" ++ libpth="" ++ glibpth="" + fi + lddlflags='-Bshareable' + else +- libpth="/usr/lib /usr/local/lib" +- glibpth="/usr/lib /usr/local/lib" ++ libpth="" ++ glibpth="" + ldflags="-Wl,-E " + lddlflags="-shared " + fi + cccdlflags='-DPIC -fPIC' + ;; + *) +- libpth="/usr/lib /usr/local/lib" +- glibpth="/usr/lib /usr/local/lib" ++ libpth="" ++ glibpth="" + ldflags="-Wl,-E " + lddlflags="-shared " + cccdlflags='-DPIC -fPIC' +diff -ru -x '*~' -x '*.rej' perl-5.20.0-orig/hints/linux.sh perl-5.20.0/hints/linux.sh +--- perl-5.20.0-orig/hints/linux.sh 2014-05-26 15:34:20.000000000 +0200 ++++ perl-5.20.0/hints/linux.sh 2014-06-25 10:33:47.354883843 +0200 +@@ -150,25 +150,6 @@ + ;; + esac + +-# Ubuntu 11.04 (and later, presumably) doesn't keep most libraries +-# (such as -lm) in /lib or /usr/lib. So we have to ask gcc to tell us +-# where to look. We don't want gcc's own libraries, however, so we +-# filter those out. +-# This could be conditional on Unbuntu, but other distributions may +-# follow suit, and this scheme seems to work even on rather old gcc's. +-# This unconditionally uses gcc because even if the user is using another +-# compiler, we still need to find the math library and friends, and I don't +-# know how other compilers will cope with that situation. +-# Morever, if the user has their own gcc earlier in $PATH than the system gcc, +-# we don't want its libraries. So we try to prefer the system gcc +-# Still, as an escape hatch, allow Configure command line overrides to +-# plibpth to bypass this check. +-if [ -x /usr/bin/gcc ] ; then +- gcc=/usr/bin/gcc +-else +- gcc=gcc +-fi +- + case "$plibpth" in + '') plibpth=`LANG=C LC_ALL=C $gcc $ccflags $ldflags -print-search-dirs | grep libraries | + cut -f2- -d= | tr ':' $trnl | grep -v 'gcc' | sed -e 's:/$::'` +@@ -178,32 +159,6 @@ + ;; + esac + +-case "$libc" in +-'') +-# If you have glibc, then report the version for ./myconfig bug reporting. +-# (Configure doesn't need to know the specific version since it just uses +-# gcc to load the library for all tests.) +-# We don't use __GLIBC__ and __GLIBC_MINOR__ because they +-# are insufficiently precise to distinguish things like +-# libc-2.0.6 and libc-2.0.7. +- for p in $plibpth +- do +- for trylib in libc.so.6 libc.so +- do +- if $test -e $p/$trylib; then +- libc=`ls -l $p/$trylib | awk '{print $NF}'` +- if $test "X$libc" != X; then +- break +- fi +- fi +- done +- if $test "X$libc" != X; then +- break +- fi +- done +- ;; +-esac +- + if ${sh:-/bin/sh} -c exit; then + echo '' + echo 'You appear to have a working bash. Good.' +@@ -367,33 +322,6 @@ + ;; + esac + +-# SuSE8.2 has /usr/lib/libndbm* which are ld scripts rather than +-# true libraries. The scripts cause binding against static +-# version of -lgdbm which is a bad idea. So if we have 'nm' +-# make sure it can read the file +-# NI-S 2003/08/07 +-case "$nm" in +- '') ;; +- *) +- for p in $plibpth +- do +- if $test -r $p/libndbm.so; then +- if $nm $p/libndbm.so >/dev/null 2>&1 ; then +- echo 'Your shared -lndbm seems to be a real library.' +- _libndbm_real=1 +- break +- fi +- fi +- done +- if $test "X$_libndbm_real" = X; then +- echo 'Your shared -lndbm is not a real library.' +- set `echo X "$libswanted "| sed -e 's/ ndbm / /'` +- shift +- libswanted="$*" +- fi +- ;; +-esac +- + # Linux on Synology. + if [ -f /etc/synoinfo.conf -a -d /usr/syno ]; then + # Tested on Synology DS213 and DS413 From 1c78a0313d75ca368c96c0dcdb5dde83ff7d05e1 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 1 Jan 2019 10:35:21 -0800 Subject: [PATCH 31/73] neovim-remote: 2.1.1 -> 2.1.3 (#52798) Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.7-neovim-remote/versions --- pkgs/applications/editors/neovim/neovim-remote.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/editors/neovim/neovim-remote.nix b/pkgs/applications/editors/neovim/neovim-remote.nix index 11566293c49b..d9b928f111ae 100644 --- a/pkgs/applications/editors/neovim/neovim-remote.nix +++ b/pkgs/applications/editors/neovim/neovim-remote.nix @@ -4,14 +4,14 @@ with stdenv.lib; pythonPackages.buildPythonPackage rec { pname = "neovim-remote"; - version = "2.1.1"; + version = "2.1.3"; disabled = !pythonPackages.isPy3k; src = fetchFromGitHub { owner = "mhinz"; repo = "neovim-remote"; rev = "v${version}"; - sha256 = "1hkzcc141imjin03wpfykw50k0vs7vj1lr09czb2hsyf937gyjqn"; + sha256 = "0nx987af29ajlpwnwfc3z8gplxv69gj53s4bzm6pwwsfbhfakdah"; }; propagatedBuildInputs = with pythonPackages; [ pynvim psutil ]; From 4bf76de51c78219c27126b6ef0a13ef0b353d3cb Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 1 Jan 2019 10:55:43 -0800 Subject: [PATCH 32/73] gitAndTools.gitRemoteGcrypt: 1.1 -> 1.2 (#52312) Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/git-remote-gcrypt/versions --- .../git-and-tools/git-remote-gcrypt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix b/pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix index adfdb9a541c1..a8df4846bf5c 100644 --- a/pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix +++ b/pkgs/applications/version-management/git-and-tools/git-remote-gcrypt/default.nix @@ -2,14 +2,14 @@ stdenv.mkDerivation rec { name = "git-remote-gcrypt-${version}"; - version = "1.1"; + version = "1.2"; rev = version; src = fetchFromGitHub { inherit rev; owner = "spwhitton"; repo = "git-remote-gcrypt"; - sha256 = "0mhz5mqnr35rk7j4wyhp7hzmqgv8r554n9qlm4iw565bz7acvq24"; + sha256 = "0isfg0vlmcphxzj4jm32dycprhym26ina1b28jgc4j57kiqqrdcy"; }; outputs = [ "out" "man" ]; From e6d8d29f30676d0b0762fbfedbeac1e256ef9477 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 1 Jan 2019 11:02:29 -0800 Subject: [PATCH 33/73] kicad: 5.0.1 -> 5.0.2 (#52866) Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/kicad/versions --- pkgs/applications/science/electronics/kicad/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/science/electronics/kicad/default.nix b/pkgs/applications/science/electronics/kicad/default.nix index 5d0165eb6dda..e77f4a603a81 100644 --- a/pkgs/applications/science/electronics/kicad/default.nix +++ b/pkgs/applications/science/electronics/kicad/default.nix @@ -13,11 +13,11 @@ with lib; stdenv.mkDerivation rec { name = "kicad-${version}"; series = "5.0"; - version = "5.0.1"; + version = "5.0.2"; src = fetchurl { url = "https://launchpad.net/kicad/${series}/${version}/+download/kicad-${version}.tar.xz"; - sha256 = "0skig2wdxxc2677m8a8m1xrg3pkhqiqnmkcyr2hv0b2j30rzdr2z"; + sha256 = "10605rr10x0353n6yk2z095ydnkd1i6j1ncbq64pfxdn5vkhcd1g"; }; postPatch = '' From 496b2ddff2329b01201c725547151265882e9bbc Mon Sep 17 00:00:00 2001 From: Meghea Iulian Date: Tue, 1 Jan 2019 21:30:56 +0200 Subject: [PATCH 34/73] gitkraken: 4.0.5 -> 4.1.1 (#53066) --- .../version-management/gitkraken/default.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/version-management/gitkraken/default.nix b/pkgs/applications/version-management/gitkraken/default.nix index 0fcbe54be175..dfc2484b1a51 100644 --- a/pkgs/applications/version-management/gitkraken/default.nix +++ b/pkgs/applications/version-management/gitkraken/default.nix @@ -1,8 +1,8 @@ { stdenv, libXcomposite, libgnome-keyring, makeWrapper, udev, curl, alsaLib -, libXfixes, atk, gtk2, libXrender, pango, gnome2, cairo, freetype, fontconfig +, libXfixes, atk, gtk3, libXrender, pango, gnome2, cairo, freetype, fontconfig , libX11, libXi, libxcb, libXext, libXcursor, glib, libXScrnSaver, libxkbfile, libXtst , nss, nspr, cups, fetchurl, expat, gdk_pixbuf, libXdamage, libXrandr, dbus -, dpkg, makeDesktopItem +, dpkg, makeDesktopItem, openssl }: with stdenv.lib; @@ -12,11 +12,11 @@ let in stdenv.mkDerivation rec { name = "gitkraken-${version}"; - version = "4.0.5"; + version = "4.1.1"; src = fetchurl { url = "https://release.axocdn.com/linux/GitKraken-v${version}.deb"; - sha256 = "15wxcahlnz2k3331wqv30d5gq38fqh178hv87xky9b9vyh8qpcvz"; + sha256 = "188k6vaafv6szzhslsfabnnn68ispsv54d98rcm3m0bmp8kg5p7f"; }; libPath = makeLibraryPath [ @@ -49,9 +49,10 @@ stdenv.mkDerivation rec { libXcomposite libXfixes libXrender - gtk2 + gtk3 gnome2.GConf libgnome-keyring + openssl ]; desktopItem = makeDesktopItem { From f5d4254972437b2288d54c0b744501495fa1701b Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Tue, 1 Jan 2019 22:33:57 +0300 Subject: [PATCH 35/73] vim-parinfer: init (#53140) --- pkgs/misc/vim-plugins/generated.nix | 10 ++++++++++ pkgs/misc/vim-plugins/vim-plugin-names | 1 + 2 files changed, 11 insertions(+) diff --git a/pkgs/misc/vim-plugins/generated.nix b/pkgs/misc/vim-plugins/generated.nix index b8573a9367a8..00d07ef9236b 100644 --- a/pkgs/misc/vim-plugins/generated.nix +++ b/pkgs/misc/vim-plugins/generated.nix @@ -3115,6 +3115,16 @@ let }; }; + vim-parinfer = buildVimPluginFrom2Nix { + name = "vim-parinfer-2018-08-31"; + src = fetchFromGitHub { + owner = "bhurlow"; + repo = "vim-parinfer"; + rev = "d599e41dd1b9034059524af8156dcbebe68d96d2"; + sha256 = "0h4zw1yfnrbb3w5brcsy2l43jk7569dhslpkahczqxj6wr6hsxcc"; + }; + }; + vim-pathogen = buildVimPluginFrom2Nix { pname = "vim-pathogen"; version = "2018-12-13"; diff --git a/pkgs/misc/vim-plugins/vim-plugin-names b/pkgs/misc/vim-plugins/vim-plugin-names index 119a996b5bd1..49a0230de934 100644 --- a/pkgs/misc/vim-plugins/vim-plugin-names +++ b/pkgs/misc/vim-plugins/vim-plugin-names @@ -16,6 +16,7 @@ bazelbuild/vim-bazel bbchung/clighter8 benekastah/neomake benmills/vimux +bhurlow/vim-parinfer bitc/vim-hdevtools bling/vim-bufferline bronson/vim-trailing-whitespace From 46e7ce0526f4a956512f8f238eff677f988867b5 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Tue, 1 Jan 2019 11:35:37 -0800 Subject: [PATCH 36/73] lxc: 3.0.2 -> 3.0.3 (#52239) Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/lxc/versions --- pkgs/os-specific/linux/lxc/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/lxc/default.nix b/pkgs/os-specific/linux/lxc/default.nix index ab84c4d9bf97..3af8ceab80e0 100644 --- a/pkgs/os-specific/linux/lxc/default.nix +++ b/pkgs/os-specific/linux/lxc/default.nix @@ -9,11 +9,11 @@ with stdenv.lib; stdenv.mkDerivation rec { name = "lxc-${version}"; - version = "3.0.2"; + version = "3.0.3"; src = fetchurl { url = "https://linuxcontainers.org/downloads/lxc/lxc-${version}.tar.gz"; - sha256 = "0p1gy553cm4mhwxi85fl6qiwz61rjmvysm8c8pd20qh62xxi3dva"; + sha256 = "0hcql4srcs2dlf2f67i8v92y2i352zv7nr9hsgs3pih2rhrbh332"; }; nativeBuildInputs = [ From f3dacb35803807205984f36aa246e8d44cd4806f Mon Sep 17 00:00:00 2001 From: elseym Date: Tue, 1 Jan 2019 20:49:22 +0100 Subject: [PATCH 37/73] pythonPackages.srptools: init at 0.2.0 --- .../python-modules/srptools/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/python-modules/srptools/default.nix diff --git a/pkgs/development/python-modules/srptools/default.nix b/pkgs/development/python-modules/srptools/default.nix new file mode 100644 index 000000000000..2df3397f6255 --- /dev/null +++ b/pkgs/development/python-modules/srptools/default.nix @@ -0,0 +1,22 @@ +{ stdenv, buildPythonPackage, fetchPypi, six, pytest, pytestrunner }: + +buildPythonPackage rec { + pname = "srptools"; + version = "0.2.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0g0jdkblnd3wv5xgb33g6sfgqnhdcs8a3gqzp5gshq2vawdh8p37"; + }; + + propagatedBuildInputs = [ six ]; + + checkInputs = [ pytest pytestrunner ]; + + meta = with stdenv.lib; { + description = "Python-Tools to implement Secure Remote Password (SRP) authentication"; + homepage = https://github.com/idlesign/srptools; + license = licenses.bsd3; + maintainers = with maintainers; [ elseym ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 532606222407..818678e52da9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5139,6 +5139,8 @@ in { importlib-resources = callPackage ../development/python-modules/importlib-resources {}; + srptools = callPackage ../development/python-modules/srptools { }; + }); in fix' (extends overrides packages) From a0dcbd94df86d767542200f176bacfc31a005ef5 Mon Sep 17 00:00:00 2001 From: elseym Date: Thu, 22 Nov 2018 23:15:37 +0100 Subject: [PATCH 38/73] pythonPackages.curve25519-donna: init at 1.3 --- .../curve25519-donna/default.nix | 18 ++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 pkgs/development/python-modules/curve25519-donna/default.nix diff --git a/pkgs/development/python-modules/curve25519-donna/default.nix b/pkgs/development/python-modules/curve25519-donna/default.nix new file mode 100644 index 000000000000..789fc7488fa4 --- /dev/null +++ b/pkgs/development/python-modules/curve25519-donna/default.nix @@ -0,0 +1,18 @@ +{ stdenv, buildPythonPackage, fetchPypi }: + +buildPythonPackage rec { + pname = "curve25519-donna"; + version = "1.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "1w0vkjyh4ki9n98lr2hg09f1lr1g3pz48kshrlic01ba6pasj60q"; + }; + + meta = with stdenv.lib; { + description = "Python wrapper for the portable curve25519-donna implementation"; + homepage = http://code.google.com/p/curve25519-donna/; + license = licenses.bsd3; + maintainers = with maintainers; [ elseym ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 818678e52da9..a9ead916140b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5141,6 +5141,8 @@ in { srptools = callPackage ../development/python-modules/srptools { }; + curve25519-donna = callPackage ../development/python-modules/curve25519-donna { }; + }); in fix' (extends overrides packages) From 1bf2801567d47a59c8ca59299253b8c21539c6fa Mon Sep 17 00:00:00 2001 From: elseym Date: Thu, 22 Nov 2018 23:16:50 +0100 Subject: [PATCH 39/73] pythonPackages.pyatv: init at 0.3.12 --- .../python-modules/pyatv/default.nix | 24 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/python-modules/pyatv/default.nix diff --git a/pkgs/development/python-modules/pyatv/default.nix b/pkgs/development/python-modules/pyatv/default.nix new file mode 100644 index 000000000000..783a36dd2ded --- /dev/null +++ b/pkgs/development/python-modules/pyatv/default.nix @@ -0,0 +1,24 @@ +{ stdenv, buildPythonPackage, fetchPypi, srptools, aiohttp, zeroconf +, ed25519, cryptography, curve25519-donna, pytest, pytestrunner +, netifaces, asynctest, virtualenv, toml, filelock, tox }: + +buildPythonPackage rec { + pname = "pyatv"; + version = "0.3.12"; + + src = fetchPypi { + inherit pname version; + sha256 = "135xvy1nn0x5knc7l05amfs837xkx2gcg3lpp69ya9kqs8j6brgp"; + }; + + propagatedBuildInputs = [ srptools aiohttp zeroconf ed25519 cryptography curve25519-donna tox ]; + + checkInputs = [ pytest pytestrunner netifaces asynctest virtualenv toml filelock ]; + + meta = with stdenv.lib; { + description = "A python client library for the Apple TV"; + homepage = https://github.com/postlund/pyatv; + license = licenses.mit; + maintainers = with maintainers; [ elseym ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a9ead916140b..9120d992154e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5143,6 +5143,8 @@ in { curve25519-donna = callPackage ../development/python-modules/curve25519-donna { }; + pyatv = callPackage ../development/python-modules/curve25519-donna { }; + }); in fix' (extends overrides packages) From e0d8f387d97580e3e9217c594709fc5dc7cc1fc7 Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Tue, 1 Jan 2019 14:39:16 -0600 Subject: [PATCH 40/73] rofi: 1.5.1 -> 1.5.2 https://github.com/DaveDavenport/rofi/releases/tag/1.5.2 --- pkgs/applications/misc/rofi/config.patch | 54 ------------------------ pkgs/applications/misc/rofi/default.nix | 12 +----- 2 files changed, 2 insertions(+), 64 deletions(-) delete mode 100644 pkgs/applications/misc/rofi/config.patch diff --git a/pkgs/applications/misc/rofi/config.patch b/pkgs/applications/misc/rofi/config.patch deleted file mode 100644 index 46982d51e00c..000000000000 --- a/pkgs/applications/misc/rofi/config.patch +++ /dev/null @@ -1,54 +0,0 @@ -diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector -index 0646e4bc..f827dbfe 100755 ---- a/script/rofi-theme-selector -+++ b/script/rofi-theme-selector -@@ -42,34 +42,7 @@ function find_themes() - DIRS=${XDG_DATA_DIRS} - OLDIFS=${IFS} - IFS=: -- if [ -z "${XDG_DATA_DIRS}" ] -- then -- echo "XDG_DATA_DIRS needs to be set for this script to function correctly." -- echo -n "Using dirs from \$PATH: " -- DIRS= -- # Iterate over items in $PATH -- for p in ${PATH}; do -- # Remove trailing / if exists. -- x=${p%/} -- # remove both /bin and /sbin and /games from end -- x=${x%/bin} -- x=${x%/sbin} -- x=${x%/games} -- # Add /share -- x=${x}/share -- # Check if entry exists Prepend : so :${x}: matches nicely -- case ":${DIRS}" in -- *$x:*);; -- *) DIRS+="$x:";; -- esac -- done -- # Remove trailing : -- DIRS=${DIRS%:} -- echo "${DIRS}" -- fi -- # Add user dir. -- DIRS+=":${HOME}/.local/share/" -- DIRS+=":${HOME}/.config/" -+ DIRS+=":%ROFIOUT%/" - for p in ${DIRS}; do - p=${p%/} - TD=${p}/rofi/themes -@@ -164,7 +137,12 @@ Current theme: ${CUR}""" - ### - function set_theme() - { -- CDIR="${HOME}/.config/rofi/" -+ if [ -d "${XDG_CONFIG_HOME}" ]; then -+ CDIR="${XDG_CONFIG_HOME}/rofi/" -+ else -+ CDIR="${HOME}/.config/rofi/" -+ fi -+ - if [ ! -d "${CDIR}" ] - then - mkdir -p ${CDIR} diff --git a/pkgs/applications/misc/rofi/default.nix b/pkgs/applications/misc/rofi/default.nix index 63b047976b3d..0edcde12e341 100644 --- a/pkgs/applications/misc/rofi/default.nix +++ b/pkgs/applications/misc/rofi/default.nix @@ -4,28 +4,20 @@ }: stdenv.mkDerivation rec { - version = "1.5.1"; + version = "1.5.2"; name = "rofi-unwrapped-${version}"; src = fetchurl { url = "https://github.com/DaveDavenport/rofi/releases/download/${version}/rofi-${version}.tar.gz"; - sha256 = "1dc33zf33z38jcxb0lxpyd31waalpf6d4cd9z5f9m5qphdk1g679"; + sha256 = "1rczxz6l32vnclarzga1sm1d5iq9rfscb9j7f8ih185n59hf0517"; }; - # config.patch may be removed in the future - https://github.com/DaveDavenport/rofi/pull/781 - patches = [ ./config.patch ]; - preConfigure = '' patchShebangs "script" # root not present in build /etc/passwd sed -i 's/~root/~nobody/g' test/helper-expand.c ''; - postFixup = '' - substituteInPlace "$out"/bin/rofi-theme-selector \ - --replace "%ROFIOUT%" "$out/share" - ''; - nativeBuildInputs = [ autoreconfHook pkgconfig ]; buildInputs = [ libxkbcommon pango cairo git bison flex librsvg check libstartup_notification libxcb xcbutil xcbutilwm xcbutilxrm which From 0f12423566e41dd94067e08cf2172bc42d475b70 Mon Sep 17 00:00:00 2001 From: elseym Date: Tue, 1 Jan 2019 21:07:03 +0100 Subject: [PATCH 41/73] home-assistant: add apple_tv dependency pyatv --- pkgs/servers/home-assistant/component-packages.nix | 6 +++--- pkgs/top-level/python-packages.nix | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index fbea4ceff6ae..53642bdd36d8 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -44,7 +44,7 @@ "android_ip_webcam" = ps: with ps; [ ]; "apcupsd" = ps: with ps; [ ]; "api" = ps: with ps; [ aiohttp-cors ]; - "apple_tv" = ps: with ps; [ ]; + "apple_tv" = ps: with ps; [ pyatv ]; "aqualogic" = ps: with ps; [ ]; "arduino" = ps: with ps; [ ]; "arlo" = ps: with ps; [ ]; @@ -658,7 +658,7 @@ "media_extractor" = ps: with ps; [ aiohttp-cors youtube-dl-light ]; "media_player" = ps: with ps; [ aiohttp-cors ]; "media_player.anthemav" = ps: with ps; [ ]; - "media_player.apple_tv" = ps: with ps; [ ]; + "media_player.apple_tv" = ps: with ps; [ pyatv ]; "media_player.aquostv" = ps: with ps; [ ]; "media_player.blackbird" = ps: with ps; [ ]; "media_player.bluesound" = ps: with ps; [ xmltodict ]; @@ -850,7 +850,7 @@ "recorder.util" = ps: with ps; [ ]; "remember_the_milk" = ps: with ps; [ httplib2 ]; "remote" = ps: with ps; [ ]; - "remote.apple_tv" = ps: with ps; [ ]; + "remote.apple_tv" = ps: with ps; [ pyatv ]; "remote.demo" = ps: with ps; [ ]; "remote.harmony" = ps: with ps; [ ]; "remote.itach" = ps: with ps; [ ]; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9120d992154e..29d9c965d88b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5143,7 +5143,7 @@ in { curve25519-donna = callPackage ../development/python-modules/curve25519-donna { }; - pyatv = callPackage ../development/python-modules/curve25519-donna { }; + pyatv = callPackage ../development/python-modules/pyatv { }; }); From 3df9c55b47abfe21b4fc49acfd1836b3b4b022fa Mon Sep 17 00:00:00 2001 From: elseym Date: Tue, 1 Jan 2019 22:57:18 +0100 Subject: [PATCH 42/73] pythonPackages.pybotvac: init at 0.0.12 --- .../python-modules/pybotvac/default.nix | 20 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 pkgs/development/python-modules/pybotvac/default.nix diff --git a/pkgs/development/python-modules/pybotvac/default.nix b/pkgs/development/python-modules/pybotvac/default.nix new file mode 100644 index 000000000000..8bfd7668114a --- /dev/null +++ b/pkgs/development/python-modules/pybotvac/default.nix @@ -0,0 +1,20 @@ +{ stdenv, buildPythonPackage, fetchPypi, requests }: + +buildPythonPackage rec { + pname = "pybotvac"; + version = "0.0.12"; + + src = fetchPypi { + inherit pname version; + sha256 = "12qm4w883nb6fwff6sch5l133g3irqjcrgkjhh4mz1mmz7n6xzjh"; + }; + + propagatedBuildInputs = [ requests ]; + + meta = with stdenv.lib; { + description = "Python package for controlling Neato pybotvac Connected vacuum robot"; + homepage = https://github.com/stianaske/pybotvac; + license = licenses.mit; + maintainers = with maintainers; [ elseym ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 29d9c965d88b..4196663b4138 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5145,6 +5145,8 @@ in { pyatv = callPackage ../development/python-modules/pyatv { }; + pybotvac = callPackage ../development/python-modules/pybotvac { }; + }); in fix' (extends overrides packages) From d9907d6a972afb0d6fe35b69decbc2e79dd7f0f6 Mon Sep 17 00:00:00 2001 From: elseym Date: Tue, 1 Jan 2019 22:58:32 +0100 Subject: [PATCH 43/73] home-assistant: add neato dependency pybotvac --- pkgs/servers/home-assistant/component-packages.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/home-assistant/component-packages.nix b/pkgs/servers/home-assistant/component-packages.nix index 53642bdd36d8..2281ac57ed52 100644 --- a/pkgs/servers/home-assistant/component-packages.nix +++ b/pkgs/servers/home-assistant/component-packages.nix @@ -198,7 +198,7 @@ "camera.logi_circle" = ps: with ps; [ ]; "camera.mjpeg" = ps: with ps; [ ]; "camera.mqtt" = ps: with ps; [ paho-mqtt ]; - "camera.neato" = ps: with ps; [ ]; + "camera.neato" = ps: with ps; [ pybotvac ]; "camera.nest" = ps: with ps; [ ]; "camera.netatmo" = ps: with ps; [ ]; "camera.onvif" = ps: with ps; [ ha-ffmpeg ]; @@ -743,7 +743,7 @@ "mysensors.handler" = ps: with ps; [ ]; "mysensors.helpers" = ps: with ps; [ ]; "namecheapdns" = ps: with ps; [ ]; - "neato" = ps: with ps; [ ]; + "neato" = ps: with ps; [ pybotvac ]; "nest" = ps: with ps; [ ]; "nest.config_flow" = ps: with ps; [ ]; "nest.const" = ps: with ps; [ ]; @@ -1265,7 +1265,7 @@ "switch.mqtt" = ps: with ps; [ paho-mqtt ]; "switch.mysensors" = ps: with ps; [ ]; "switch.mystrom" = ps: with ps; [ ]; - "switch.neato" = ps: with ps; [ ]; + "switch.neato" = ps: with ps; [ pybotvac ]; "switch.netio" = ps: with ps; [ aiohttp-cors ]; "switch.orvibo" = ps: with ps; [ ]; "switch.pilight" = ps: with ps; [ ]; @@ -1369,7 +1369,7 @@ "vacuum.dyson" = ps: with ps; [ ]; "vacuum.ecovacs" = ps: with ps; [ ]; "vacuum.mqtt" = ps: with ps; [ paho-mqtt ]; - "vacuum.neato" = ps: with ps; [ ]; + "vacuum.neato" = ps: with ps; [ pybotvac ]; "vacuum.roomba" = ps: with ps; [ ]; "vacuum.xiaomi_miio" = ps: with ps; [ construct ]; "velbus" = ps: with ps; [ ]; From c923094039a5b3d736d1d96995f3da4dcc81d8e1 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 30 Dec 2018 19:00:00 -0500 Subject: [PATCH 44/73] cooper-hewitt: init at 2014-06-09 --- pkgs/data/fonts/cooper-hewitt/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/data/fonts/cooper-hewitt/default.nix diff --git a/pkgs/data/fonts/cooper-hewitt/default.nix b/pkgs/data/fonts/cooper-hewitt/default.nix new file mode 100644 index 000000000000..1fa5cff76048 --- /dev/null +++ b/pkgs/data/fonts/cooper-hewitt/default.nix @@ -0,0 +1,22 @@ +{ stdenv, fetchzip }: + +fetchzip rec { + name = "cooper-hewitt-2014-06-09"; + + url = https://www.cooperhewitt.org/wp-content/uploads/fonts/CooperHewitt-OTF-public.zip; + + postFetch = '' + mkdir -p $out/share/fonts/opentype + unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype/ + ''; + + sha256 = "01iwqmjvqkc6fmc2r0486vk06s6f51n9wxzl1pf9z48n0igj4gqd"; + + meta = with stdenv.lib; { + homepage = https://www.cooperhewitt.org/open-source-at-cooper-hewitt/cooper-hewitt-the-typeface-by-chester-jenkins/; + description = "A contemporary sans serif, with characters composed of modified-geometric curves and arches"; + license = licenses.ofl; + platforms = platforms.all; + maintainers = [ maintainers.marsam ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c29d384a77fa..50e56ca92dc9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15465,6 +15465,8 @@ in conway_polynomials = callPackage ../data/misc/conway_polynomials { }; + cooper-hewitt = callPackage ../data/fonts/cooper-hewitt { }; + dosis = callPackage ../data/fonts/dosis { }; dosemu_fonts = callPackage ../data/fonts/dosemu-fonts { }; From 046f90d2510978c4ac38caf0e199f90d8b2da8e4 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 30 Dec 2018 19:01:00 -0500 Subject: [PATCH 45/73] inter-ui: 3.0 -> 3.1 --- pkgs/data/fonts/inter-ui/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/inter-ui/default.nix b/pkgs/data/fonts/inter-ui/default.nix index dcce90aaef5f..4d9973aa2a25 100644 --- a/pkgs/data/fonts/inter-ui/default.nix +++ b/pkgs/data/fonts/inter-ui/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchzip }: let - version = "3.0"; + version = "3.1"; in fetchzip { name = "inter-ui-${version}"; @@ -12,7 +12,7 @@ in fetchzip { unzip -j $downloadedFile \*.otf -d $out/share/fonts/opentype ''; - sha256 = "16qmb8farkh41i56f0vvbxcg32rbg7my64amwz5y8gyy73i3320q"; + sha256 = "0cdjpwylynwmab0x5z5lw43k39vis74xj1ciqg8nw12ccprbmj60"; meta = with stdenv.lib; { homepage = https://rsms.me/inter/; From aa538809de5005d165ea3d2ecf722149343935c6 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 30 Dec 2018 19:02:00 -0500 Subject: [PATCH 46/73] cantarell-fonts: 0.110 -> 0.111 --- pkgs/data/fonts/cantarell-fonts/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/data/fonts/cantarell-fonts/default.nix b/pkgs/data/fonts/cantarell-fonts/default.nix index 03d2e85d6af9..4403d690a16d 100644 --- a/pkgs/data/fonts/cantarell-fonts/default.nix +++ b/pkgs/data/fonts/cantarell-fonts/default.nix @@ -2,13 +2,13 @@ let pname = "cantarell-fonts"; - version = "0.110"; + version = "0.111"; in stdenv.mkDerivation rec { name = "${pname}-${version}"; src = fetchurl { url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; - sha256 = "19rll0h4xjn83lqm0zc4088y0vkrx1wxg8jz9imvgd8snmfxfm54"; + sha256 = "05hpnhihwm9sxlq1qn993g03pwkmpjbn0dvnba71r1gfjv0jp2w5"; }; nativeBuildInputs = [ meson ninja gettext appstream-glib ]; @@ -21,7 +21,7 @@ in stdenv.mkDerivation rec { outputHashAlgo = "sha256"; outputHashMode = "recursive"; - outputHash = "052nxmhw2j8yvcj90r8xhjf0mzim8h6syip7winxb28vavj6jnba"; + outputHash = "12ps2gjv1lmzbmkv16vgjmaahl3ayadpniyrx0z31sqn443r57hq"; passthru = { updateScript = gnome3.updateScript { From 70f06b3b61e419bad6a5acb71c9ea9f051689962 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 30 Dec 2018 19:03:00 -0500 Subject: [PATCH 47/73] font-droid: drop deprecated in favor of noto https://github.com/google/fonts/issues/1223 --- pkgs/data/fonts/droid/default.nix | 64 ------------------------------- pkgs/top-level/all-packages.nix | 2 - 2 files changed, 66 deletions(-) delete mode 100644 pkgs/data/fonts/droid/default.nix diff --git a/pkgs/data/fonts/droid/default.nix b/pkgs/data/fonts/droid/default.nix deleted file mode 100644 index c2a4868a091c..000000000000 --- a/pkgs/data/fonts/droid/default.nix +++ /dev/null @@ -1,64 +0,0 @@ -{ stdenv, fetchurl }: - -stdenv.mkDerivation rec { - name = "font-droid-${version}"; - version = "2015-12-09"; - at = "2776afefa9e0829076cd15fdc41e7950e2ffab82"; - - srcs = [ - (fetchurl { - url = "https://github.com/google/fonts/raw/${at}/apache/droidsans/DroidSans.ttf"; - sha256 = "1yml18dm86rrkihb2zz0ng8b1j2bb14hxc1d3hp0998vsr9s1w4h"; - }) - (fetchurl { - url = "https://github.com/google/fonts/raw/${at}/apache/droidsans/DroidSans-Bold.ttf"; - sha256 = "1z61hz92d3l1pawmbc6iwi689v8rr0xlkx59pl89m1g9aampdrmh"; - }) - (fetchurl { - url = "https://github.com/google/fonts/raw/${at}/apache/droidsansmono/DroidSansMono.ttf"; - sha256 = "0rzspxg457q4f4cp2wz93py13lbnqbhf12q4mzgy6j30njnjwl9h"; - }) - (fetchurl { - url = "https://github.com/google/fonts/raw/${at}/apache/droidserif/DroidSerif.ttf"; - sha256 = "1y7jzi7dz8j1yp8dxbmbvd6dpsck2grk3q1kd5rl7f31vlq5prj1"; - }) - (fetchurl { - url = "https://github.com/google/fonts/raw/${at}/apache/droidserif/DroidSerif-Bold.ttf"; - sha256 = "1c61b423sn5nnr2966jdzq6fy8pw4kg79cr3nbby83jsly389f9b"; - }) - (fetchurl { - url = "https://github.com/google/fonts/raw/${at}/apache/droidserif/DroidSerif-Italic.ttf"; - sha256 = "1bvrilgi0s72hiiv32hlxnzazslh3rbz8wgmsln0i9mnk7jr9bs0"; - }) - (fetchurl { - url = "https://github.com/google/fonts/raw/${at}/apache/droidserif/DroidSerif-BoldItalic.ttf"; - sha256 = "052vlkmhy9c5nyk4byvhzya3y57fb09lqxd6spar6adf9ajbylgi"; - }) - ]; - - phases = [ "unpackPhase" "installPhase" ]; - - sourceRoot = "./"; - - unpackCmd = '' - ttfName=$(basename $(stripHash $curSrc)) - cp $curSrc ./$ttfName - ''; - - installPhase = '' - mkdir -p $out/share/fonts/droid - cp *.ttf $out/share/fonts/droid - ''; - - outputHashAlgo = "sha256"; - outputHashMode = "recursive"; - outputHash = "1l3lqfdr9pm05b1py9yr3cf65gi1my7jrrlvikqpqg2zr066n6c3"; - - meta = { - description = "Droid Family fonts by Google Android"; - homepage = https://github.com/google/fonts; - license = stdenv.lib.licenses.asl20; - platforms = stdenv.lib.platforms.all; - maintainers = []; - }; -} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 50e56ca92dc9..41d3d16cddd7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15515,8 +15515,6 @@ in freefont_ttf = callPackage ../data/fonts/freefont-ttf { }; - font-droid = callPackage ../data/fonts/droid { }; - freepats = callPackage ../data/misc/freepats { }; gentium = callPackage ../data/fonts/gentium {}; From b6b9e016fc2cf0e9085c7d305dba4113eb4b02bf Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 30 Dec 2018 19:04:00 -0500 Subject: [PATCH 48/73] font-awesome_5: 5.5.0 -> 5.6.3 --- pkgs/data/fonts/font-awesome-5/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/data/fonts/font-awesome-5/default.nix b/pkgs/data/fonts/font-awesome-5/default.nix index aea809c04ecd..c1eda7e6a56a 100644 --- a/pkgs/data/fonts/font-awesome-5/default.nix +++ b/pkgs/data/fonts/font-awesome-5/default.nix @@ -1,7 +1,7 @@ { stdenv, fetchzip }: let - version = "5.5.0"; + version = "5.6.3"; in fetchzip rec { name = "font-awesome-${version}"; @@ -9,12 +9,10 @@ in fetchzip rec { postFetch = '' mkdir -p $out/share/fonts - unzip -j $downloadedFile "Font-Awesome-${version}/use-on-desktop/Font Awesome 5 Brands-Regular-400.otf" -d $out/share/fonts/opentype - unzip -j $downloadedFile "Font-Awesome-${version}/use-on-desktop/Font Awesome 5 Free-Regular-400.otf" -d $out/share/fonts/opentype - unzip -j $downloadedFile "Font-Awesome-${version}/use-on-desktop/Font Awesome 5 Free-Solid-900.otf" -d $out/share/fonts/opentype + unzip -j $downloadedFile "Font-Awesome-${version}/otfs/*.otf" -d $out/share/fonts/opentype ''; - sha256 = "1drjc40glfqhwmfn3s4gz8hz1x0ncrwdr9n1i25m1l7pvsk26f5f"; + sha256 = "0y3zar7hyx5pj8rpyk2kz3sx6zgrfif2ka2h4rg0b8h8qbja0al6"; meta = with stdenv.lib; { description = "Font Awesome - OTF font"; From 43fdf78b8df81fefdc252088ae6ecefb26a02eba Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 30 Dec 2018 19:05:00 -0500 Subject: [PATCH 49/73] material-design-icons: 3.2.89 -> 3.3.92 --- pkgs/data/fonts/material-design-icons/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/material-design-icons/default.nix b/pkgs/data/fonts/material-design-icons/default.nix index c6e48cccb8ca..432bbaa78db7 100644 --- a/pkgs/data/fonts/material-design-icons/default.nix +++ b/pkgs/data/fonts/material-design-icons/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { name = "material-design-icons-${version}"; - version = "3.2.89"; + version = "3.3.92"; src = fetchFromGitHub { owner = "Templarian"; repo = "MaterialDesign-Webfont"; rev = "v${version}"; - sha256 = "1rxaiiij96kqncsrlkyp109m36v28cgxild7z04k4jh79fvmhjvn"; + sha256 = "0k8pv2nsp3al4i4awx5mv7cscpm8akjn567jl9dwzangcsai0l53"; }; installPhase = '' From 38ca0c674d4135a7ecb6e40202b8284bb69350c8 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Sun, 30 Dec 2018 19:06:00 -0500 Subject: [PATCH 50/73] iosevka: 2.0.1 -> 2.0.2 --- pkgs/data/fonts/iosevka/bin.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/data/fonts/iosevka/bin.nix b/pkgs/data/fonts/iosevka/bin.nix index 9bf5b40a78de..529a727d6c0f 100644 --- a/pkgs/data/fonts/iosevka/bin.nix +++ b/pkgs/data/fonts/iosevka/bin.nix @@ -1,7 +1,7 @@ { stdenv, fetchzip }: let - version = "2.0.1"; + version = "2.0.2"; in fetchzip rec { name = "iosevka-bin-${version}"; @@ -12,7 +12,7 @@ in fetchzip rec { unzip -j $downloadedFile \*.ttc -d $out/share/fonts/iosevka ''; - sha256 = "1i21ja348k22rlf8z9jp90cidpmcnwqsw12vdrmm556sdwdkrkpc"; + sha256 = "0jr9d02dk4zbq3kyhpfs6gyynwss60210pc1dfxn0qbw3j9ch2l4"; meta = with stdenv.lib; { homepage = https://be5invis.github.io/Iosevka/; From 370d08f0d2b2a14bcde66e985888ec4150d7bb44 Mon Sep 17 00:00:00 2001 From: Jan Tojnar Date: Tue, 1 Jan 2019 23:50:02 +0100 Subject: [PATCH 51/73] gnucash2{4,6}: drop --- pkgs/applications/office/gnucash/2.4.nix | 91 ------------------ pkgs/applications/office/gnucash/2.6.nix | 116 ----------------------- pkgs/top-level/all-packages.nix | 19 ---- 3 files changed, 226 deletions(-) delete mode 100644 pkgs/applications/office/gnucash/2.4.nix delete mode 100644 pkgs/applications/office/gnucash/2.6.nix diff --git a/pkgs/applications/office/gnucash/2.4.nix b/pkgs/applications/office/gnucash/2.4.nix deleted file mode 100644 index 40c91d6488d6..000000000000 --- a/pkgs/applications/office/gnucash/2.4.nix +++ /dev/null @@ -1,91 +0,0 @@ -{ fetchurl, stdenv, pkgconfig, libxml2, gconf, glib, gtk2, libgnomeui, libofx -, libgtkhtml, gtkhtml, libgnomeprint, goffice, enchant, gettext, libbonoboui -, intltool, perl, guile, slibGuile, swig, isocodes, bzip2, makeWrapper, libglade -, libgsf, libart_lgpl, perlPackages, aqbanking, gwenhywfar, hicolor-icon-theme -, pcre -}: - -/* If you experience GConf errors when running GnuCash on NixOS, see - * http://wiki.nixos.org/wiki/Solve_GConf_errors_when_running_GNOME_applications - * for a possible solution. - */ - -stdenv.mkDerivation rec { - name = "gnucash-2.4.15"; - - src = fetchurl { - url = "mirror://sourceforge/gnucash/${name}.tar.bz2"; - sha256 = "058mgfwic6a2g7jq6iip5hv45md1qaxy25dj4lvlzjjr141wm4gx"; - }; - - nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ - libxml2 gconf glib gtk2 libgnomeui libgtkhtml gtkhtml - libgnomeprint goffice enchant gettext intltool perl guile slibGuile - swig isocodes bzip2 makeWrapper libofx libglade libgsf libart_lgpl - perlPackages.DateManip perlPackages.FinanceQuote aqbanking gwenhywfar - hicolor-icon-theme pcre - ]; - propagatedUserEnvPkgs = [ gconf ]; - - configureFlags = [ - "CFLAGS=-O3" - "CXXFLAGS=-O3" - "--disable-dbi" - "--enable-ofx" - "--enable-aqbanking" - ]; - - postInstall = '' - # Auto-updaters don't make sense in Nix. - rm $out/bin/gnc-fq-update - - sed -i $out/bin/update-gnucash-gconf \ - -e 's|--config-source=[^ ]* --install-schema-file|--makefile-install-rule|' - - for prog in $(echo "$out/bin/"*) - do - # Don't wrap the gnc-fq-* scripts, since gnucash calls them as - # "perl