git.iko.soy/typeable/nixpkgs
on master help sign in
Merge staging-next into master
commit1ae2f10642ea00a423354dd3176c55e47dbf3f6e authorFrederik Rietdijk <fridh@fridh.nl> dateTue 17 Jul 2018, 10:04 (8 years ago) parentbac995c9d0336a
77 files changed+497−454
nixos/modules/services/hardware/pcscd.nix+2−2 pkgs/applications/audio/gpodder/default.nix−1 pkgs/applications/misc/yubioath-desktop/default.nix+1−1 pkgs/applications/networking/remote/freerdp/default.nix+1−1 pkgs/applications/office/moneyplex/default.nix+3−3 pkgs/applications/version-management/git-and-tools/git/default.nix+13−3 pkgs/applications/version-management/git-and-tools/git/symlinks-in-bin.patch−13 pkgs/build-support/fetchgit/nix-prefetch-git+1−1 pkgs/desktops/gnome-3/misc/california/default.nix+5 pkgs/desktops/xfce/applications/orage.nix+11−2 pkgs/desktops/xfce4-13/orage/default.nix+10−1 pkgs/development/compilers/ispc/default.nix+8−1 pkgs/development/compilers/lessc/default.nix−29 pkgs/development/compilers/llvm/5/llvm.nix+4−5 pkgs/development/compilers/llvm/6/clang/default.nix+1−1 pkgs/development/compilers/llvm/6/compiler-rt.nix+1−1 pkgs/development/compilers/llvm/6/default.nix+2−2 pkgs/development/compilers/llvm/6/libc++/default.nix+1−1 pkgs/development/compilers/llvm/6/libc++abi.nix+1−1 pkgs/development/compilers/llvm/6/lld.nix+1−1 pkgs/development/compilers/llvm/6/lldb.nix+1−1 pkgs/development/compilers/llvm/6/llvm.nix+8−6 pkgs/development/compilers/llvm/6/openmp.nix+1−1 pkgs/development/compilers/llvm/6/sanitizers-nongnu.patch+78−42 pkgs/development/interpreters/perl/default.nix+6−6 pkgs/development/interpreters/python/cpython/3.6/default.nix+4−5 pkgs/development/interpreters/python/cpython/3.7/default.nix+12−2 pkgs/development/libraries/gdbm/default.nix+2−2 pkgs/development/libraries/libical/default.nix+30−6 pkgs/development/libraries/libical/respect-env-tzdir.patch+5−5 pkgs/development/libraries/libiconv/default.nix+4−3 pkgs/development/libraries/libuv/default.nix+27−11 pkgs/development/libraries/mesa/default.nix+8−3 pkgs/development/libraries/pcre2/default.nix+2−28 pkgs/development/libraries/volume-key/default.nix+6−1 pkgs/development/python-modules/aiodns/default.nix+4−4 pkgs/development/python-modules/future/default.nix−4 pkgs/development/python-modules/grpcio/default.nix+3−3 pkgs/development/python-modules/pelican/default.nix+1−2 pkgs/development/python-modules/pyscard/default.nix+2−2 pkgs/development/python-modules/pytest/default.nix+2−3 pkgs/development/python-modules/trollius/default.nix+2−5 pkgs/development/tools/build-managers/cmake/default.nix+6−1 pkgs/development/tools/hexio/default.nix+1−1 pkgs/development/tools/misc/automake/automake-1.11.x.nix+1−1 pkgs/development/tools/misc/automake/fix-perl-5.26.patch+10 pkgs/development/tools/parsing/bison/2.x.nix+5−3 pkgs/development/tools/parsing/bison/darwin-vasnprintf.patch+12 pkgs/development/web/nodejs/v10.nix+2−2 pkgs/os-specific/darwin/apple-sdk/default.nix+4−2 pkgs/os-specific/darwin/apple-sdk/frameworks.nix−1 pkgs/os-specific/darwin/apple-source-releases/libiconv/default.nix+4−2 pkgs/os-specific/darwin/apple-source-releases/libsecurity_generic/default.nix+3−1 pkgs/os-specific/darwin/apple-source-releases/libsecurityd/default.nix+3−3 pkgs/os-specific/darwin/security-tool/default.nix+3−2 pkgs/os-specific/linux/audit/default.nix+2−2 pkgs/os-specific/linux/busybox/default.nix+2−2 pkgs/os-specific/linux/checkpolicy/default.nix+4−4 pkgs/os-specific/linux/libselinux/default.nix+15−13 pkgs/os-specific/linux/libsepol/default.nix+12−6 pkgs/os-specific/linux/selinux-python/default.nix+1−1 pkgs/os-specific/linux/setools/default.nix+1−1 pkgs/os-specific/linux/wpa_supplicant/default.nix+2−2 pkgs/tools/compression/brotli/default.nix+2−2 pkgs/tools/graphics/luxcorerender/default.nix+1 pkgs/tools/misc/parted/default.nix+5 pkgs/tools/misc/xxd/default.nix−16 pkgs/tools/networking/curl/default.nix+4 pkgs/tools/security/gnupg/20.nix+1−1 pkgs/tools/security/gnupg/22.nix+1−1 pkgs/tools/security/open-ecard/default.nix+1−1 pkgs/tools/security/opensc/default.nix+1−1 pkgs/tools/security/pcsclite/default.nix+7 pkgs/top-level/all-packages.nix+5−9 pkgs/top-level/perl-packages.nix+73−116 pkgs/top-level/python-packages.nix+20−42 pkgs/top-level/unix-tools.nix+9
nixos/modules/services/hardware/pcscd.nix+2−2
@@ -61,8 +61,8 @@ in {
6161 description = "PCSC-Lite daemon";
6262 environment.PCSCLITE_HP_DROPDIR = pluginEnv;
6363 serviceConfig = {
64− ExecStart = "${pkgs.pcsclite}/sbin/pcscd -f -x -c ${cfgFile}";
65− ExecReload = "${pkgs.pcsclite}/sbin/pcscd -H";
64+ ExecStart = "${getBin pkgs.pcsclite}/sbin/pcscd -f -x -c ${cfgFile}";
65+ ExecReload = "${getBin pkgs.pcsclite}/sbin/pcscd -H";
6666 };
6767 };
6868 };
pkgs/applications/audio/gpodder/default.nix−1
@@ -6,7 +6,6 @@
66python3Packages.buildPythonApplication rec {
77 pname = "gpodder";
88 version = "3.10.3";
9−
109 format = "other";
1110
1211 src = fetchFromGitHub {
pkgs/applications/misc/yubioath-desktop/default.nix+1−1
@@ -18,7 +18,7 @@ python27Packages.buildPythonApplication rec {
1818
1919 # Need LD_PRELOAD for libykpers as the Nix cpython disables ctypes.cdll.LoadLibrary
2020 # support that the yubicommon library uses to load libykpers
21− makeWrapperArgs = ''--prefix LD_LIBRARY_PATH : "${pcsclite}/lib:${yubikey-personalization}/lib" --prefix LD_PRELOAD : "${yubikey-personalization}/lib/libykpers-1.so"'';
21+ makeWrapperArgs = ''--prefix LD_LIBRARY_PATH : "${stdenv.lib.getLib pcsclite}/lib:${yubikey-personalization}/lib" --prefix LD_PRELOAD : "${yubikey-personalization}/lib/libykpers-1.so"'';
2222
2323 postInstall = ''
2424 mkdir -p $out/share/applications
pkgs/applications/networking/remote/freerdp/default.nix+1−1
@@ -31,7 +31,7 @@ stdenv.mkDerivation rec {
3131 --replace "Requires:" "Requires: @WINPR_PKG_CONFIG_FILENAME@"
3232 '' + lib.optionalString (pcsclite != null) ''
3333 substituteInPlace "winpr/libwinpr/smartcard/smartcard_pcsc.c" \
34− --replace "libpcsclite.so" "${pcsclite}/lib/libpcsclite.so"
34+ --replace "libpcsclite.so" "${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so"
3535 '';
3636
3737 buildInputs = with lib; [
pkgs/applications/office/moneyplex/default.nix+3−3
@@ -62,14 +62,14 @@ stdenv.mkDerivation rec {
6262 if [ ! -d "\$MDIR/pcsc" ]; then
6363 ${coreutils}/bin/mkdir -p \$MDIR/pcsc
6464 fi
65− if [ ! -e "\$MDIR/pcsc/libpcsclite.so.1" ] || [ ! \`${coreutils}/bin/readlink -f "\$MDIR/pcsc/libpcsclite.so.1"\` -ef "${pcsclite}/lib/libpcsclite.so.1" ]; then
66− ${coreutils}/bin/ln -sf "${pcsclite}/lib/libpcsclite.so.1" "\$MDIR/pcsc/libpcsclite.so.1"
65+ if [ ! -e "\$MDIR/pcsc/libpcsclite.so.1" ] || [ ! \`${coreutils}/bin/readlink -f "\$MDIR/pcsc/libpcsclite.so.1"\` -ef "${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so.1" ]; then
66+ ${coreutils}/bin/ln -sf "${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so.1" "\$MDIR/pcsc/libpcsclite.so.1"
6767 fi
6868
6969
7070 if [ -e "\$MDIR/rup/rupremote.lst" ]; then
7171 for i in \`${coreutils}/bin/cat "\$MDIR/rup/rupremote.lst"\`; do
72− ${coreutils}/bin/mv "\$MDIR/rup/"\`${coreutils}/bin/basename \$i\` "\$MDIR/\$i"
72+ ${coreutils}/bin/mv "\$MDIR/rup/"\`${coreutils}/bin/basename \$i\` "\$MDIR/\$i"
7373 done
7474 rm -r "\$MDIR/rup/rupremote.lst"
7575 fi
pkgs/applications/version-management/git-and-tools/git/default.nix+13−3
@@ -18,7 +18,7 @@ assert sendEmailSupport -> perlSupport;
1818assert svnSupport -> perlSupport;
1919
2020let
21− version = "2.17.1";
21+ version = "2.18.0";
2222 svn = subversionClient.override { perlBindings = perlSupport; };
2323in
2424
@@ -27,7 +27,7 @@ stdenv.mkDerivation {
2727
2828 src = fetchurl {
2929 url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz";
30− sha256 = "0pm6bdnrrm165k3krnazxcxadifk2gqi30awlbcf9fism1x6w4vr";
30+ sha256 = "14hfwfkrci829a9316hnvkglnqqw1p03cw9k56p4fcb078wbwh4b";
3131 };
3232
3333 outputs = [ "out" ] ++ stdenv.lib.optional perlSupport "gitweb";
@@ -40,7 +40,6 @@ stdenv.mkDerivation {
4040
4141 patches = [
4242 ./docbook2texi.patch
43− ./symlinks-in-bin.patch
4443 ./git-sh-i18n.patch
4544 ./ssh-path.patch
4645 ./git-send-email-honor-PATH.patch
@@ -277,10 +276,21 @@ EOF
277276
278277 # XXX: I failed to understand why this one fails.
279278 # Could someone try to re-enable it on the next release ?
279+ # Tested to fail: 2.18.0
280280 disable_test t1700-split-index "null sha1"
281+
282+ # Tested to fail: 2.18.0
283+ disable_test t7005-editor "editor with a space"
284+ disable_test t7005-editor "core.editor with a space"
285+
286+ # Tested to fail: 2.18.0
287+ disable_test t9902-completion "sourcing the completion script clears cached --options"
281288 '' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
282289 # Test fails (as of 2.17.0, musl 1.1.19)
283290 disable_test t3900-i18n-commit
291+ # Fails largely due to assumptions about BOM
292+ # Tested to fail: 2.18.0
293+ disable_test t0028-working-tree-encoding
284294 '';
285295
286296
pkgs/applications/version-management/git-and-tools/git/symlinks-in-bin.patchdeleted−13
@@ -1,13 +0,0 @@
1−diff --git a/Makefile b/Makefile
2−--- a/Makefile
3−+++ b/Makefile
4−@@ -2609,8 +2609,7 @@
5− { test "$$bindir/" = "$$execdir/" || \
6− for p in git$X $(filter $(install_bindir_programs),$(ALL_PROGRAMS)); do \
7− $(RM) "$$execdir/$$p" && \
8−- test -z "$(NO_INSTALL_HARDLINKS)$(NO_CROSS_DIRECTORY_HARDLINKS)" && \
9−- ln "$$bindir/$$p" "$$execdir/$$p" 2>/dev/null || \
10−+ ln -s "$$bindir/$$p" "$$execdir/$$p" 2>/dev/null || \
11− cp "$$bindir/$$p" "$$execdir/$$p" || exit; \
12− done; \
13− } && \
pkgs/build-support/fetchgit/nix-prefetch-git+1−1
@@ -185,7 +185,7 @@ init_submodules(){
185185
186186 # checkout each submodule
187187 hash=$(echo "$l" | awk '{print $1}' | tr -d '-')
188− dir=$(echo "$l" | sed -n 's/^ \{0,1\}[^ ]* \(.*\) ([^ ]*)$/\1/p')
188+ dir=$(echo "$l" | sed -n 's/^.[0-9a-f]\+ \(.*[^)]*\)\( (.*)\)\?$/\1/p')
189189 name=$(
190190 git config -f .gitmodules --get-regexp submodule\..*\.path |
191191 sed -n "s,^\(.*\)\.path $dir\$,\\1,p")
pkgs/desktops/gnome-3/misc/california/default.nix+5
@@ -23,6 +23,11 @@ in stdenv.mkDerivation rec {
2323 url = https://src.fedoraproject.org/rpms/california/raw/c00bf9924d8fa8cb0a9ec06564d1a1b00c9055af/f/0002-Build-with-evolution-data-server-3.13.90.patch;
2424 sha256 = "0g9923n329p32gzr1q52ad30f8vyz8vrri4rih0w8klmf02ga4pm";
2525 })
26+ # Apply Fedora patch to build with libical > 3.0
27+ (fetchurl {
28+ url = https://src.fedoraproject.org/rpms/california/raw/2af9a6a1b67b53f3fca1472c5350dc11a1acf28f/f/california-0.4.0-libical-3.0.patch;
29+ sha256 = "0cxycfaql0bsiz9hzanns33pwdqpb5n44znfcfa66i1bin34r4n6";
30+ })
2631 ];
2732
2833 passthru = {
pkgs/desktops/xfce/applications/orage.nix+11−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig, bison, flex, intltool, gtk, libical, dbus-glib
1+{ stdenv, fetchurl, fetchpatch, pkgconfig, bison, flex, intltool, gtk, libical, dbus-glib
22, libnotify, popt, xfce
33}:
44
@@ -13,8 +13,17 @@ stdenv.mkDerivation rec {
1313 sha256 = "0qlhvnl2m33vfxqlbkic2nmfpwyd4mq230jzhs48cg78392amy9w";
1414 };
1515
16+ patches = [
17+ # Fix build with libical 3.0
18+ (fetchpatch {
19+ name = "fix-libical3.patch";
20+ url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/libical3.patch?h=packages/orage&id=7b1b06c42dda034d538977b9f3550b28e370057f;
21+ sha256 = "1l8s106mcidmbx2p8c2pi8v9ngbv2x3fsgv36j8qk8wyd4qd1jbf";
22+ })
23+ ];
24+
1625 nativeBuildInputs = [ pkgconfig intltool bison flex ];
17−
26+
1827 buildInputs = [ gtk libical dbus-glib libnotify popt xfce.libxfce4util
1928 xfce.xfce4-panel ];
2029
pkgs/desktops/xfce4-13/orage/default.nix+10−1
@@ -1,4 +1,4 @@
1−{ lib, mkXfceDerivation, dbus_glib ? null, gtk2, libical, libnotify ? null
1+{ lib, fetchpatch, mkXfceDerivation, dbus_glib ? null, gtk2, libical, libnotify ? null
22, popt ? null, libxfce4ui ? null, xfce4-panel ? null, withPanelPlugin ? true }:
33
44assert withPanelPlugin -> libxfce4ui != null && xfce4-panel != null;
@@ -15,4 +15,13 @@ mkXfceDerivation rec {
1515 sha256 = "04z6y1vfaz1im1zq1zr7cf8pjibjhj9zkyanbp7vn30q520yxa0m";
1616 buildInputs = [ dbus_glib gtk2 libical libnotify popt ]
1717 ++ optionals withPanelPlugin [ libxfce4ui xfce4-panel ];
18+
19+ patches = [
20+ # Fix build with libical 3.0
21+ (fetchpatch {
22+ name = "fix-libical3.patch";
23+ url = https://git.archlinux.org/svntogit/packages.git/plain/trunk/libical3.patch?h=packages/orage&id=7b1b06c42dda034d538977b9f3550b28e370057f;
24+ sha256 = "1l8s106mcidmbx2p8c2pi8v9ngbv2x3fsgv36j8qk8wyd4qd1jbf";
25+ })
26+ ];
1827}
pkgs/development/compilers/ispc/default.nix+8−1
@@ -1,4 +1,4 @@
1−{stdenv, fetchFromGitHub, bash, which, m4, python, bison, flex, llvmPackages,
1+{stdenv, fetchFromGitHub, fetchpatch, bash, which, m4, python, bison, flex, llvmPackages,
22testedTargets ? ["sse2" "host"] # the default test target is sse4, but that is not supported by all Hydra agents
33}:
44
@@ -32,6 +32,13 @@ stdenv.mkDerivation rec {
3232 llvmPackages.clang-unwrapped # we need to link against libclang, so we need the unwrapped
3333 ];
3434
35+ patches = [
36+ (fetchpatch {
37+ url = https://github.com/ispc/ispc/commit/d504641f5af9d5992e7c8f0ed42c1063a39ede5b.patch;
38+ sha256 = "192q3gyvam79469bmlwf0jpfi2y4f8hl2vgcvjngsqhvscwira0s";
39+ })
40+ ];
41+
3542 postPatch = "sed -i -e 's/\\/bin\\///g' -e 's/-lcurses/-lncurses/g' Makefile";
3643
3744 # TODO: this correctly catches errors early, but also some things that are just weird and don't seem to be real
pkgs/development/compilers/lessc/default.nixdeleted−29
@@ -1,29 +0,0 @@
1−{ stdenv, fetchgit, nodejs }:
2−
3−stdenv.mkDerivation rec {
4− name = "lessc-${version}";
5− version = "1.7.5"; # Upgrade to > 2.x breaks twitter-bootstrap
6−
7− src = fetchgit {
8− url = https://github.com/less/less.js.git;
9− rev = "refs/tags/v${version}";
10− sha256 = "1af1xbh1pjpfsx0jp69syji6w9750nigk652yk46jrja3z1scb4s";
11− };
12−
13− phases = [ "installPhase" ];
14−
15− installPhase = ''
16− mkdir -p $out/bin $out/lib
17− cp -r $src/bin/* $out/bin/
18− cp -r $src/lib/* $out/lib/
19− substituteInPlace $out/bin/lessc --replace "/usr/bin/env node" ${nodejs}/bin/node
20− '';
21−
22− meta = with stdenv.lib; {
23− description = "LESS to CSS compiler";
24− homepage = http://lesscss.org/;
25− license = licenses.asl20;
26− platforms = platforms.linux ++ platforms.darwin;
27− maintainers = with maintainers; [ pSub ];
28− };
29−}
pkgs/development/compilers/llvm/5/llvm.nix+4−5
@@ -80,6 +80,10 @@ in stdenv.mkDerivation (rec {
8080 "-DLLVM_BUILD_TESTS=ON"
8181 "-DLLVM_ENABLE_FFI=ON"
8282 "-DLLVM_ENABLE_RTTI=ON"
83+
84+ "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
85+ "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
86+ "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
8387 ]
8488 ++ stdenv.lib.optional enableSharedLibraries
8589 "-DLLVM_LINK_LLVM_DYLIB=ON"
@@ -95,11 +99,6 @@ in stdenv.mkDerivation (rec {
9599 ++ stdenv.lib.optionals (isDarwin) [
96100 "-DLLVM_ENABLE_LIBCXX=ON"
97101 "-DCAN_TARGET_i386=false"
98− ]
99− ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
100− "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
101− "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
102− "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
103102 ];
104103
105104 postBuild = ''
pkgs/development/compilers/llvm/6/clang/default.nix+1−1
@@ -9,7 +9,7 @@ let
99 name = "clang-${version}";
1010
1111 unpackPhase = ''
12− unpackFile ${fetch "cfe" "0cnznvfyl3hgbg8gj58pmwf0pvd2sv5k3ccbivy6q6ggv7c6szg0"}
12+ unpackFile ${fetch "cfe" "0rxn4rh7rrnsqbdgp4gzc8ishbkryhpl1kd3mpnxzpxxhla3y93w"}
1313 mv cfe-${version}* clang
1414 sourceRoot=$PWD/clang
1515 unpackFile ${clang-tools-extra_src}
pkgs/development/compilers/llvm/6/compiler-rt.nix+1−1
@@ -3,7 +3,7 @@ with stdenv.lib;
33stdenv.mkDerivation rec {
44 name = "compiler-rt-${version}";
55 inherit version;
6− src = fetch "compiler-rt" "16m7rvh3w6vq10iwkjrr1nn293djld3xm62l5zasisaprx117k6h";
6+ src = fetch "compiler-rt" "1fcr3jn24yr8lh36nc0c4ikli4744i2q9m1ik67p1jymwwaixkgl";
77
88 nativeBuildInputs = [ cmake python llvm ];
99 buildInputs = stdenv.lib.optional stdenv.hostPlatform.isDarwin libcxxabi;
pkgs/development/compilers/llvm/6/default.nix+2−2
@@ -6,7 +6,7 @@
66}:
77
88let
9− release_version = "6.0.0";
9+ release_version = "6.0.1";
1010 version = release_version; # differentiating these is important for rc's
1111
1212 fetch = name: sha256: fetchurl {
@@ -14,7 +14,7 @@ let
1414 inherit sha256;
1515 };
1616
17− clang-tools-extra_src = fetch "clang-tools-extra" "1ll9v6r29xfdiywbn9iss49ad39ah3fk91wiv0sr6k6k9i544fq5";
17+ clang-tools-extra_src = fetch "clang-tools-extra" "1w8ml7fyn4vyxmy59n2qm4r1k1kgwgwkaldp6m45fdv4g0kkfbhd";
1818
1919 # Add man output without introducing extra dependencies.
2020 overrideManOutput = drv:
pkgs/development/compilers/llvm/6/libc++/default.nix+1−1
@@ -3,7 +3,7 @@
33stdenv.mkDerivation rec {
44 name = "libc++-${version}";
55
6− src = fetch "libcxx" "1n8d0iadkk9fdpplvxkdgrgh2szc6msrx1mpdjpmilz9pn3im4vh";
6+ src = fetch "libcxx" "0rzw4qvxp6qx4l4h9amrq02gp7hbg8lw4m0sy3k60f50234gnm3n";
77
88 postUnpack = ''
99 unpackFile ${libcxxabi.src}
pkgs/development/compilers/llvm/6/libc++abi.nix+1−1
@@ -3,7 +3,7 @@
33stdenv.mkDerivation {
44 name = "libc++abi-${version}";
55
6− src = fetch "libcxxabi" "06v4dnqh6q0r3p5h2jznlgb69lg79126lzb2s0lcw1k38b2xkili";
6+ src = fetch "libcxxabi" "0prqvdj317qrc8nddaq1hh2ag9algkd9wbkj3y4mr5588k12x7r0";
77
88 nativeBuildInputs = [ cmake ];
99 buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
pkgs/development/compilers/llvm/6/lld.nix+1−1
@@ -10,7 +10,7 @@
1010stdenv.mkDerivation {
1111 name = "lld-${version}";
1212
13− src = fetch "lld" "02qfkjkjq0snmf8dw9c255xkh8dg06ndny1x470300pk7j1lm33b";
13+ src = fetch "lld" "04afcfq2h7ysyqxxhyhb7ig4p0vdw7mi63kh8mffl74j0rc781p7";
1414
1515 nativeBuildInputs = [ cmake ];
1616 buildInputs = [ llvm libxml2 ];
pkgs/development/compilers/llvm/6/lldb.nix+1−1
@@ -17,7 +17,7 @@
1717stdenv.mkDerivation {
1818 name = "lldb-${version}";
1919
20− src = fetch "lldb" "0m6l2ks4banfmdh7xy7l77ri85kmzavgfy81gkc4gl6wg8flrxa6";
20+ src = fetch "lldb" "05178zkyh84x32n91md6wm22lkzzrrfwa5cpmgzn0yrg3y2771bb";
2121
2222 postPatch = ''
2323 # Fix up various paths that assume llvm and clang are installed in the same place
pkgs/development/compilers/llvm/6/llvm.nix+8−6
@@ -19,7 +19,7 @@
1919}:
2020
2121let
22− src = fetch "llvm" "0224xvfg6h40y5lrbnb9qaq3grmdc5rg00xq03s1wxjfbf8krx8z";
22+ src = fetch "llvm" "1qpls3vk85lydi5b4axl0809fv932qgsqgdgrk098567z4jc7mmn";
2323
2424 # Used when creating a version-suffixed symlink of libLLVM.dylib
2525 shortVersion = with stdenv.lib;
@@ -76,6 +76,12 @@ in stdenv.mkDerivation (rec {
7676 "-DLLVM_BUILD_TESTS=ON"
7777 "-DLLVM_ENABLE_FFI=ON"
7878 "-DLLVM_ENABLE_RTTI=ON"
79+
80+ "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
81+ "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
82+ "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
83+
84+ "-DLLVM_ENABLE_DUMP=ON"
7985 ]
8086 ++ stdenv.lib.optional enableSharedLibraries
8187 "-DLLVM_LINK_LLVM_DYLIB=ON"
@@ -92,11 +98,7 @@ in stdenv.mkDerivation (rec {
9298 "-DLLVM_ENABLE_LIBCXX=ON"
9399 "-DCAN_TARGET_i386=false"
94100 ]
95− ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
96− "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
97− "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
98− "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
99− ] ++ stdenv.lib.optional enableWasm
101+ ++ stdenv.lib.optional enableWasm
100102 "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly"
101103 ;
102104
pkgs/development/compilers/llvm/6/openmp.nix+1−1
@@ -10,7 +10,7 @@
1010stdenv.mkDerivation {
1111 name = "openmp-${version}";
1212
13− src = fetch "openmp" "1z1qghx6drdvnlp406q1cp3mgikxxmwymcwzaxbv18vxbw6ha3kw";
13+ src = fetch "openmp" "0nhwfba9c351r16zgyjyfwdayr98nairky3c2f0b2lc360mwmbv6";
1414
1515 nativeBuildInputs = [ cmake perl ];
1616 buildInputs = [ llvm ];
pkgs/development/compilers/llvm/6/sanitizers-nongnu.patch+78−42
@@ -1,6 +1,6 @@
1−From 8c74f8274369f527f2ada3772f4a0b406cb481ec Mon Sep 17 00:00:00 2001
2−From: "Jory A. Pratt" <anarchy@gentoo.org>
3−Date: Sat, 9 Sep 2017 08:31:15 -0500
1+From 7b4b3333a2718628b1d510ec1d8438ad67308299 Mon Sep 17 00:00:00 2001
2+From: Will Dietz <w@wdtz.org>
3+Date: Fri, 29 Jun 2018 09:48:59 -0500
44Subject: [PATCH] Ported to 6.0, taken from gentoo-musl project.
55
66------
@@ -11,18 +11,20 @@ Signed-off-by: Jory A. Pratt <anarchy@gentoo.org>
1111
1212Taken from gentoo-musl project, with a few additional minor fixes.
1313---
14− lib/asan/asan_linux.cc | 4 +--
15− lib/interception/interception_linux.cc | 2 +-
16− lib/interception/interception_linux.h | 3 +-
17− lib/msan/msan_linux.cc | 2 +-
18− .../sanitizer_common_interceptors_ioctl.inc | 4 +--
19− lib/sanitizer_common/sanitizer_common_syscalls.inc | 2 +-
20− lib/sanitizer_common/sanitizer_linux_libcdep.cc | 10 +++---
21− lib/sanitizer_common/sanitizer_platform.h | 6 ++++
22− .../sanitizer_platform_interceptors.h | 4 +--
23− .../sanitizer_platform_limits_posix.cc | 40 +++++++++++++---------
24− lib/tsan/rtl/tsan_platform_linux.cc | 2 +-
25− 11 files changed, 46 insertions(+), 33 deletions(-)
14+ lib/asan/asan_linux.cc | 4 +-
15+ lib/interception/interception_linux.cc | 2 +-
16+ lib/interception/interception_linux.h | 3 +-
17+ lib/msan/msan_linux.cc | 2 +-
18+ lib/sanitizer_common/sanitizer_allocator.cc | 2 +-
19+ .../sanitizer_common_interceptors_ioctl.inc | 4 +-
20+ .../sanitizer_common_syscalls.inc | 2 +-
21+ lib/sanitizer_common/sanitizer_linux.cc | 8 +++-
22+ .../sanitizer_linux_libcdep.cc | 10 ++---
23+ lib/sanitizer_common/sanitizer_platform.h | 6 +++
24+ .../sanitizer_platform_interceptors.h | 4 +-
25+ .../sanitizer_platform_limits_posix.cc | 37 +++++++++++--------
26+ lib/tsan/rtl/tsan_platform_linux.cc | 2 +-
27+ 13 files changed, 51 insertions(+), 35 deletions(-)
2628
2729diff --git a/lib/asan/asan_linux.cc b/lib/asan/asan_linux.cc
2830index 625f32d40..73cf77aca 100644
@@ -86,6 +88,19 @@ index 4e6321fcb..4d50feb82 100644
8688
8789 #include "msan.h"
8890 #include "msan_thread.h"
91+diff --git a/lib/sanitizer_common/sanitizer_allocator.cc b/lib/sanitizer_common/sanitizer_allocator.cc
92+index fc4f7a75a..76cf4f769 100644
93+--- a/lib/sanitizer_common/sanitizer_allocator.cc
94++++ b/lib/sanitizer_common/sanitizer_allocator.cc
95+@@ -23,7 +23,7 @@ namespace __sanitizer {
96+
97+ // ThreadSanitizer for Go uses libc malloc/free.
98+ #if SANITIZER_GO || defined(SANITIZER_USE_MALLOC)
99+-# if SANITIZER_LINUX && !SANITIZER_ANDROID
100++# if SANITIZER_LINUX && !SANITIZER_ANDROID && !SANITIZER_NONGNU
101+ extern "C" void *__libc_malloc(uptr size);
102+ # if !SANITIZER_GO
103+ extern "C" void *__libc_memalign(uptr alignment, uptr size);
89104diff --git a/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc b/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
90105index 24e7548a5..20259b1d6 100644
91106--- a/lib/sanitizer_common/sanitizer_common_interceptors_ioctl.inc
@@ -121,6 +136,37 @@ index 469c8eb7e..24f87867d 100644
121136 PRE_SYSCALL(prlimit64)(long pid, long resource, const void *new_rlim,
122137 void *old_rlim) {
123138 if (new_rlim) PRE_READ(new_rlim, struct_rlimit64_sz);
139+diff --git a/lib/sanitizer_common/sanitizer_linux.cc b/lib/sanitizer_common/sanitizer_linux.cc
140+index 6c83e8db4..542c4fe64 100644
141+--- a/lib/sanitizer_common/sanitizer_linux.cc
142++++ b/lib/sanitizer_common/sanitizer_linux.cc
143+@@ -522,13 +522,13 @@ const char *GetEnv(const char *name) {
144+ #endif
145+ }
146+
147+-#if !SANITIZER_FREEBSD && !SANITIZER_NETBSD
148++#if !SANITIZER_FREEBSD && !SANITIZER_NETBSD && !SANITIZER_NONGNU
149+ extern "C" {
150+ SANITIZER_WEAK_ATTRIBUTE extern void *__libc_stack_end;
151+ }
152+ #endif
153+
154+-#if !SANITIZER_GO && !SANITIZER_FREEBSD && !SANITIZER_NETBSD
155++#if (!SANITIZER_GO || SANITIZER_NONGNU) && !SANITIZER_FREEBSD && !SANITIZER_NETBSD
156+ static void ReadNullSepFileToArray(const char *path, char ***arr,
157+ int arr_size) {
158+ char *buff;
159+@@ -569,6 +569,10 @@ static void GetArgsAndEnv(char ***argv, char ***envp) {
160+ #elif SANITIZER_NETBSD
161+ *argv = __ps_strings->ps_argvstr;
162+ *argv = __ps_strings->ps_envstr;
163++#elif SANITIZER_NONGNU
164++ static const int kMaxArgv = 2000, kMaxEnvp = 2000;
165++ ReadNullSepFileToArray("/proc/self/cmdline", argv, kMaxArgv);
166++ ReadNullSepFileToArray("/proc/self/environ", envp, kMaxEnvp);
167+ #else
168+ #if !SANITIZER_GO
169+ if (&__libc_stack_end) {
124170diff --git a/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/lib/sanitizer_common/sanitizer_linux_libcdep.cc
125171index 56fdfc870..a932d5db1 100644
126172--- a/lib/sanitizer_common/sanitizer_linux_libcdep.cc
@@ -210,7 +256,7 @@ index b99ac4480..628d226a1 100644
210256 #define SANITIZER_INTERCEPT_RANDOM_R SI_LINUX_NOT_ANDROID
211257 #define SANITIZER_INTERCEPT_PTHREAD_ATTR_GET SI_POSIX
212258diff --git a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
213−index f12e8206a..8880197b0 100644
259+index feb7bad6f..4e89ab2a6 100644
214260--- a/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
215261+++ b/lib/sanitizer_common/sanitizer_platform_limits_posix.cc
216262@@ -14,6 +14,9 @@
@@ -243,26 +289,16 @@ index f12e8206a..8880197b0 100644
243289 #if HAVE_RPC_XDR_H
244290 # include <rpc/xdr.h>
245291 #elif HAVE_TIRPC_RPC_XDR_H
246−@@ -159,7 +164,8 @@ typedef struct user_fpregs elf_fpregset_t;
247− # include <sys/procfs.h>
248− #endif
249− #include <sys/user.h>
250−-#include <sys/ustat.h>
251−+// #include <sys/ustat.h>
252−+#include <sys/statfs.h>
253− #include <linux/cyclades.h>
254− #include <linux/if_eql.h>
255− #include <linux/if_plip.h>
256−@@ -252,7 +258,7 @@ namespace __sanitizer {
292+@@ -251,7 +256,7 @@ namespace __sanitizer {
257293 unsigned struct_itimerspec_sz = sizeof(struct itimerspec);
258294 #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
259295
260296-#if SANITIZER_LINUX && !SANITIZER_ANDROID
261297+#if SANITIZER_LINUX && !SANITIZER_ANDROID && !SANITIZER_NONGNU
262− unsigned struct_ustat_sz = sizeof(struct ustat);
263− unsigned struct_rlimit64_sz = sizeof(struct rlimit64);
264− unsigned struct_statvfs64_sz = sizeof(struct statvfs64);
265−@@ -311,7 +317,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(ElfW(Phdr));
298+ // Use pre-computed size of struct ustat to avoid <sys/ustat.h> which
299+ // has been removed from glibc 2.28.
300+ #if defined(__aarch64__) || defined(__s390x__) || defined (__mips64) \
301+@@ -322,7 +327,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(ElfW(Phdr));
266302 unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
267303 #endif
268304
@@ -271,7 +307,7 @@ index f12e8206a..8880197b0 100644
271307 int glob_nomatch = GLOB_NOMATCH;
272308 int glob_altdirfunc = GLOB_ALTDIRFUNC;
273309 #endif
274−@@ -405,7 +411,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
310+@@ -416,7 +421,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
275311 unsigned struct_termios_sz = sizeof(struct termios);
276312 unsigned struct_winsize_sz = sizeof(struct winsize);
277313
@@ -280,7 +316,7 @@ index f12e8206a..8880197b0 100644
280316 unsigned struct_arpreq_sz = sizeof(struct arpreq);
281317 unsigned struct_cdrom_msf_sz = sizeof(struct cdrom_msf);
282318 unsigned struct_cdrom_multisession_sz = sizeof(struct cdrom_multisession);
283−@@ -455,7 +461,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
319+@@ -466,7 +471,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
284320 unsigned struct_vt_mode_sz = sizeof(struct vt_mode);
285321 #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
286322
@@ -289,7 +325,7 @@ index f12e8206a..8880197b0 100644
289325 unsigned struct_ax25_parms_struct_sz = sizeof(struct ax25_parms_struct);
290326 unsigned struct_cyclades_monitor_sz = sizeof(struct cyclades_monitor);
291327 #if EV_VERSION > (0x010000)
292−@@ -823,7 +829,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
328+@@ -834,7 +839,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
293329 unsigned IOCTL_VT_WAITACTIVE = VT_WAITACTIVE;
294330 #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
295331
@@ -298,7 +334,7 @@ index f12e8206a..8880197b0 100644
298334 unsigned IOCTL_CYGETDEFTHRESH = CYGETDEFTHRESH;
299335 unsigned IOCTL_CYGETDEFTIMEOUT = CYGETDEFTIMEOUT;
300336 unsigned IOCTL_CYGETMON = CYGETMON;
301−@@ -978,7 +984,7 @@ CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phdr);
337+@@ -989,7 +994,7 @@ CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phdr);
302338 CHECK_SIZE_AND_OFFSET(dl_phdr_info, dlpi_phnum);
303339 #endif // SANITIZER_LINUX || SANITIZER_FREEBSD
304340
@@ -307,7 +343,7 @@ index f12e8206a..8880197b0 100644
307343 CHECK_TYPE_SIZE(glob_t);
308344 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathc);
309345 CHECK_SIZE_AND_OFFSET(glob_t, gl_pathv);
310−@@ -1012,6 +1018,7 @@ CHECK_TYPE_SIZE(iovec);
346+@@ -1023,6 +1028,7 @@ CHECK_TYPE_SIZE(iovec);
311347 CHECK_SIZE_AND_OFFSET(iovec, iov_base);
312348 CHECK_SIZE_AND_OFFSET(iovec, iov_len);
313349
@@ -315,7 +351,7 @@ index f12e8206a..8880197b0 100644
315351 CHECK_TYPE_SIZE(msghdr);
316352 CHECK_SIZE_AND_OFFSET(msghdr, msg_name);
317353 CHECK_SIZE_AND_OFFSET(msghdr, msg_namelen);
318−@@ -1025,6 +1032,7 @@ CHECK_TYPE_SIZE(cmsghdr);
354+@@ -1036,6 +1042,7 @@ CHECK_TYPE_SIZE(cmsghdr);
319355 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_len);
320356 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_level);
321357 CHECK_SIZE_AND_OFFSET(cmsghdr, cmsg_type);
@@ -323,7 +359,7 @@ index f12e8206a..8880197b0 100644
323359
324360 COMPILER_CHECK(sizeof(__sanitizer_dirent) <= sizeof(dirent));
325361 CHECK_SIZE_AND_OFFSET(dirent, d_ino);
326−@@ -1127,7 +1135,7 @@ CHECK_SIZE_AND_OFFSET(mntent, mnt_passno);
362+@@ -1138,7 +1145,7 @@ CHECK_SIZE_AND_OFFSET(mntent, mnt_passno);
327363
328364 CHECK_TYPE_SIZE(ether_addr);
329365
@@ -332,7 +368,7 @@ index f12e8206a..8880197b0 100644
332368 CHECK_TYPE_SIZE(ipc_perm);
333369 # if SANITIZER_FREEBSD
334370 CHECK_SIZE_AND_OFFSET(ipc_perm, key);
335−@@ -1188,7 +1196,7 @@ CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
371+@@ -1199,7 +1206,7 @@ CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_dstaddr);
336372 CHECK_SIZE_AND_OFFSET(ifaddrs, ifa_data);
337373 #endif
338374
@@ -341,7 +377,7 @@ index f12e8206a..8880197b0 100644
341377 COMPILER_CHECK(sizeof(__sanitizer_mallinfo) == sizeof(struct mallinfo));
342378 #endif
343379
344−@@ -1238,7 +1246,7 @@ COMPILER_CHECK(__sanitizer_XDR_DECODE == XDR_DECODE);
380+@@ -1249,7 +1256,7 @@ COMPILER_CHECK(__sanitizer_XDR_DECODE == XDR_DECODE);
345381 COMPILER_CHECK(__sanitizer_XDR_FREE == XDR_FREE);
346382 #endif
347383
@@ -350,7 +386,7 @@ index f12e8206a..8880197b0 100644
350386 COMPILER_CHECK(sizeof(__sanitizer_FILE) <= sizeof(FILE));
351387 CHECK_SIZE_AND_OFFSET(FILE, _flags);
352388 CHECK_SIZE_AND_OFFSET(FILE, _IO_read_ptr);
353−@@ -1257,7 +1265,7 @@ CHECK_SIZE_AND_OFFSET(FILE, _chain);
389+@@ -1268,7 +1275,7 @@ CHECK_SIZE_AND_OFFSET(FILE, _chain);
354390 CHECK_SIZE_AND_OFFSET(FILE, _fileno);
355391 #endif
356392
@@ -373,5 +409,5 @@ index e14d5f575..389a3bc88 100644
373409 struct __res_state *statp = (struct __res_state*)state;
374410 for (int i = 0; i < MAXNS && cnt < nfd; i++) {
375411--
376−2.16.2
412+2.18.0
377413
pkgs/development/interpreters/perl/default.nix+6−6
@@ -23,6 +23,8 @@ let
2323 libcLib = lib.getLib libc;
2424 crossCompiling = stdenv.buildPlatform != stdenv.hostPlatform;
2525 common = { version, sha256 }: stdenv.mkDerivation (rec {
26+ inherit version;
27+
2628 name = "perl-${version}";
2729
2830 src = fetchurlBoot {
@@ -179,8 +181,6 @@ let
179181
180182 configurePlatforms = [ "build" "host" "target" ];
181183
182− inherit version;
183−
184184 # TODO merge setup hooks
185185 setupHook = ./setup-hook-cross.sh;
186186 });
@@ -191,13 +191,13 @@ in rec {
191191 };
192192
193193 perl524 = common {
194− version = "5.24.3";
195− sha256 = "1m2px85kq2fyp2d4rx3bw9kg3car67qfqwrs5vlv96dx0x8rl06b";
194+ version = "5.24.4";
195+ sha256 = "0w0r6v5k5hw5q1k3p4c7krcxidkj2qzsj5dlrlrxhm01n7fksbxz";
196196 };
197197
198198 perl526 = common {
199− version = "5.26.1";
200− sha256 = "1p81wwvr5jb81m41d07kfywk5gvbk0axdrnvhc2aghcdbr4alqz7";
199+ version = "5.26.2";
200+ sha256 = "03gpnxx1g6hvlh0v4aqx00580h787sfywp1vlvw64q2xcbm9qbsp";
201201 };
202202
203203 perl528 = common {
pkgs/development/interpreters/python/cpython/3.6/default.nix+4−5
@@ -27,7 +27,7 @@ with stdenv.lib;
2727
2828let
2929 majorVersion = "3.6";
30− minorVersion = "5";
30+ minorVersion = "6";
3131 minorVersionSuffix = "";
3232 pythonVersion = majorVersion;
3333 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}";
@@ -53,7 +53,7 @@ in stdenv.mkDerivation {
5353
5454 src = fetchurl {
5555 url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz";
56− sha256 = "19l7inxm056jjw33zz97z0m02hsi7jnnx5kyb76abj5ml4xhad7l";
56+ sha256 = "0vz1wqg50zq6g15givdx1s2rq5752y5g2f1978bs6wvf8mfw36yp";
5757 };
5858
5959 NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
@@ -85,9 +85,8 @@ in stdenv.mkDerivation {
8585 # only works for GCC and Apple Clang. This makes distutils to call C++
8686 # compiler when needed.
8787 (fetchpatch {
88− url = "https://bugs.python.org/file47046/python-3.x-distutils-C++.patch";
89− sha256 = "0dgdn9k2kmw4wh90vdnjcrnn97ylxgx7mbn9l87fwz6j501jqvk8";
90− extraPrefix = "";
88+ url = "https://bugs.python.org/file47669/python-3.8-distutils-C++.patch";
89+ sha256 = "0s801d7ww9yrk6ys053jvdhl0wicbznx08idy36f1nrrxsghb3ii";
9190 })
9291 ];
9392
pkgs/development/interpreters/python/cpython/3.7/default.nix+12−2
@@ -39,6 +39,8 @@ let
3939 ++ optionals x11Support [ tcl tk libX11 xproto ]
4040 ++ optionals stdenv.isDarwin [ CF configd ];
4141
42+ hasDistutilsCxxPatch = !(stdenv.cc.isGNU or false);
43+
4244in stdenv.mkDerivation {
4345 name = "python3-${version}";
4446 pythonVersion = majorVersion;
@@ -63,12 +65,20 @@ in stdenv.mkDerivation {
6365
6466 patches = [
6567 ./no-ldconfig.patch
66−
6768 # Fix darwin build https://bugs.python.org/issue34027
6869 (fetchpatch {
6970 url = https://bugs.python.org/file47666/darwin-libutil.patch;
7071 sha256 = "0242gihnw3wfskl4fydp2xanpl8k5q7fj4dp7dbbqf46a4iwdzpa";
7172 })
73+ ] ++ optionals hasDistutilsCxxPatch [
74+ # Fix for http://bugs.python.org/issue1222585
75+ # Upstream distutils is calling C compiler to compile C++ code, which
76+ # only works for GCC and Apple Clang. This makes distutils to call C++
77+ # compiler when needed.
78+ (fetchpatch {
79+ url = "https://bugs.python.org/file47669/python-3.8-distutils-C++.patch";
80+ sha256 = "0s801d7ww9yrk6ys053jvdhl0wicbznx08idy36f1nrrxsghb3ii";
81+ })
7282 ];
7383
7484 postPatch = ''
@@ -153,7 +163,7 @@ in stdenv.mkDerivation {
153163 passthru = let
154164 pythonPackages = callPackage ../../../../../top-level/python-packages.nix {python=self; overrides=packageOverrides;};
155165 in rec {
156− inherit libPrefix sitePackages x11Support;
166+ inherit libPrefix sitePackages x11Support hasDistutilsCxxPatch;
157167 executable = "${libPrefix}m";
158168 buildEnv = callPackage ../../wrapper.nix { python = self; inherit (pythonPackages) requiredPythonModules; };
159169 withPackages = import ../../with-packages.nix { inherit buildEnv pythonPackages;};
pkgs/development/libraries/gdbm/default.nix+2−2
@@ -1,11 +1,11 @@
11{ stdenv, lib, buildPlatform, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "gdbm-1.14.1";
4+ name = "gdbm-1.15";
55
66 src = fetchurl {
77 url = "mirror://gnu/gdbm/${name}.tar.gz";
8− sha256 = "0pxwz3jlwvglq2mrbxvrjgr8pa0aj73p3v9sxmdlj570zw0gzknd";
8+ sha256 = "03nwsbixdp3nx3fzn3gjy0n7rcppmkkxb2nxbmd8mvb7gwhf7zgr";
99 };
1010
1111 doCheck = true; # not cross;
pkgs/development/libraries/libical/default.nix+30−6
@@ -1,29 +1,53 @@
1−{ stdenv, fetchFromGitHub, perl, cmake }:
1+{ stdenv, fetchFromGitHub, perl, pkgconfig, cmake, ninja, vala, gobjectIntrospection
2+, python3, tzdata, gtk-doc, docbook_xsl, docbook_xml_dtd_43, glib, libxml2, icu }:
23
34stdenv.mkDerivation rec {
45 name = "libical-${version}";
5− version = "2.0.0";
6+ version = "3.0.3";
7+
8+ outputs = [ "out" "dev" "devdoc" ];
69
710 src = fetchFromGitHub {
811 owner = "libical";
912 repo = "libical";
1013 rev = "v${version}";
11− sha256 = "0xsvqy1hzmwxn783wrb2k8p751544pzv39v9ynr9pj4yzkwjzsvb";
14+ sha256 = "0dhlfn6n136di4fbqd74gdaibyh5zz1vac5x8ii3bjc2d5h7hw8h";
1215 };
1316
14− nativeBuildInputs = [ perl cmake ];
17+ nativeBuildInputs = [
18+ perl pkgconfig cmake ninja vala gobjectIntrospection
19+ (python3.withPackages (pkgs: with pkgs; [ pygobject3 ])) # running libical-glib tests
20+ gtk-doc docbook_xsl docbook_xml_dtd_43 # docs
21+ ];
22+ buildInputs = [ glib libxml2 icu ];
23+
24+ cmakeFlags = [
25+ "-DGOBJECT_INTROSPECTION=True"
26+ "-DICAL_GLIB_VAPI=True"
27+ ];
1528
1629 patches = [
1730 # TODO: upstream this patch
31+ # https://github.com/libical/libical/issues/350
1832 ./respect-env-tzdir.patch
1933 ];
2034
21− doCheck = false; # fails all the tests (ctest)
35+ # Using install check so we do not have to manually set
36+ # LD_LIBRARY_PATH and GI_TYPELIB_PATH variables
37+ doInstallCheck = true;
38+ installCheckPhase = ''
39+ runHook preInstallCheck
40+
41+ export TZDIR=${tzdata}/share/zoneinfo
42+ ctest --output-on-failure
43+
44+ runHook postInstallCheck
45+ '';
2246
2347 meta = with stdenv.lib; {
2448 homepage = https://github.com/libical/libical;
2549 description = "An Open Source implementation of the iCalendar protocols";
26− license = licenses.mpl10;
50+ license = licenses.mpl20;
2751 platforms = platforms.unix;
2852 maintainers = with maintainers; [ wkennington ];
2953 };
pkgs/development/libraries/libical/respect-env-tzdir.patch+5−5
@@ -1,9 +1,9 @@
11--- a/src/libical/icaltz-util.c
22+++ b/src/libical/icaltz-util.c
3−@@ -96,9 +96,9 @@ typedef struct
4− static char *zdir = NULL;
3+@@ -94,9 +94,9 @@
4+ static const char *zdir = NULL;
55
6− static char *search_paths[] = {
6+ static const char *search_paths[] = {
77+ "/etc/zoneinfo",
88 "/usr/share/zoneinfo",
99 "/usr/lib/zoneinfo",
@@ -11,13 +11,13 @@
1111 "/usr/share/lib/zoneinfo"
1212 };
1313
14−@@ -179,6 +179,15 @@ static void set_zonedir(void)
14+@@ -178,6 +178,15 @@
1515 const char *fname = ZONES_TAB_SYSTEM_FILENAME;
1616 size_t i, num_search_paths;
1717
1818+ const char *env_tzdir = getenv ("TZDIR");
1919+ if (env_tzdir) {
20−+ snprintf(file_path, MAXPATHLEN, "%s/%s", env_tzdir, fname);
20++ sprintf (file_path, "%s/%s", env_tzdir, fname);
2121+ if (!access (file_path, F_OK|R_OK)) {
2222+ zdir = env_tzdir;
2323+ return;
pkgs/development/libraries/libiconv/default.nix+4−3
@@ -29,9 +29,10 @@ stdenv.mkDerivation rec {
2929 sed -i -e '/preload/d' Makefile.in
3030 '';
3131
32− configureFlags = lib.optional stdenv.isFreeBSD "--with-pic"
33− ++ lib.optional enableStatic "--enable-static"
34− ++ lib.optional (!enableShared) "--disable-shared";
32+ configureFlags = [
33+ (lib.enableFeature enableStatic "static")
34+ (lib.enableFeature enableShared "shared")
35+ ] ++ lib.optional stdenv.isFreeBSD "--with-pic";
3536
3637 meta = {
3738 description = "An iconv(3) implementation";
pkgs/development/libraries/libuv/default.nix+27−11
@@ -1,17 +1,23 @@
1−{ stdenv, lib, fetchFromGitHub, autoconf, automake, libtool, pkgconfig
2−, ApplicationServices, CoreServices }:
1+{ stdenv, lib, fetchpatch, fetchFromGitHub, autoconf, automake, libtool, pkgconfig }:
32
43stdenv.mkDerivation rec {
5− version = "1.20.3";
4+ version = "1.21.0";
65 name = "libuv-${version}";
76
87 src = fetchFromGitHub {
98 owner = "libuv";
109 repo = "libuv";
1110 rev = "v${version}";
12− sha256 = "1a8a679wni560z7x6w5i431vh2g0f34cznflcn52klx1vwcggrg7";
11+ sha256 = "1jjg34ppnlrnb634q9mla7whl7rm9xmjgnzckrznqcycwzir074b";
1312 };
1413
14+ patches = [
15+ (fetchpatch {
16+ url = "https://github.com/libuv/libuv/pull/1909.patch";
17+ sha256 = "1s2692h4dvqnzwwicrkpj0zph1i2bhv39w31z5vh7ssgvykaradj";
18+ })
19+ ];
20+
1521 postPatch = let
1622 toDisable = [
1723 "getnameinfo_basic" "udp_send_hang_loop" # probably network-dependent
@@ -19,15 +25,28 @@ stdenv.mkDerivation rec {
1925 "getaddrinfo_fail" "getaddrinfo_fail_sync"
2026 "threadpool_multiple_event_loops" # times out on slow machines
2127 ]
22− # sometimes: timeout (no output), failed uv_listen
23− ++ stdenv.lib.optionals stdenv.isDarwin [ "process_title" "emfile" ];
28+ # Sometimes: timeout (no output), failed uv_listen. Someone
29+ # should report these failures to libuv team. There tests should
30+ # be much more robust.
31+ ++ stdenv.lib.optionals stdenv.isDarwin [
32+ "process_title" "emfile" "poll_duplex" "poll_unidirectional"
33+ "ipc_listen_before_write" "ipc_listen_after_write" "ipc_tcp_connection"
34+ "tcp_alloc_cb_fail" "tcp_ping_pong" "tcp_ref3" "tcp_ref4"
35+ "tcp_bind6_error_inval" "tcp_bind6_error_addrinuse" "tcp_read_stop"
36+ "tcp_unexpected_read" "tcp_write_to_half_open_connection"
37+ "tcp_oob" "tcp_close_accept" "tcp_create_early_accept"
38+ "tcp_create_early" "tcp_close" "tcp_bind_error_inval"
39+ "tcp_bind_error_addrinuse" "tcp_shutdown_after_write"
40+ "tcp_open" "tcp_write_queue_order" "tcp_try_write" "tcp_writealot"
41+ "multiple_listen" "delayed_accept"
42+ "shutdown_close_tcp" "shutdown_eof" "shutdown_twice" "callback_stack"
43+ ];
2444 tdRegexp = lib.concatStringsSep "\\|" toDisable;
2545 in lib.optionalString doCheck ''
2646 sed '/${tdRegexp}/d' -i test/test-list.h
2747 '';
2848
2949 nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
30− buildInputs = stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ];
3150
3251 preConfigure = ''
3352 LIBTOOLIZE=libtoolize ./autogen.sh
@@ -35,10 +54,7 @@ stdenv.mkDerivation rec {
3554
3655 enableParallelBuilding = true;
3756
38− # These should be turned back on, but see https://github.com/NixOS/nixpkgs/issues/23651
39− # For now the tests are just breaking large swaths of the nixpkgs binary cache for Darwin,
40− # and I'd rather have everything else work at all than have stronger assurance here.
41− doCheck = !stdenv.isDarwin;
57+ doCheck = true;
4258
4359 meta = with lib; {
4460 description = "A multi-platform support library with a focus on asynchronous I/O";
pkgs/development/libraries/mesa/default.nix+8−3
@@ -67,7 +67,7 @@ let
6767in
6868
6969let
70− version = "18.0.3";
70+ version = "18.1.4";
7171 branch = head (splitString "." version);
7272in
7373
@@ -81,7 +81,7 @@ let self = stdenv.mkDerivation {
8181 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
8282 "https://mesa.freedesktop.org/archive/mesa-${version}.tar.xz"
8383 ];
84− sha256 = "0c4yskqwmh5k0wavjrkfcldafvnpcx8gjcx584bscxks69krd789";
84+ sha256 = "12zm9hc3v4wnzhqyrvf2kfnz55idzdn82hs3ry940l45bn5lhq9h";
8585 };
8686
8787 prePatch = "patchShebangs .";
@@ -154,7 +154,7 @@ let self = stdenv.mkDerivation {
154154 libX11 libXext libxcb libXt libXfixes libxshmfence
155155 libffi wayland wayland-protocols libvdpau libelf libXvMC
156156 libomxil-bellagio libva-minimal libpthreadstubs openssl/*or another sha1 provider*/
157− valgrind-light python2
157+ valgrind-light python2 python2.pkgs.Mako
158158 ];
159159
160160 enableParallelBuilding = true;
@@ -205,6 +205,11 @@ let self = stdenv.mkDerivation {
205205 for js in $drivers/share/glvnd/egl_vendor.d/*.json; do
206206 substituteInPlace "$js" --replace '"libEGL_' '"'"$drivers/lib/libEGL_"
207207 done
208+
209+ # Update search path used by pkg-config
210+ for pc in $dev/lib/pkgconfig/{d3d,dri,xatracker}.pc; do
211+ substituteInPlace "$pc" --replace $out $drivers
212+ done
208213 '' + optionalString (vulkanDrivers != []) ''
209214 # Update search path used by Vulkan (it's pointing to $out but
210215 # drivers are in $drivers)
pkgs/development/libraries/pcre2/default.nix+2−28
@@ -2,10 +2,10 @@
22
33stdenv.mkDerivation rec {
44 name = "pcre2-${version}";
5− version = "10.23";
5+ version = "10.31";
66 src = fetchurl {
77 url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/${name}.tar.bz2";
8− sha256 = "0vn5g0mkkp99mmzpissa06hpyj6pk9s4mlwbjqrjvw3ihy8rpiyz";
8+ sha256 = "1b389pzw91k1hzydsh4smdsxyppwz4pv74m3nrvy8rda0j3m6zg0";
99 };
1010
1111 configureFlags = [
@@ -14,34 +14,8 @@ stdenv.mkDerivation rec {
1414 "--enable-jit"
1515 ];
1616
17− patches = [
18− (fetchpatch {
19− name = "CVE-2017-7186-part1.patch";
20− url = "https://vcs.pcre.org/pcre2/code/trunk/src/pcre2_ucd.c?view=patch&r1=316&r2=670&sortby=date";
21− sha256 = "10yzglvbn7h06hg7zffr5zh378i5jihvx7d5gggkynws79vgwvfr";
22− stripLen = 2;
23− extraPrefix = "";
24− })
25− (fetchpatch {
26− name = "CVE-2017-7186-part2.patch";
27− url = "https://vcs.pcre.org/pcre2/code/trunk/src/pcre2_internal.h?view=patch&r1=600&r2=670&sortby=date";
28− sha256 = "1bggk7vd5hg0bjg96lj4h1lacmr6grq68dm6iz1n7vg3zf7virjn";
29− stripLen = 2;
30− extraPrefix = "";
31− })
32− (fetchpatch {
33− name = "CVE-2017-8786.patch";
34− url = "https://vcs.pcre.org/pcre2/code/trunk/src/pcre2test.c?r1=692&r2=697&view=patch";
35− sha256 = "1c629nzrk4il2rfclwyc1a373q58m4q9ys9wr91zhl4skfk7x19b";
36− stripLen = 2;
37− extraPrefix = "";
38− })
39− ];
40−
4117 outputs = [ "bin" "dev" "out" "doc" "man" "devdoc" ];
4218
43− doCheck = false; # fails 1 of 3 tests
44−
4519 postFixup = ''
4620 moveToOutput bin/pcre2-config "$dev"
4721 '';
pkgs/development/libraries/volume-key/default.nix+6−1
@@ -13,7 +13,7 @@ in stdenv.mkDerivation rec {
1313 sha256 = "16qdi5s6ycsh0iyc362gly7ggrwamky8i0zgbd4ajp3ymk9vqdva";
1414 };
1515
16− outputs = [ "out" "man" "dev" ];
16+ outputs = [ "out" "man" "dev" "py" ];
1717
1818 nativeBuildInputs = [ autoreconfHook pkgconfig gettext python2 swig ];
1919
@@ -28,6 +28,11 @@ in stdenv.mkDerivation rec {
2828 })
2929 ];
3030
31+ makeFlags = [
32+ "pyexecdir=$(py)/${python2.sitePackages}"
33+ "pythondir=$(py)/${python2.sitePackages}"
34+ ];
35+
3136 meta = with stdenv.lib; {
3237 description = "A library for manipulating storage volume encryption keys and storing them separately from volumes to handle forgotten passphrases, and the associated command-line tool";
3338 homepage = https://pagure.io/volume_key/;
pkgs/development/python-modules/aiodns/default.nix+4−4
@@ -1,5 +1,5 @@
11{ stdenv, buildPythonPackage, fetchPypi
2−, isPy33, isPy26, isPy27, isPyPy, python, pycares, asyncio, trollius }:
2+, isPy33, isPy27, isPyPy, python, pycares, asyncio, trollius }:
33
44buildPythonPackage rec {
55 pname = "aiodns";
@@ -10,9 +10,9 @@ buildPythonPackage rec {
1010 sha256 = "d8677adc679ce8d0ef706c14d9c3d2f27a0e0cc11d59730cdbaf218ad52dd9ea";
1111 };
1212
13− propagatedBuildInputs = with stdenv.lib; [ pycares ]
14− ++ optional isPy33 asyncio
15− ++ optional (isPy26 || isPy27 || isPyPy) trollius;
13+ propagatedBuildInputs = with stdenv.lib; [ pycares ]
14+ ++ optional isPy33 asyncio
15+ ++ optional (isPy27 || isPyPy) trollius;
1616
1717 checkPhase = ''
1818 ${python.interpreter} tests.py
pkgs/development/python-modules/future/default.nix−4
@@ -1,9 +1,6 @@
11{ lib
22, buildPythonPackage
33, fetchPypi
4−, isPy26
5−, importlib
6−, argparse
74}:
85
96buildPythonPackage rec {
@@ -15,7 +12,6 @@ buildPythonPackage rec {
1512 sha256 = "1nzy1k4m9966sikp0qka7lirh8sqrsyainyf8rk97db7nwdfv773";
1613 };
1714
18− propagatedBuildInputs = lib.optionals isPy26 [ importlib argparse ];
1915 doCheck = false;
2016
2117 meta = {
pkgs/development/python-modules/grpcio/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, buildPythonPackage, fetchPypi, lib
2−, six, protobuf, enum34, futures, isPy26, isPy27, isPy34 }:
2+, six, protobuf, enum34, futures, isPy27, isPy34 }:
33
44buildPythonPackage rec {
55 pname = "grpcio";
@@ -11,8 +11,8 @@ buildPythonPackage rec {
1111 };
1212
1313 propagatedBuildInputs = [ six protobuf ]
14− ++ lib.optionals (isPy26 || isPy27 || isPy34) [ enum34 ]
15− ++ lib.optionals (isPy26 || isPy27) [ futures ];
14+ ++ lib.optionals (isPy27 || isPy34) [ enum34 ]
15+ ++ lib.optionals (isPy27) [ futures ];
1616
1717 meta = with stdenv.lib; {
1818 description = "HTTP/2-based RPC framework";
pkgs/development/python-modules/pelican/default.nix+1−2
@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchFromGitHub, isPy26
1+{ stdenv, buildPythonPackage, fetchFromGitHub
22, glibcLocales, pandoc, git
33, mock, nose, markdown, lxml, typogrify
44, jinja2, pygments, docutils, pytz, unidecode, six, dateutil, feedgenerator
@@ -7,7 +7,6 @@
77buildPythonPackage rec {
88 pname = "pelican";
99 version = "3.7.1";
10− disabled = isPy26;
1110
1211 src = fetchFromGitHub {
1312 owner = "getpelican";
pkgs/development/python-modules/pyscard/default.nix+2−2
@@ -10,11 +10,11 @@ buildPythonPackage rec {
1010 };
1111
1212 postPatch = ''
13− sed -e 's!"libpcsclite\.so\.1"!"${pcsclite}/lib/libpcsclite.so.1"!' \
13+ sed -e 's!"libpcsclite\.so\.1"!"${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so.1"!' \
1414 -i smartcard/scard/winscarddll.c
1515 '';
1616
17− NIX_CFLAGS_COMPILE = "-isystem ${pcsclite}/include/PCSC/";
17+ NIX_CFLAGS_COMPILE = "-isystem ${stdenv.lib.getDev pcsclite}/include/PCSC/";
1818
1919 propagatedBuildInputs = [ pcsclite ];
2020 buildInputs = [ swig ] ++ stdenv.lib.optional stdenv.isDarwin PCSC;
pkgs/development/python-modules/pytest/default.nix+2−3
@@ -1,4 +1,4 @@
1−{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, attrs, hypothesis, py
1+{ stdenv, buildPythonPackage, fetchPypi, attrs, hypothesis, py
22, setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k, more-itertools
33, atomicwrites, mock
44}:
@@ -19,8 +19,7 @@ buildPythonPackage rec {
1919 checkInputs = [ hypothesis mock ];
2020 buildInputs = [ setuptools_scm ];
2121 propagatedBuildInputs = [ attrs py setuptools six pluggy more-itertools atomicwrites]
22− ++ (stdenv.lib.optional (!isPy3k) funcsigs)
23− ++ (stdenv.lib.optional isPy26 argparse);
22+ ++ (stdenv.lib.optional (!isPy3k) funcsigs);
2423
2524 checkPhase = ''
2625 runHook preCheck
pkgs/development/python-modules/trollius/default.nix+2−5
@@ -1,17 +1,14 @@
1−{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, isPy26, isPyPy, mock, futures }:
1+{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27, isPyPy, mock, futures }:
22buildPythonPackage rec {
33 pname = "trollius";
44 version = "1.0.4";
5− name = "${pname}-${version}";
6−
7− disabled = isPy26;
85
96 src = fetchPypi {
107 inherit pname version;
118 sha256 = "0xny8y12x3wrflmyn6xi8a7n3m3ac80fgmgzphx5jbbaxkjcm148";
129 };
1310
14− buildInputs = [ mock ];
11+ checkInputs = [ mock ];
1512
1613 propagatedBuildInputs = lib.optionals (isPy27 || isPyPy) [ futures ];
1714
pkgs/development/tools/build-managers/cmake/default.nix+6−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pkgconfig
1+{ stdenv, fetchurl, fetchpatch, pkgconfig
22, bzip2, curl, expat, libarchive, xz, zlib, libuv, rhash
33, majorVersion ? "3.11"
44# darwin attributes
@@ -57,6 +57,11 @@ stdenv.mkDerivation rec {
5757
5858 # Don't search in non-Nix locations such as /usr, but do search in our libc.
5959 patches = [ ./search-path-3.9.patch ]
60+ ++ optional (versionOlder version "3.12") (fetchpatch {
61+ name = "cmake-3.11-libuv-1.21.patch";
62+ url = https://gitlab.kitware.com/cmake/cmake/commit/889033b5c6847cf1f7bd789384405d59dc333bf6.patch;
63+ sha256 = "0683zbyb3bicaxqzrj4wgdan6x08k30m20kkmpjvw30nr6a8r6xq";
64+ })
6065 # Don't depend on frameworks.
6166 ++ optional (useSharedLibraries && majorVersion == "3.11") ./application-services.patch # TODO: remove conditional
6267 ++ optional stdenv.isCygwin ./3.2.2-cygwin.patch;
pkgs/development/tools/hexio/default.nix+1−1
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717
1818 patchPhase = ''
1919 substituteInPlace Makefile \
20− --replace '-I/usr/local/include/PCSC/' '-I${pcsclite}/include/PCSC/' \
20+ --replace '-I/usr/local/include/PCSC/' '-I${stdenv.lib.getDev pcsclite}/include/PCSC/' \
2121 --replace '-L/usr/local/lib/pth' '-I${pth}/lib/'
2222 '';
2323
pkgs/development/tools/misc/automake/automake-1.11.x.nix+1−1
@@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
1515 sha256 = "1ffbc6cc41f0ea6c864fbe9485b981679dc5e350f6c4bc6c3512f5a4226936b5";
1616 };
1717
18− patches = [ ./fix-test-autoconf-2.69.patch ];
18+ patches = [ ./fix-test-autoconf-2.69.patch ./fix-perl-5.26.patch ];
1919
2020 buildInputs = [perl autoconf makeWrapper];
2121
pkgs/development/tools/misc/automake/fix-perl-5.26.patchnew file+10
@@ -0,0 +1,10 @@
1+--- automake-1.11.2/automake.in
2++++ automake-1.11.2/automake.in
3+@@ -4156,7 +4156,7 @@ sub substitute_ac_subst_variables_worker($)
4+ sub substitute_ac_subst_variables ($)
5+ {
6+ my ($text) = @_;
7+- $text =~ s/\${([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge;
8++ $text =~ s/\$\{([^ \t=:+{}]+)}/&substitute_ac_subst_variables_worker ($1)/ge;
9+ return $text;
10+ }
pkgs/development/tools/parsing/bison/2.x.nix+5−3
@@ -1,16 +1,18 @@
1−{ stdenv, fetchurl, m4, perl }:
1+{ stdenv, lib, fetchurl, m4, perl }:
22
33stdenv.mkDerivation rec {
4− name = "bison-2.7";
4+ name = "bison-2.7.1";
55
66 src = fetchurl {
77 url = "mirror://gnu/bison/${name}.tar.gz";
8− sha256 = "0cd8s2g7zjshya7kwjc9rh3drsssl4hiq4sccnkgf0nn9wvygfqr";
8+ sha256 = "0c9li3iaslzzr3zig6m3zlmb4r8i0wfvkcrvdyiqxasb09mjkqh8";
99 };
1010
1111 nativeBuildInputs = [ m4 ] ++ stdenv.lib.optional doCheck perl;
1212 propagatedBuildInputs = [ m4 ];
1313
14+ patches = lib.optional stdenv.isDarwin ./darwin-vasnprintf.patch;
15+
1416 doCheck = true;
1517 # M4 = "${m4}/bin/m4";
1618
pkgs/development/tools/parsing/bison/darwin-vasnprintf.patchnew file+12
@@ -0,0 +1,12 @@
1+diff -ur bison-2.7-pristine/lib/vasnprintf.c bison-2.7/lib/vasnprintf.c
2+--- bison-2.7-pristine/lib/vasnprintf.c 2012-11-30 20:48:23.000000000 +0900
3++++ bison-2.7/lib/vasnprintf.c 2018-06-28 16:55:31.000000000 +0900
4+@@ -4870,7 +4870,7 @@
5+ #endif
6+ *fbp = dp->conversion;
7+ #if USE_SNPRINTF
8+-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
9++# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || (defined __APPLE__ && defined __MACH__))
10+ fbp[1] = '%';
11+ fbp[2] = 'n';
12+ fbp[3] = '\0';
pkgs/development/web/nodejs/v10.nix+2−2
@@ -5,7 +5,7 @@ let
55in
66 buildNodejs {
77 inherit enableNpm;
8− version = "10.5.0";
9− sha256 = "1g1kdcrhahdsrkazfl9wj25abgjvkncgwwcm2ppgj3avfi1wam3v";
8+ version = "10.6.0";
9+ sha256 = "13vyzh53j2c4mv3q3yb0hkdpl1mag5705k7kmb8nmcvdhcm78q0r";
1010 patches = lib.optionals stdenv.isDarwin [ ./no-xcode-v7.patch ./no-xcodebuild.patch ];
1111 }
pkgs/os-specific/darwin/apple-sdk/default.nix+4−2
@@ -71,6 +71,8 @@ let
7171 # because we copy files from the system
7272 preferLocalBuild = true;
7373
74+ disallowedRequisites = [ sdk ];
75+
7476 installPhase = ''
7577 linkFramework() {
7678 local path="$1"
@@ -160,8 +162,8 @@ in rec {
160162 installPhase = ''
161163 mkdir -p $out/include
162164 pushd $out/include >/dev/null
163− ln -s "${lib.getDev sdk}/include/xpc"
164− ln -s "${lib.getDev sdk}/include/launch.h"
165+ cp -r "${lib.getDev sdk}/include/xpc" $out/include/xpc
166+ cp "${lib.getDev sdk}/include/launch.h" $out/include/launch.h
165167 popd >/dev/null
166168 '';
167169 };
pkgs/os-specific/darwin/apple-sdk/frameworks.nix−1
@@ -86,7 +86,6 @@ with frameworks; with libs; {
8686 QTKit = [ CoreMediaIO CoreMedia MediaToolbox QuickTime VideoToolbox ];
8787 QuickLook = [ ApplicationServices CF ];
8888 QuickTime = [ ApplicationServices AudioUnit Carbon CoreAudio CoreServices OpenGL QuartzCore ];
89− Ruby = [];
9089 SceneKit = [];
9190 ScreenSaver = [];
9291 Scripting = [];
pkgs/os-specific/darwin/apple-source-releases/libiconv/default.nix+4−2
@@ -10,8 +10,10 @@ appleDerivation {
1010 sed -i 's/darwin\*/ios\*/g' configure libcharset/configure
1111 '';
1212
13− configureFlags = lib.optional enableStatic "--enable-static"
14− ++ lib.optional (!enableShared) "--disable-shared";
13+ configureFlags = [
14+ (lib.enableFeature enableStatic "static")
15+ (lib.enableFeature enableShared "shared")
16+ ];
1517
1618 postInstall = lib.optionalString (!enableStatic) ''
1719 mv $out/lib/libiconv.dylib $out/lib/libiconv-nocharset.dylib
pkgs/os-specific/darwin/apple-source-releases/libsecurity_generic/default.nix+3−1
@@ -26,8 +26,9 @@ name: version: sha256: args: let
2626 '';
2727 preBuild = ''
2828 ln -s lib ${n}
29− makeFlagsArray=(-j''$NIX_BUILD_CORES)
29+ makeFlagsArray=(-j$NIX_BUILD_CORES)
3030 '';
31+ outputs = [ "out" "dev" ];
3132 buildInputs = [
3233 pkgs.gnustep.make
3334 pkgs.darwin.apple_sdk.frameworks.AppKit
@@ -51,6 +52,7 @@ name: version: sha256: args: let
5152 "-iframework ${pkgs.darwin.Security}/Library/Frameworks"
5253 "-I."
5354 "-Wno-deprecated-declarations"
55+ "-DNDEBUG"
5456 ];
5557 NIX_LDFLAGS = with pkgs.darwin; with apple_sdk.frameworks; [
5658 "-L${libobjc}/lib"
pkgs/os-specific/darwin/apple-source-releases/libsecurityd/default.nix+3−3
@@ -9,7 +9,7 @@ appleDerivation {
99 unpackFile ${libsecurity_cdsa_client.src}
1010 mv libsecurity_cdsa_client*/lib security_cdsa_client
1111 ln -s lib securityd_client
12−
12+
1313 patch -p1 < ${./xdr-arity.patch}
1414 '';
1515 preBuild = ''
@@ -17,7 +17,7 @@ appleDerivation {
1717 cp derived_src/* lib
1818 rm lib/ucspClientC.c
1919 '';
20− postInstall = ''
21− ln -s ''$out/include/securityd ''$out/include/securityd_client
20+ postFixup = ''
21+ ln -s $dev/include/securityd $dev/include/securityd_client
2222 '';
2323}
pkgs/os-specific/darwin/security-tool/default.nix+3−2
@@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
1515 sha256 = "0apcz4vy2z5645jhrs60wj3w27mncjjqv42h5lln36g6qs2n9113";
1616 };
1717
18+ disallowedRequisites = [ apple_sdk.sdk ];
19+
1820 patchPhase = ''
1921 # copied from libsecurity_generic
2022 cp -R ${osx_private_sdk}/include/SecurityPrivateHeaders Security
@@ -34,7 +36,7 @@ stdenv.mkDerivation rec {
3436 '';
3537
3638 preBuild = ''
37− makeFlagsArray=(-j''$NIX_BUILD_CORES)
39+ makeFlagsArray=(-j$NIX_BUILD_CORES)
3840 '';
3941
4042 NIX_LDFLAGS = "-no_dtrace_dof";
@@ -97,4 +99,3 @@ stdenv.mkDerivation rec {
9799 license = licenses.apsl20;
98100 };
99101}
100−
pkgs/os-specific/linux/audit/default.nix+2−2
@@ -6,11 +6,11 @@
66assert enablePython -> python != null;
77
88stdenv.mkDerivation rec {
9− name = "audit-2.8.3";
9+ name = "audit-2.8.4";
1010
1111 src = fetchurl {
1212 url = "https://people.redhat.com/sgrubb/audit/${name}.tar.gz";
13− sha256 = "06lacv9zjn0sf076dydwmvjhdmik3xzhdjvyrkq75917xv54ajbl";
13+ sha256 = "0f4ci6ffznnmgblwgv7ich9mjfk3p6y5l6m6h3chhmzw156nj454";
1414 };
1515
1616 outputs = [ "bin" "dev" "out" "man" ];
pkgs/os-specific/linux/busybox/default.nix+2−2
@@ -33,14 +33,14 @@ let
3333in
3434
3535stdenv.mkDerivation rec {
36− name = "busybox-1.28.4";
36+ name = "busybox-1.29.0";
3737
3838 # Note to whoever is updating busybox: please verify that:
3939 # nix-build pkgs/stdenv/linux/make-bootstrap-tools.nix -A test
4040 # still builds after the update.
4141 src = fetchurl {
4242 url = "https://busybox.net/downloads/${name}.tar.bz2";
43− sha256 = "0smfn8hlds6nx8war62kyaykg3n7mxbjjfcpsgz84znwk4v4mhg3";
43+ sha256 = "10hccqprhr1mwkqc9i3kny44mb6sdmv9hl63wx20cr5yy095c4f8";
4444 };
4545
4646 hardeningDisable = [ "format" ] ++ lib.optionals enableStatic [ "fortify" ];
pkgs/os-specific/linux/checkpolicy/default.nix+4−4
@@ -13,10 +13,10 @@ stdenv.mkDerivation rec {
1313 nativeBuildInputs = [ bison flex ];
1414 buildInputs = [ libsepol ];
1515
16− preBuild = ''
17− makeFlagsArray+=("LIBDIR=${libsepol}/lib")
18− makeFlagsArray+=("PREFIX=$out")
19− '';
16+ makeFlags = [
17+ "PREFIX=$(out)"
18+ "LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a"
19+ ];
2020
2121 meta = libsepol.meta // {
2222 description = "SELinux policy compiler";
pkgs/os-specific/linux/libselinux/default.nix+15−13
@@ -12,6 +12,8 @@ stdenv.mkDerivation rec {
1212 version = "2.7";
1313 inherit (libsepol) se_release se_url;
1414
15+ outputs = [ "bin" "out" "dev" "man" "py" ];
16+
1517 src = fetchurl {
1618 url = "${se_url}/${se_release}/libselinux-${version}.tar.gz";
1719 sha256 = "0mwcq78v6ngbq06xmb9dvilpg0jnl2vs9fgrpakhmmiskdvc1znh";
@@ -27,19 +29,19 @@ stdenv.mkDerivation rec {
2729
2830 NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
2931
30− postPatch = optionalString enablePython ''
31− sed -i -e 's|\$(LIBDIR)/libsepol.a|${libsepol}/lib/libsepol.a|' src/Makefile
32− '';
33−
34− # fix install locations
35− preBuild = ''
36− makeFlagsArray+=("PREFIX=$out")
37− makeFlagsArray+=("DESTDIR=$out")
38− makeFlagsArray+=("MAN3DIR=$out/share/man/man3")
39− makeFlagsArray+=("MAN5DIR=$out/share/man/man5")
40− makeFlagsArray+=("MAN8DIR=$out/share/man/man8")
41− makeFlagsArray+=("PYSITEDIR=$out/lib/${python.libPrefix}/site-packages")
42− '';
32+ makeFlags = [
33+ "PREFIX=$(out)"
34+ "INCDIR=$(dev)/include/selinux"
35+ "INCLUDEDIR=$(dev)/include"
36+ "MAN3DIR=$(man)/share/man/man3"
37+ "MAN5DIR=$(man)/share/man/man5"
38+ "MAN8DIR=$(man)/share/man/man8"
39+ "PYSITEDIR=$(py)/${python.sitePackages}"
40+ "SBINDIR=$(bin)/sbin"
41+ "SHLIBDIR=$(out)/lib"
42+
43+ "LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a"
44+ ];
4345
4446 installTargets = [ "install" ] ++ optional enablePython "install-pywrap";
4547
pkgs/os-specific/linux/libsepol/default.nix+12−6
@@ -6,6 +6,8 @@ stdenv.mkDerivation rec {
66 se_release = "20170804";
77 se_url = "https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases";
88
9+ outputs = [ "bin" "out" "dev" "man" ];
10+
911 src = fetchurl {
1012 url = "${se_url}/${se_release}/libsepol-${version}.tar.gz";
1113 sha256 = "1rzr90d3f1g5wy1b8sh6fgnqb9migys2zgpjmpakn6lhxkc3p7fn";
@@ -13,18 +15,22 @@ stdenv.mkDerivation rec {
1315
1416 nativeBuildInputs = [ flex ];
1517
16− preBuild = ''
17− makeFlagsArray+=("PREFIX=$out")
18− makeFlagsArray+=("DESTDIR=$out")
19− makeFlagsArray+=("MAN8DIR=$out/share/man/man8")
20− makeFlagsArray+=("MAN3DIR=$out/share/man/man3")
21− '';
18+ makeFlags = [
19+ "PREFIX=$(out)"
20+ "BINDIR=$(bin)/bin"
21+ "INCDIR=$(dev)/include/sepol"
22+ "INCLUDEDIR=$(dev)/include"
23+ "MAN3DIR=$(man)/share/man/man3"
24+ "MAN8DIR=$(man)/share/man/man8"
25+ "SHLIBDIR=$(out)/lib"
26+ ];
2227
2328 NIX_CFLAGS_COMPILE = [ "-Wno-error" ];
2429
2530 passthru = { inherit se_release se_url; };
2631
2732 meta = with stdenv.lib; {
33+ description = "SELinux binary policy manipulation library";
2834 homepage = http://userspace.selinuxproject.org;
2935 platforms = platforms.linux;
3036 maintainers = [ maintainers.phreedom ];
pkgs/os-specific/linux/selinux-python/default.nix+1−1
@@ -29,7 +29,7 @@ stdenv.mkDerivation rec {
2929 makeFlagsArray+=("PREFIX=$out")
3030 makeFlagsArray+=("DESTDIR=$out")
3131 makeFlagsArray+=("LOCALEDIR=$out/share/locale")
32− makeFlagsArray+=("LIBSEPOLA=${libsepol}/lib/libsepol.a")
32+ makeFlagsArray+=("LIBSEPOLA=${stdenv.lib.getLib libsepol}/lib/libsepol.a")
3333 makeFlagsArray+=("BASHCOMPLETIONDIR=$out/share/bash-completion/completions")
3434 makeFlagsArray+=("PYTHON=${python3}/bin/python")
3535 makeFlagsArray+=("PYTHONLIBDIR=lib/${python3.libPrefix}/site-packages")
pkgs/os-specific/linux/setools/default.nix+1−1
@@ -30,7 +30,7 @@ buildPythonApplication rec {
3030 setupPyBuildFlags = [ "-i" ];
3131
3232 preBuild = ''
33− export SEPOL="${libsepol}/lib/libsepol.a"
33+ export SEPOL="${stdenv.lib.getLib libsepol}/lib/libsepol.a"
3434 '';
3535
3636 meta = {
pkgs/os-specific/linux/wpa_supplicant/default.nix+2−2
@@ -70,8 +70,8 @@ stdenv.mkDerivation rec {
7070 cat -n .config
7171 substituteInPlace Makefile --replace /usr/local $out
7272 export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE \
73− -I$(echo "${libnl.dev}"/include/libnl*/) \
74− -I${pcsclite}/include/PCSC/"
73+ -I$(echo "${stdenv.lib.getDev libnl}"/include/libnl*/) \
74+ -I${stdenv.lib.getDev pcsclite}/include/PCSC/"
7575 '';
7676
7777 buildInputs = [ openssl libnl dbus_libs readline pcsclite ];
pkgs/tools/compression/brotli/default.nix+2−2
@@ -4,13 +4,13 @@
44
55stdenv.mkDerivation rec {
66 name = "brotli-${version}";
7− version = "1.0.4";
7+ version = "1.0.5";
88
99 src = fetchFromGitHub {
1010 owner = "google";
1111 repo = "brotli";
1212 rev = "v" + version;
13− sha256 = "0n5snycxgwqj2v8sgxiqxq4zqh5ydx70dr7qa4ygizs02ms69n1i";
13+ sha256 = "0ssj7mnhpdpk7qnwr49qfd4gxhkmvbli5mhs274pz55cx1xp7xja";
1414 };
1515
1616 nativeBuildInputs = [ cmake ];
pkgs/tools/graphics/luxcorerender/default.nix+1
@@ -10,6 +10,7 @@
1010let boost_static = boost165.override {
1111 python = python35;
1212 enableStatic = true;
13+ enablePython = true;
1314 };
1415
1516in stdenv.mkDerivation rec {
pkgs/tools/misc/parted/default.nix+5
@@ -16,6 +16,11 @@ stdenv.mkDerivation rec {
1616 (fetchpatch {
1717 url = "https://git.alpinelinux.org/cgit/aports/plain/main/parted/fix-includes.patch?id=9c5cd3c329a40ba4559cc1d8c7d17a9bf95c237b";
1818 sha256 = "117ypyiwvzym6pi8xmy16wa5z3sbpx7gh6haabs6kfb1x2894z7q";
19+ })
20+ ++ stdenv.lib.optional (devicemapper == null)
21+ (fetchpatch {
22+ url = https://git.savannah.gnu.org/cgit/parted.git/patch/?id=7e87ca3c531228d35e13e802d2622006138b104c;
23+ sha256 = "0i29lfg8cwj342q5s7qwqhncz2bkifj5rjc7cx6jd4zqb6ykkndj";
1924 });
2025
2126 postPatch = stdenv.lib.optionalString doCheck ''
pkgs/tools/misc/xxd/default.nixdeleted−16
@@ -1,16 +0,0 @@
1−{ stdenv, vim }:
2−
3−stdenv.mkDerivation rec {
4− name = "xxd-${version}";
5− inherit (vim) version;
6− phases = [ "installPhase" ];
7− installPhase = ''
8− mkdir -p $out/{bin,share/man/man1}
9− install -m755 ${stdenv.lib.getBin vim}/bin/xxd $out/bin/xxd
10− install -m644 ${stdenv.lib.getBin vim}/share/man/man1/xxd.1.gz $out/share/man/man1/xxd.1.gz
11− '';
12− meta = with stdenv.lib; {
13− description = "Make a hexdump or do the reverse.";
14− inherit (vim.meta) homepage license maintainers platforms;
15− };
16−}
pkgs/tools/networking/curl/default.nix+4
@@ -63,6 +63,10 @@ stdenv.mkDerivation rec {
6363 '';
6464
6565 configureFlags = [
66+ # Disable default CA bundle, use NIX_SSL_CERT_FILE or fallback
67+ # to nss-cacert from the default profile.
68+ "--without-ca-bundle"
69+ "--without-ca-path"
6670 "--with-ca-fallback"
6771 "--disable-manual"
6872 ( if sslSupport then "--with-ssl=${openssl.dev}" else "--without-ssl" )
pkgs/tools/security/gnupg/20.nix+1−1
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
2828 prePatch = ''
2929 find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i
3030 '' + stdenv.lib.optionalString stdenv.isLinux ''
31− sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
31+ sed -i 's,"libpcsclite\.so[^"]*","${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
3232 '' + stdenv.lib.optionalString stdenv.isDarwin ''
3333 find . -name pcsc-wrapper.c | xargs sed -i 's/typedef unsinged int pcsc_dword_t/typedef unsigned int pcsc_dword_t/'
3434 '' + ''
pkgs/tools/security/gnupg/22.nix+1−1
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232 ./fix-libusb-include-path.patch
3333 ];
3434 postPatch = stdenv.lib.optionalString stdenv.isLinux ''
35− sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
35+ sed -i 's,"libpcsclite\.so[^"]*","${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
3636 ''; #" fix Emacs syntax highlighting :-(
3737
3838 pinentryBinaryPath = pinentry.binaryPath or "bin/pinentry";
pkgs/tools/security/open-ecard/default.nix+1−1
@@ -50,7 +50,7 @@ in stdenv.mkDerivation rec {
5050 makeWrapper ${jre}/bin/java $out/bin/${appName} \
5151 --add-flags "-cp $out/share/java/cifs-${version}.jar" \
5252 --add-flags "-jar $out/share/java/richclient-${version}.jar" \
53− --suffix LD_LIBRARY_PATH ':' ${pcsclite}/lib
53+ --suffix LD_LIBRARY_PATH ':' ${stdenv.lib.getLib pcsclite}/lib
5454 '';
5555
5656 meta = with stdenv.lib; {
pkgs/tools/security/opensc/default.nix+1−1
@@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
3232 "--localstatedir=/var"
3333 "--sysconfdir=/etc"
3434 "--with-xsl-stylesheetsdir=${docbook_xsl}/xml/xsl/docbook"
35− "--with-pcsc-provider=${pcsclite}/lib/libpcsclite.so"
35+ "--with-pcsc-provider=${stdenv.lib.getLib pcsclite}/lib/libpcsclite.so"
3636 ];
3737
3838 installFlags = [
pkgs/tools/security/pcsclite/default.nix+7
@@ -5,6 +5,8 @@ stdenv.mkDerivation rec {
55 name = "pcsclite-${version}";
66 version = "1.8.23";
77
8+ outputs = [ "bin" "out" "dev" "doc" "man" ];
9+
810 src = fetchurl {
911 url = "https://pcsclite.apdu.fr/files/pcsc-lite-${version}.tar.bz2";
1012 sha256 = "1jc9ws5ra6v3plwraqixin0w0wfxj64drahrbkyrrwzghqjjc9ss";
@@ -28,6 +30,11 @@ stdenv.mkDerivation rec {
2830 }' config.h
2931 '';
3032
33+ postInstall = ''
34+ # pcsc-spy is a debugging utility and it drags python into the closure
35+ moveToOutput bin/pcsc-spy "$dev"
36+ '';
37+
3138 nativeBuildInputs = [ pkgconfig perl python2 ];
3239 buildInputs = stdenv.lib.optionals stdenv.isLinux [ udev dbus_libs ]
3340 ++ stdenv.lib.optionals stdenv.isDarwin [ IOKit ];
pkgs/top-level/all-packages.nix+5−9
@@ -6797,7 +6797,7 @@ with pkgs;
67976797 fpc = fpc;
67986798 };
67996799
6800− lessc = callPackage ../development/compilers/lessc { };
6800+ lessc = nodePackages.less;
68016801
68026802 liquibase = callPackage ../development/tools/database/liquibase { };
68036803
@@ -9758,8 +9758,8 @@ with pkgs;
97589758 isocodes = callPackage ../development/libraries/iso-codes { };
97599759
97609760 ispc = callPackage ../development/compilers/ispc {
9761− llvmPackages = llvmPackages_4;
9762− stdenv = llvmPackages_4.stdenv;
9761+ llvmPackages = llvmPackages_6;
9762+ stdenv = llvmPackages_6.stdenv;
97639763 };
97649764
97659765 isso = callPackage ../servers/isso { };
@@ -10736,9 +10736,7 @@ with pkgs;
1073610736 then darwin.libunwind
1073710737 else callPackage ../development/libraries/libunwind { };
1073810738
10739− libuv = callPackage ../development/libraries/libuv {
10740− inherit (darwin.apple_sdk.frameworks) ApplicationServices CoreServices;
10741− };
10739+ libuv = callPackage ../development/libraries/libuv { };
1074210740
1074310741 libv4l = lowPrio (v4l_utils.override {
1074410742 withUtils = false;
@@ -18686,8 +18684,6 @@ with pkgs;
1868618684 flags = [ "python" "X11" ]; # only flag "X11" by now
1868718685 });
1868818686
18689− xxd = callPackage ../tools/misc/xxd { };
18690−
1869118687 vimNox = lowPrio (vim_configurable.override {
1869218688 source = "vim-nox";
1869318689 lua = pkgs.lua5_1; # vimNox source is from 2012, requires older lua
@@ -21945,7 +21941,7 @@ with pkgs;
2194521941 unixtools = recurseIntoAttrs (callPackages ./unix-tools.nix { });
2194621942 inherit (unixtools) hexdump ps logger eject umount
2194721943 mount wall hostname more sysctl getconf
21948− getent locale killall;
21944+ getent locale killall xxd;
2194921945
2195021946 fts = if hostPlatform.isMusl then netbsd.fts else null;
2195121947
pkgs/top-level/perl-packages.nix+73−116
@@ -5,11 +5,13 @@
55 for each package in a separate file: the call to the function would
66 be almost as much code as the function itself. */
77
8−{pkgs, overrides}:
8+{config, pkgs, fetchurl, fetchFromGitHub, stdenv, fetchsvn, gnused, perl, overrides}:
99
1010let self = _self // overrides; _self = with self; {
1111
12− inherit (pkgs) buildPerlPackage fetchurl fetchFromGitHub stdenv perl fetchsvn gnused;
12+ inherit perl;
13+
14+ inherit (pkgs) buildPerlPackage;
1315
1416 inherit (stdenv.lib) maintainers;
1517
@@ -637,8 +639,6 @@ let self = _self // overrides; _self = with self; {
637639 buildInputs = [ IPCSystemSimple TestFatal ];
638640 };
639641
640− Autobox = self.autobox;
641−
642642 Autodia = buildPerlPackage rec {
643643 name = "Autodia-2.14";
644644 src = fetchurl {
@@ -670,10 +670,6 @@ let self = _self // overrides; _self = with self; {
670670 buildInputs = [ DBI ];
671671 };
672672
673− autodie = null; # part of Perl
674−
675− AutoLoader = null; # part of Perl 5.22
676−
677673 autovivification = buildPerlPackage rec {
678674 name = "autovivification-0.18";
679675 src = fetchurl {
@@ -696,10 +692,10 @@ let self = _self // overrides; _self = with self; {
696692 };
697693
698694 BC = buildPerlPackage rec {
699− name = "B-C-1.54";
695+ name = "B-C-1.55";
700696 src = fetchurl {
701697 url = "mirror://cpan/authors/id/R/RU/RURBAN/${name}.tar.gz";
702− sha256 = "d07e5af5fb798fcd3f4eda5e40744a14c1b3ef9e585a7dca55b5db31cb1d28d3";
698+ sha256 = "001bc3mxv1zkg1ynqpv3fbn1v3h3bqihg0pp19z4gfvrsrkns8q9";
703699 };
704700 propagatedBuildInputs = [ BFlags IPCRun Opcodes ];
705701 meta = {
@@ -1458,8 +1454,6 @@ let self = _self // overrides; _self = with self; {
14581454 };
14591455 };
14601456
1461− CatalystPluginUnicodeEncoding = CatalystRuntime;
1462−
14631457 CatalystPluginHTMLWidget = buildPerlPackage rec {
14641458 name = "Catalyst-Plugin-HTML-Widget-1.1";
14651459 src = fetchurl {
@@ -1867,6 +1861,10 @@ let self = _self // overrides; _self = with self; {
18671861 url = "mirror://cpan/authors/id/J/JS/JSWARTZ/${name}.tar.gz";
18681862 sha256 = "c7f1a2b3570a8fede484e933f89ba1729e0abd05935791d146c522dd120ee851";
18691863 };
1864+ preConfigure = stdenv.lib.optionalString (stdenv.lib.versionAtLeast perl.version "5.26") ''
1865+ # fix error 'Unescaped left brace in regex is illegal here in regex'
1866+ substituteInPlace lib/CHI/t/Driver/Subcache/l1_cache.pm --replace 'qr/CHI stats: {' 'qr/CHI stats: \{'
1867+ '';
18701868 buildInputs = [ TestClass TestDeep TestException TestWarn TimeDate ];
18711869 propagatedBuildInputs = [ CarpAssert ClassLoad DataUUID DigestJHash HashMoreUtils JSONMaybeXS ListMoreUtils LogAny Moo MooXTypesMooseLikeNumeric StringRewritePrefix TaskWeaken TimeDuration TimeDurationParse ];
18721870 meta = {
@@ -1909,8 +1907,6 @@ let self = _self // overrides; _self = with self; {
19091907 propagatedBuildInputs = [ ClassAccessor ];
19101908 };
19111909
1912− ClassAccessorFast = ClassAccessor;
1913−
19141910 ClassAccessorGrouped = buildPerlPackage {
19151911 name = "Class-Accessor-Grouped-0.10012";
19161912 src = fetchurl {
@@ -2105,6 +2101,10 @@ let self = _self // overrides; _self = with self; {
21052101 url = "mirror://cpan/authors/id/E/EV/EVO/${name}.tar.gz";
21062102 sha256 = "0ricb0mn0i06ngfhq5y035yx8i7ahlx83yyqwixqmv6hg4p79b5c";
21072103 };
2104+ preConfigure = stdenv.lib.optionalString (stdenv.lib.versionAtLeast perl.version "5.26") ''
2105+ # fix error 'Unescaped left brace in regex is illegal here in regex'
2106+ substituteInPlace tests/xemulator/class_methodmaker/Test.pm --replace 's/(TEST\s{)/$1/g' 's/(TEST\s\{)/$1/g'
2107+ '';
21082108 };
21092109
21102110 ClassMethodMaker = buildPerlPackage rec {
@@ -2148,8 +2148,6 @@ let self = _self // overrides; _self = with self; {
21482148 };
21492149 };
21502150
2151− ClassMOP = Moose;
2152−
21532151 ClassReturnValue = buildPerlPackage rec {
21542152 name = "Class-ReturnValue-0.55";
21552153 src = fetchurl {
@@ -2363,9 +2361,6 @@ let self = _self // overrides; _self = with self; {
23632361 };
23642362 };
23652363
2366− # For backwards compatibility.
2367− CommonSense = self.commonsense;
2368−
23692364 commonsense = buildPerlPackage rec {
23702365 name = "common-sense-3.74";
23712366 src = fetchurl {
@@ -2415,8 +2410,6 @@ let self = _self // overrides; _self = with self; {
24152410 inherit (pkgs) zlib;
24162411 };
24172412
2418− CompressZlib = IOCompress;
2419−
24202413 CompressUnLZMA = buildPerlPackage rec {
24212414 name = "Compress-unLZMA-0.05";
24222415 src = fetchurl {
@@ -2665,8 +2658,6 @@ let self = _self // overrides; _self = with self; {
26652658 };
26662659 };
26672660
2668− constant = null; # part of Perl 5.22
2669−
26702661 constantboolean = buildPerlModule {
26712662 name = "constant-boolean-0.02";
26722663 src = fetchurl {
@@ -2692,8 +2683,6 @@ let self = _self // overrides; _self = with self; {
26922683 };
26932684 };
26942685
2695− constantdefer = pkgs.perlPackages.constant-defer;
2696−
26972686 constant-defer = buildPerlPackage rec {
26982687 name = "constant-defer-6";
26992688 src = fetchurl {
@@ -4028,8 +4017,6 @@ let self = _self // overrides; _self = with self; {
40284017 };
40294018 };
40304019
4031− DevelSelfStubber = null; # part of Perl 5.22
4032−
40334020 DevelSizeMe = buildPerlPackage {
40344021 name = "Devel-SizeMe-0.19";
40354022 src = fetchurl {
@@ -4473,8 +4460,6 @@ let self = _self // overrides; _self = with self; {
44734460 };
44744461 };
44754462
4476− Digest = null; # part of Perl 5.22
4477−
44784463 DigestCRC = buildPerlPackage rec {
44794464 name = "Digest-CRC-0.22.2";
44804465 src = fetchurl {
@@ -4500,7 +4485,6 @@ let self = _self // overrides; _self = with self; {
45004485 };
45014486
45024487 DigestHMAC_SHA1 = DigestHMAC;
4503−
45044488 DigestJHash = buildPerlPackage rec {
45054489 name = "Digest-JHash-0.10";
45064490 src = fetchurl {
@@ -4560,8 +4544,6 @@ let self = _self // overrides; _self = with self; {
45604544 };
45614545 };
45624546
4563− DigestSHA = null;
4564−
45654547 DigestSHA1 = buildPerlPackage {
45664548 name = "Digest-SHA1-2.13";
45674549 src = fetchurl {
@@ -4650,8 +4632,6 @@ let self = _self // overrides; _self = with self; {
46504632 buildInputs = [ TestMojibake ];
46514633 };
46524634
4653− DistZillaPluginNoTabsTests = DistZillaPluginTestNoTabs;
4654−
46554635 DistZillaPluginPodWeaver = buildPerlPackage {
46564636 name = "Dist-Zilla-Plugin-PodWeaver-4.008";
46574637 src = fetchurl {
@@ -5078,8 +5058,6 @@ let self = _self // overrides; _self = with self; {
50785058 };
50795059 };
50805060
5081− EmailMIMEModifier = EmailMIME;
5082−
50835061 EmailSend = buildPerlPackage rec {
50845062 name = "Email-Send-2.201";
50855063 src = fetchurl {
@@ -5422,8 +5400,6 @@ let self = _self // overrides; _self = with self; {
54225400 };
54235401 };
54245402
5425− ExtUtilsCommand = ExtUtilsMakeMaker;
5426−
54275403 Expect = buildPerlPackage {
54285404 name = "Expect-1.35";
54295405 src = fetchurl {
@@ -5437,8 +5413,6 @@ let self = _self // overrides; _self = with self; {
54375413 };
54385414 };
54395415
5440− Exporter = null; # part of Perl 5.22
5441−
54425416 ExtUtilsCBuilder = buildPerlPackage rec {
54435417 name = "ExtUtils-CBuilder-0.280230";
54445418 src = fetchurl {
@@ -6207,8 +6181,6 @@ let self = _self // overrides; _self = with self; {
62076181 };
62086182 };
62096183
6210− FileTemp = null;
6211−
62126184 FileTouch = buildPerlPackage rec {
62136185 name = "File-Touch-0.11";
62146186 src = fetchurl {
@@ -7533,8 +7505,6 @@ let self = _self // overrides; _self = with self; {
75337505 };
75347506 };
75357507
7536− I18NCollate = null; # part of Perl 5.22
7537−
75387508 iCalParser = buildPerlPackage rec {
75397509 name = "iCal-Parser-1.21";
75407510 src = fetchurl {
@@ -7547,11 +7517,6 @@ let self = _self // overrides; _self = with self; {
75477517 };
75487518 };
75497519
7550− "if" = null;
7551−
7552− # For backwards compatibility.
7553− if_ = self."if";
7554−
75557520 ImageInfo = buildPerlPackage rec {
75567521 name = "Image-Info-1.41";
75577522 src = fetchurl {
@@ -7846,8 +7811,6 @@ let self = _self // overrides; _self = with self; {
78467811 };
78477812 };
78487813
7849− IOstringy = pkgs.perlPackages.IOStringy;
7850−
78517814 IOStringy = buildPerlPackage rec {
78527815 name = "IO-stringy-2.111";
78537816 src = fetchurl {
@@ -8223,8 +8186,6 @@ let self = _self // overrides; _self = with self; {
82238186 };
82248187 };
82258188
8226− lib_ = null; # part of Perl 5.22
8227−
82288189 libapreq2 = buildPerlPackage {
82298190 name = "libapreq2-2.13";
82308191 src = fetchurl {
@@ -8255,8 +8216,6 @@ let self = _self // overrides; _self = with self; {
82558216 };
82568217 };
82578218
8258− libintlperl = pkgs.perlPackages.libintl_perl;
8259−
82608219 libintl_perl = buildPerlPackage rec {
82618220 name = "libintl-perl-1.29";
82628221 src = fetchurl {
@@ -8677,8 +8636,6 @@ let self = _self // overrides; _self = with self; {
86778636 };
86788637 };
86798638
8680− LocaleMaketextSimple = null; # part of Perl 5.22
8681−
86828639 LocaleMsgfmt = buildPerlPackage {
86838640 name = "Locale-Msgfmt-0.15";
86848641 src = fetchurl {
@@ -8918,9 +8875,6 @@ let self = _self // overrides; _self = with self; {
89188875 };
89198876 };
89208877
8921− # For backwards compatibility.
8922− Log4Perl = self.LogLog4perl;
8923−
89248878 LogDispatchArray = buildPerlPackage {
89258879 name = "Log-Dispatch-Array-1.003";
89268880 src = fetchurl {
@@ -9004,8 +8958,6 @@ let self = _self // overrides; _self = with self; {
90048958 };
90058959 };
90068960
9007− LWPProtocolconnect = pkgs.perlPackages.LWPProtocolConnect;
9008−
90098961 LWPProtocolConnect = buildPerlPackage {
90108962 name = "LWP-Protocol-connect-6.09";
90118963 src = fetchurl {
@@ -9020,8 +8972,6 @@ let self = _self // overrides; _self = with self; {
90208972 };
90218973 };
90228974
9023− LWPProtocolhttps = pkgs.perlPackages.LWPProtocolHttps;
9024−
90258975 LWPProtocolHttps = buildPerlPackage rec {
90268976 name = "LWP-Protocol-https-6.07";
90278977 src = fetchurl {
@@ -9052,8 +9002,6 @@ let self = _self // overrides; _self = with self; {
90529002 };
90539003 };
90549004
9055− LWPUserAgent = LWP;
9056−
90579005 LWPUserAgentDetermined = buildPerlPackage {
90589006 name = "LWP-UserAgent-Determined-1.07";
90599007 src = fetchurl {
@@ -9353,8 +9301,6 @@ let self = _self // overrides; _self = with self; {
93539301 buildInputs = [ ExtUtilsCppGuess ExtUtilsTypemapsDefault ExtUtilsXSpp ModuleBuildWithXSpp TestDeep ];
93549302 };
93559303
9356− MathComplex = null; # part of Perl 5.22
9357−
93589304 MathConvexHullMonotoneChain = buildPerlPackage rec {
93599305 name = "Math-ConvexHull-MonotoneChain-0.01";
93609306 src = fetchurl {
@@ -9516,8 +9462,6 @@ let self = _self // overrides; _self = with self; {
95169462 };
95179463 };
95189464
9519− MIMEBase64 = null; # part of Perl 5.22
9520−
95219465 MIMECharset = buildPerlPackage {
95229466 name = "MIME-Charset-1.012.2";
95239467 src = fetchurl {
@@ -9554,8 +9498,6 @@ let self = _self // overrides; _self = with self; {
95549498 };
95559499 };
95569500
9557− MIMEtools = MIMETools;
9558−
95599501 MIMETools = buildPerlPackage rec {
95609502 name = "MIME-tools-5.509";
95619503 src = fetchurl {
@@ -10432,8 +10374,6 @@ let self = _self // overrides; _self = with self; {
1043210374 };
1043310375 };
1043410376
10435− MouseXGetOpt = self.MouseXGetopt;
10436−
1043710377 MouseXGetopt = buildPerlModule rec {
1043810378 name = "MouseX-Getopt-0.37";
1043910379 src = fetchurl {
@@ -11086,12 +11026,6 @@ let self = _self // overrides; _self = with self; {
1108611026 };
1108711027 };
1108811028
11089− # Deprecated.
11090− NamespaceAutoclean = self.namespaceautoclean;
11091−
11092− # Deprecated.
11093− NamespaceClean = self.namespaceclean;
11094−
1109511029 NetIdent = buildPerlPackage rec {
1109611030 name = "Net-Ident-1.24";
1109711031 src = fetchurl {
@@ -11375,8 +11309,6 @@ let self = _self // overrides; _self = with self; {
1137511309 };
1137611310 };
1137711311
11378− NetLDAP = perlldap;
11379−
1138011312 NetOAuth = buildPerlModule {
1138111313 name = "Net-OAuth-0.28";
1138211314 src = fetchurl {
@@ -11453,8 +11385,6 @@ let self = _self // overrides; _self = with self; {
1145311385 };
1145411386 };
1145511387
11456− NetSMTP = libnet;
11457−
1145811388 NetSMTPSSL = buildPerlPackage {
1145911389 name = "Net-SMTP-SSL-1.04";
1146011390 src = fetchurl {
@@ -11636,9 +11566,6 @@ let self = _self // overrides; _self = with self; {
1163611566 };
1163711567 };
1163811568
11639− # For backwards compatibility. Please use OLEStorage_Lite instead.
11640− OLEStorageLight = OLEStorage_Lite;
11641−
1164211569 OLEStorage_Lite = buildPerlPackage rec {
1164311570 name = "OLE-Storage_Lite-0.19";
1164411571 src = fetchurl {
@@ -11952,8 +11879,6 @@ let self = _self // overrides; _self = with self; {
1195211879 };
1195311880 };
1195411881
11955− ParseCPANMeta = CPANMeta;
11956−
1195711882 ParseDebControl = buildPerlPackage rec {
1195811883 name = "Parse-DebControl-2.005";
1195911884 src = fetchurl {
@@ -12082,7 +12007,7 @@ let self = _self // overrides; _self = with self; {
1208212007 };
1208312008 buildInputs = [ pkgs.pcsclite ];
1208412009 nativeBuildInputs = [ pkgs.pkgconfig ];
12085− NIX_CFLAGS_LINK = "-L${pkgs.pcsclite}/lib -lpcsclite";
12010+ NIX_CFLAGS_LINK = "-L${stdenv.lib.getLib pkgs.pcsclite}/lib -lpcsclite";
1208612011 # tests fail; look unfinished
1208712012 doCheck = false;
1208812013 meta = {
@@ -12206,8 +12131,6 @@ let self = _self // overrides; _self = with self; {
1220612131 };
1220712132 };
1220812133
12209− PerlIOviaQuotedPrint = null; # part of Perl 5.22
12210−
1221112134 PerlIOviasymlink = buildPerlPackage {
1221212135 name = "PerlIO-via-symlink-0.05";
1221312136 src = fetchurl {
@@ -12862,8 +12785,6 @@ let self = _self // overrides; _self = with self; {
1286212785 };
1286312786 };
1286412787
12865− PodEscapes = null; # part of Perl 5.22
12866−
1286712788 PodEventual = buildPerlPackage {
1286812789 name = "Pod-Eventual-0.094001";
1286912790 src = fetchurl {
@@ -13363,8 +13284,6 @@ let self = _self // overrides; _self = with self; {
1336313284 propagatedBuildInputs = [ DateTimeFormatDateParse Error LWP ParamsValidate ];
1336413285 };
1336513286
13366− Safe = null; # part of Perl 5.22
13367−
1336813287 SafeIsa = buildPerlPackage {
1336913288 name = "Safe-Isa-1.000010";
1337013289 src = fetchurl {
@@ -13432,8 +13351,6 @@ let self = _self // overrides; _self = with self; {
1343213351 };
1343313352 };
1343413353
13435− SearchDict = null; # part of Perl 5.22
13436−
1343713354 SelfLoader = buildPerlPackage {
1343813355 name = "SelfLoader-1.24";
1343913356 src = fetchurl {
@@ -14128,7 +14045,7 @@ let self = _self // overrides; _self = with self; {
1412814045 license = licenses.gpl3;
1412914046 platforms = platforms.all;
1413014047 maintainers = with maintainers; [ pSub ];
14131− meta.broken = true;
14048+ broken = true;
1413214049 };
1413314050 };
1413414051
@@ -14190,7 +14107,6 @@ let self = _self // overrides; _self = with self; {
1419014107 };
1419114108
1419214109 SubExporterUtil = SubExporter;
14193−
1419414110 SubIdentify = buildPerlPackage rec {
1419514111 name = "Sub-Identify-0.14";
1419614112 src = fetchurl {
@@ -14865,8 +14781,6 @@ let self = _self // overrides; _self = with self; {
1486514781 };
1486614782 };
1486714783
14868− Test = null; # part of Perl 5.22
14869−
1487014784 Test2PluginNoWarnings = buildPerlPackage rec {
1487114785 name = "Test2-Plugin-NoWarnings-0.06";
1487214786 src = fetchurl {
@@ -15450,8 +15364,6 @@ let self = _self // overrides; _self = with self; {
1545015364 };
1545115365 };
1545215366
15453− TestMoose = Moose;
15454−
1545515367 TestMockTime = buildPerlPackage rec {
1545615368 name = "Test-MockTime-0.17";
1545715369 src = fetchurl {
@@ -15499,8 +15411,6 @@ let self = _self // overrides; _self = with self; {
1549915411 };
1550015412 };
1550115413
15502− TestMore = TestSimple;
15503−
1550415414 TestMost = buildPerlPackage {
1550515415 name = "Test-Most-0.35";
1550615416 src = fetchurl {
@@ -15871,8 +15781,6 @@ let self = _self // overrides; _self = with self; {
1587115781 };
1587215782 };
1587315783
15874− TestSimple = null;
15875−
1587615784 TestSimple13 = buildPerlPackage rec {
1587715785 name = "Test-Simple-1.302136";
1587815786 src = fetchurl {
@@ -15961,8 +15869,6 @@ let self = _self // overrides; _self = with self; {
1596115869 buildInputs = [ TestSharedFork ];
1596215870 };
1596315871
15964− TestTester = TestSimple;
15965−
1596615872 TestTime = buildPerlPackage rec {
1596715873 name = "Test-Time-0.05";
1596815874 src = fetchurl {
@@ -16014,8 +15920,6 @@ let self = _self // overrides; _self = with self; {
1601415920 };
1601515921 };
1601615922
16017− Testuseok = TestSimple;
16018−
1601915923 TestWarn = buildPerlPackage {
1602015924 name = "Test-Warn-0.35";
1602115925 src = fetchurl {
@@ -16139,8 +16043,6 @@ let self = _self // overrides; _self = with self; {
1613916043 buildInputs = [ TestBase ];
1614016044 };
1614116045
16142− TextAbbrev = null; # part of Perl 5.22
16143−
1614416046 TextAligner = buildPerlModule rec {
1614516047 name = "Text-Aligner-0.13";
1614616048 src = fetchurl {
@@ -16534,8 +16436,6 @@ let self = _self // overrides; _self = with self; {
1653416436 };
1653516437 };
1653616438
16537− TextTabsWrap = null; # part of Perl 5.22
16538−
1653916439 TextTabularDisplay = buildPerlPackage rec {
1654016440 name = "Text-TabularDisplay-1.38";
1654116441 src = fetchurl {
@@ -18009,4 +17909,61 @@ let self = _self // overrides; _self = with self; {
1800917909 };
1801017910 };
1801117911
17912+} // stdenv.lib.optionalAttrs (config.skipAliases or false == false) {
17913+ autodie = null; # part of Perl
17914+ AutoLoader = null; # part of Perl 5.22
17915+ constant = null; # part of Perl 5.22
17916+ DevelSelfStubber = null; # part of Perl 5.22
17917+ Digest = null; # part of Perl 5.22
17918+ Exporter = null; # part of Perl 5.22
17919+ I18NCollate = null; # part of Perl 5.22
17920+ lib_ = null; # part of Perl 5.22
17921+ LocaleMaketextSimple = null; # part of Perl 5.22
17922+ MathComplex = null; # part of Perl 5.22
17923+ MIMEBase64 = null; # part of Perl 5.22
17924+ PerlIOviaQuotedPrint = null; # part of Perl 5.22
17925+ PodEscapes = null; # part of Perl 5.22
17926+ Safe = null; # part of Perl 5.22
17927+ SearchDict = null; # part of Perl 5.22
17928+ Test = null; # part of Perl 5.22
17929+ TextAbbrev = null; # part of Perl 5.22
17930+ TextTabsWrap = null; # part of Perl 5.22
17931+ DigestSHA = null;
17932+ FileTemp = null;
17933+ "if" = null;
17934+ TestSimple = null;
17935+
17936+ ArchiveZip_1_53 = self.ArchiveZip;
17937+ Autobox = self.autobox;
17938+ CommonSense = self.commonsense; # For backwards compatibility.
17939+ if_ = self."if"; # For backwards compatibility.
17940+ Log4Perl = self.LogLog4perl; # For backwards compatibility.
17941+ MouseXGetOpt = self.MouseXGetopt;
17942+ NamespaceAutoclean = self.namespaceautoclean; # Deprecated.
17943+ NamespaceClean = self.namespaceclean; # Deprecated.
17944+ CatalystPluginUnicodeEncoding = self.CatalystRuntime;
17945+ ClassAccessorFast = self.ClassAccessor;
17946+ ClassMOP = self.Moose;
17947+ CompressZlib = self.IOCompress;
17948+ constantdefer = self.constant-defer;
17949+ DigestHMAC_SHA1 = self.DigestHMAC;
17950+ DistZillaPluginNoTabsTests = self.DistZillaPluginTestNoTabs;
17951+ EmailMIMEModifier = self.EmailMIME;
17952+ ExtUtilsCommand = self.ExtUtilsMakeMaker;
17953+ IOstringy = self.IOStringy;
17954+ libintlperl = self.libintl_perl;
17955+ LWPProtocolconnect = self.LWPProtocolConnect;
17956+ LWPProtocolhttps = self.LWPProtocolHttps;
17957+ LWPUserAgent = self.LWP;
17958+ MIMEtools = self.MIMETools;
17959+ NetLDAP = self.perlldap;
17960+ NetSMTP = self.libnet;
17961+ OLEStorageLight = self.OLEStorage_Lite; # For backwards compatibility. Please use OLEStorage_Lite instead.
17962+ ParseCPANMeta = self.CPANMeta;
17963+ TestMoose = self.Moose;
17964+ TestMore = self.TestSimple;
17965+ TestTester = self.TestSimple;
17966+ Testuseok = self.TestSimple;
17967+ SubExporterUtil = self.SubExporter;
17968+
1801217969}; in self
pkgs/top-level/python-packages.nix+20−42
@@ -20,7 +20,6 @@ let
2020let
2121 pythonAtLeast = versionAtLeast python.pythonVersion;
2222 pythonOlder = versionOlder python.pythonVersion;
23− isPy26 = python.pythonVersion == "2.6";
2423 isPy27 = python.pythonVersion == "2.7";
2524 isPy33 = python.pythonVersion == "3.3";
2625 isPy34 = python.pythonVersion == "3.4";
@@ -133,7 +132,7 @@ let
133132
134133in {
135134
136− inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy26 isPy27 isPy33 isPy34 isPy35 isPy36 isPy37 isPyPy isPy3k buildPythonPackage buildPythonApplication;
135+ inherit python bootstrapped-pip pythonAtLeast pythonOlder isPy27 isPy33 isPy34 isPy35 isPy36 isPy37 isPyPy isPy3k buildPythonPackage buildPythonApplication;
137136 inherit fetchPypi callPackage;
138137 inherit hasPythonModule requiredPythonModules makePythonPath disabledIf;
139138 inherit toPythonModule toPythonApplication;
@@ -985,7 +984,7 @@ in {
985984 name = "${pname}-${version}";
986985 version = "0.2.2";
987986 pname = "basiciw";
988− disabled = isPy26 || isPy27 || isPyPy;
987+ disabled = isPy27 || isPyPy;
989988
990989 src = pkgs.fetchurl {
991990 url = "mirror://pypi/b/${pname}/${name}.tar.gz";
@@ -1031,7 +1030,7 @@ in {
10311030 propagatedBuildInputs = [
10321031 self.sqlalchemy
10331032 self.pycrypto
1034− ] ++ optionals (isPy26 || isPy27) [
1033+ ] ++ optionals (isPy27) [
10351034 self.funcsigs
10361035 self.pycryptopp
10371036 ];
@@ -1960,7 +1959,7 @@ in {
19601959 };
19611960
19621961 # Needed for celery
1963− pytest_32 = self.pytest_36.overrideAttrs( oldAttrs: rec {
1962+ pytest_32 = self.pytest_36.overridePythonAttrs( oldAttrs: rec {
19641963 version = "3.2.5";
19651964 src = oldAttrs.src.override {
19661965 inherit version;
@@ -2931,8 +2930,6 @@ in {
29312930 name = "gtimelog-${version}";
29322931 version = "0.9.1";
29332932
2934− disabled = isPy26;
2935−
29362933 src = pkgs.fetchurl {
29372934 url = "https://github.com/gtimelog/gtimelog/archive/${version}.tar.gz";
29382935 sha256 = "0qk8fv8cszzqpdi3wl9vvkym1jil502ycn6sic4jrxckw5s9jsfj";
@@ -3171,7 +3168,7 @@ in {
31713168 ipfsapi = buildPythonPackage rec {
31723169 name = "ipfsapi-${version}";
31733170 version = "0.4.2.post1";
3174− disabled = isPy26 || isPy27;
3171+ disabled = isPy27;
31753172
31763173 src = pkgs.fetchFromGitHub {
31773174 owner = "ipfs";
@@ -4099,7 +4096,7 @@ in {
40994096 virtualenv
41004097 webtest
41014098 zope_component
4102− ] ++ optional isPy26 unittest2;
4099+ ];
41034100
41044101 propagatedBuildInputs = with self; [
41054102 hupper
@@ -4632,11 +4629,8 @@ in {
46324629 sha256 = "0va95cml7wfjpvgj3dc9xdn8psyjh3zbk6v51b0hcqv2fzh409vb";
46334630 } ;
46344631
4635− buildInputs = with self; [] ++ optionals isPy26 [ ordereddict unittest2 ];
4636−
46374632 meta = {
4638− maintainers = with maintainers; [ garbas domenkozar ];
4639− platforms = platforms.all;
4633+ maintainers = with maintainers; [ garbas domenkozar ];
46404634 };
46414635 };
46424636
@@ -5241,7 +5235,6 @@ in {
52415235 sha256 = "8ad8c4783bf61ded74527bffb48ed9b54166685e4230386a9ed9b1279e2df5b1";
52425236 };
52435237
5244− buildInputs = optional isPy26 self.ordereddict;
52455238 checkPhase = ''
52465239 ${python.interpreter} -m unittest discover
52475240 '';
@@ -5594,7 +5587,7 @@ in {
55945587 # This is fixed in master I believe but not yet in 2.1;
55955588 doCheck = false;
55965589
5597− propagatedBuildInputs = with self; ([ Babel ] ++ (optionals isPy26 [ ordereddict ]));
5590+ propagatedBuildInputs = with self; [ Babel ];
55985591
55995592 meta = {
56005593 homepage = https://github.com/wtforms/wtforms;
@@ -6040,7 +6033,7 @@ in {
60406033 sha256 = "c77d007cc32cdff836ecf8df6192371767976c108a75b055e057bb6f4a09cd42";
60416034 };
60426035
6043− buildInputs = with self; [ setuptools ] ++ (optional isPy26 argparse);
6036+ buildInputs = with self; [ setuptools ];
60446037
60456038 meta = {
60466039 description = "Automatically generated zsh completion function for Python's option parser modules";
@@ -6055,7 +6048,7 @@ in {
60556048
60566049 gipc = buildPythonPackage rec {
60576050 name = "gipc-0.5.0";
6058− disabled = !isPy26 && !isPy27;
6051+ disabled = !isPy27;
60596052
60606053 src = pkgs.fetchurl {
60616054 url = "mirror://pypi/g/gipc/${name}.zip";
@@ -6574,7 +6567,7 @@ in {
65746567 importlib = buildPythonPackage rec {
65756568 name = "importlib-1.0.2";
65766569
6577− disabled = (!isPy26) || isPyPy;
6570+ disabled = isPyPy;
65786571
65796572 src = pkgs.fetchurl {
65806573 url = "mirror://pypi/i/importlib/importlib-1.0.2.tar.gz";
@@ -6789,7 +6782,7 @@ in {
67896782 sha256 = "0y3w1x9935qzx8w6m2r6g4ghyjmxn33wryiif6xb56q7cj9w1433";
67906783 };
67916784
6792− disabled = ! (isPy26 || isPy27);
6785+ disabled = !isPy27;
67936786
67946787 buildInputs = [ self.nose ];
67956788
@@ -7379,8 +7372,6 @@ in {
73797372 sha256 = "0xzz7j8xskj5y6as178mjmm0i2xbhd4q4mwmdnvghpd2aqq3qx1c";
73807373 };
73817374
7382− disabled = isPy26;
7383−
73847375 buildInputs = with self; [ pexpect ];
73857376
73867377 prePatch = ''
@@ -8552,7 +8543,7 @@ in {
85528543
85538544 nose-exclude = callPackage ../development/python-modules/nose-exclude { };
85548545
8555− nose2 = if isPy26 then null else (buildPythonPackage rec {
8546+ nose2 = buildPythonPackage rec {
85568547 name = "nose2-0.5.0";
85578548 src = pkgs.fetchurl {
85588549 url = "mirror://pypi/n/nose2/${name}.tar.gz";
@@ -8564,7 +8555,7 @@ in {
85648555 propagatedBuildInputs = with self; [ six ];
85658556 # AttributeError: 'module' object has no attribute 'collector'
85668557 doCheck = false;
8567− });
8558+ };
85688559
85698560 nose-cover3 = buildPythonPackage rec {
85708561 name = "nose-cover3-${version}";
@@ -8840,7 +8831,6 @@ in {
88408831 buildInputs = [ pkgs.makeWrapper ];
88418832
88428833 propagatedBuildInputs = with self; [ pkgs.rtmpdump pycrypto requests ]
8843− ++ optionals isPy26 [ singledispatch futures argparse ]
88448834 ++ optionals isPy27 [ singledispatch futures ]
88458835 ++ optionals isPy33 [ singledispatch ];
88468836
@@ -9410,7 +9400,7 @@ in {
94109400 name = "paho-mqtt-${version}";
94119401 version = "1.1";
94129402
9413− disabled = isPyPy || isPy26;
9403+ disabled = isPyPy;
94149404
94159405 src = pkgs.fetchurl {
94169406 url = "mirror://pypi/p/paho-mqtt/${name}.tar.gz";
@@ -11684,7 +11674,7 @@ in {
1168411674 python-wifi = buildPythonPackage rec {
1168511675 name = "python-wifi-${version}";
1168611676 version = "0.6.1";
11687− disabled = ! (isPy26 || isPy27 );
11677+ disabled = !isPy27;
1168811678
1168911679 src = pkgs.fetchurl {
1169011680 url = "mirror://pypi/p/python-wifi/${name}.tar.bz2";
@@ -12020,7 +12010,6 @@ in {
1202012010
1202112011 repocheck = buildPythonPackage rec {
1202212012 name = "repocheck-2015-08-05";
12023− disabled = isPy26 || isPy27;
1202412013
1202512014 src = pkgs.fetchFromGitHub {
1202612015 sha256 = "1jc4v5zy7z7xlfmbfzvyzkyz893f5x2k6kvb3ni3rn2df7jqhc81";
@@ -12610,8 +12599,6 @@ in {
1261012599 name = "shortuuid-${version}";
1261112600 version = "0.4.3";
1261212601
12613− disabled = isPy26;
12614−
1261512602 src = pkgs.fetchurl {
1261612603 url = "mirror://pypi/s/shortuuid/${name}.tar.gz";
1261712604 sha256 = "4606dbb19124d98109c00e2cafae2df8117aec02115623e18fb2abe3f766d293";
@@ -12846,7 +12833,7 @@ in {
1284612833 buildInputs = with self; [ pytest ];
1284712834 propagatedBuildInputs = with self; [ praw xmltodict pytz pyenchant pygeoip ];
1284812835
12849− disabled = isPyPy || isPy26 || isPy27;
12836+ disabled = isPyPy || isPy27;
1285012837
1285112838 checkPhase = ''
1285212839 ${python.interpreter} test/*.py #*/
@@ -14036,7 +14023,7 @@ in {
1403614023 src = py;
1403714024 format = "other";
1403814025
14039− disabled = isPy26 || isPyPy;
14026+ disabled = isPyPy;
1404014027
1404114028 installPhase = ''
1404214029 # Move the tkinter module
@@ -14819,11 +14806,6 @@ EOF
1481914806 substituteInPlace setup.py --replace "nose<1.3.0" "nose"
1482014807 '';
1482114808
14822− # XXX: skipping two tests fails in python2.6
14823− doCheck = ! isPy26;
14824−
14825− buildInputs = with self; optionals isPy26 [ ordereddict unittest2 ];
14826−
1482714809 propagatedBuildInputs = with self; [
1482814810 nose
1482914811 webob
@@ -15265,7 +15247,7 @@ EOF
1526515247 sha256 = "1p943jdxb587dh7php4vx04qvn7b2877hr4qs5zyckvp5afhhank";
1526615248 };
1526715249
15268− propagatedBuildInputs = with self; [ zope_location zope_event zope_interface zope_testing ] ++ optional isPy26 ordereddict;
15250+ propagatedBuildInputs = with self; [ zope_location zope_event zope_interface zope_testing ];
1526915251
1527015252 # ImportError: No module named 'zope.event'
1527115253 # even though zope_event has been included.
@@ -16869,7 +16851,7 @@ EOF
1686916851
1687016852 jenkins-job-builder = buildPythonPackage rec {
1687116853 name = "jenkins-job-builder-2.0.0.0b2";
16872− disabled = ! (isPy26 || isPy27);
16854+ disabled = !isPy27;
1687316855
1687416856 src = pkgs.fetchurl {
1687516857 url = "mirror://pypi/j/jenkins-job-builder/${name}.tar.gz";
@@ -16891,10 +16873,6 @@ EOF
1689116873 pyyaml
1689216874 six
1689316875 stevedore
16894− ] ++ optionals isPy26 [
16895− ordereddict
16896− argparse
16897− ordereddict
1689816876 ];
1689916877
1690016878 meta = {
pkgs/top-level/unix-tools.nix+9
@@ -16,6 +16,7 @@ let
1616
1717 singleBinary = cmd: providers: let
1818 provider = "${lib.getBin providers.${hostPlatform.parsed.kernel.name}}/bin/${cmd}";
19+ manpage = "${lib.getOutput "man" providers.${hostPlatform.parsed.kernel.name}}/share/man/man1/${cmd}.1.gz";
1920 in runCommand "${cmd}-${version}" {
2021 meta.platforms = map (n: { kernel.name = n; }) (pkgs.lib.attrNames providers);
2122 } ''
@@ -25,6 +26,10 @@ let
2526 fi
2627
2728 install -D "${provider}" "$out/bin/${cmd}"
29+
30+ if [ -f "${manpage}" ]; then
31+ install -D "${manpage}" $out/share/man/man1/${cmd}.1.gz
32+ fi
2833 '';
2934
3035 # more is unavailable in darwin
@@ -147,6 +152,10 @@ let
147152 linux = pkgs.utillinux;
148153 darwin = pkgs.darwin.basic_cmds;
149154 };
155+ xxd = {
156+ linux = pkgs.vim;
157+ darwin = pkgs.vim;
158+ };
150159 };
151160
152161 makeCompat = name': value: buildEnv {