Merge branch 'staging'

- I can see some regressions, especially due to fetchzip rename c3255fe8ec.
- Darwin is only half-rebuilt on Hydra ATM.
- But there quite a few security fixes within.

+346 -204
+4 -1
pkgs/build-support/closure-info.nix
··· 8 9 { rootPaths }: 10 11 - if builtins.langVersion >= 5 then 12 13 # Nix >= 1.12: Include NAR hash / size info. 14
··· 8 9 { rootPaths }: 10 11 + #if builtins.langVersion >= 5 then 12 + # FIXME: it doesn't work on Hydra, failing to find mkdir; 13 + # perhaps .attrs.sh clobbers PATH with new nix? 14 + if false then 15 16 # Nix >= 1.12: Include NAR hash / size info. 17
-19
pkgs/build-support/fetchgit/gitrepotoname.nix
··· 1 - { lib }: 2 - 3 - let 4 - inherit (lib) removeSuffix hasPrefix removePrefix splitString stringToCharacters concatMapStrings last elem; 5 - 6 - allowedChars = stringToCharacters "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+-._?="; 7 - sanitizeStoreName = s: 8 - let 9 - s' = concatMapStrings (c: if elem c allowedChars then c else "") (stringToCharacters s); 10 - s'' = if hasPrefix "." s' then "_${removePrefix "." s'}" else s'; 11 - in 12 - s''; 13 - in 14 - urlOrRepo: rev: 15 - let 16 - repo' = last (splitString ":" (baseNameOf (removeSuffix ".git" (removeSuffix "/" urlOrRepo)))); 17 - rev' = baseNameOf rev; 18 - in 19 - "${sanitizeStoreName repo'}-${sanitizeStoreName rev'}-src"
···
+2 -1
pkgs/build-support/fetchzip/default.nix
··· 11 stripRoot ? true 12 , url 13 , extraPostFetch ? "" 14 , ... } @ args: 15 16 lib.overrideDerivation (fetchurl ({ 17 - name = args.name or (baseNameOf url); 18 19 recursiveHash = true; 20
··· 11 stripRoot ? true 12 , url 13 , extraPostFetch ? "" 14 + , name ? "source" 15 , ... } @ args: 16 17 lib.overrideDerivation (fetchurl ({ 18 + inherit name; 19 20 recursiveHash = true; 21
+1 -2
pkgs/desktops/gnome-3/default.nix
··· 45 hitori gnome-taquin 46 ]; 47 48 - inherit (pkgs) glib gtk2 webkitgtk216x gtk3 gtkmm3 libcanberra_gtk2 49 clutter clutter-gst clutter_gtk cogl gtkvnc; 50 inherit (pkgs.gnome2) ORBit2; 51 libsoup = pkgs.libsoup.override { gnomeSupport = true; }; ··· 56 gtkmm = gtkmm3; 57 vala = pkgs.vala_0_32; 58 gegl_0_3 = pkgs.gegl_0_3.override { inherit gtk; }; 59 - webkitgtk = webkitgtk216x; 60 61 # Simplify the nixos module and gnome packages 62 defaultIconTheme = adwaita-icon-theme;
··· 45 hitori gnome-taquin 46 ]; 47 48 + inherit (pkgs) glib gtk2 webkitgtk gtk3 gtkmm3 libcanberra_gtk2 49 clutter clutter-gst clutter_gtk cogl gtkvnc; 50 inherit (pkgs.gnome2) ORBit2; 51 libsoup = pkgs.libsoup.override { gnomeSupport = true; }; ··· 56 gtkmm = gtkmm3; 57 vala = pkgs.vala_0_32; 58 gegl_0_3 = pkgs.gegl_0_3.override { inherit gtk; }; 59 60 # Simplify the nixos module and gnome packages 61 defaultIconTheme = adwaita-icon-theme;
+3
pkgs/development/compilers/rust/rustc.nix
··· 85 # https://reviews.llvm.org/rL281650 86 rm -vr src/test/run-pass/issue-36474.rs || true 87 88 # Disable some failing gdb tests. Try re-enabling these when gdb 89 # is updated past version 7.12. 90 rm src/test/debuginfo/basic-types-globals.rs
··· 85 # https://reviews.llvm.org/rL281650 86 rm -vr src/test/run-pass/issue-36474.rs || true 87 88 + # On Hydra: `TcpListener::bind(&addr)`: Address already in use (os error 98)' 89 + sed '/^ *fn fast_rebind()/i#[ignore]' -i src/libstd/net/tcp.rs 90 + 91 # Disable some failing gdb tests. Try re-enabling these when gdb 92 # is updated past version 7.12. 93 rm src/test/debuginfo/basic-types-globals.rs
+2 -5
pkgs/development/interpreters/perl/default.nix
··· 116 platforms = platforms.all; 117 }; 118 }; 119 - 120 in rec { 121 - 122 perl = perl524; 123 124 perl522 = common { ··· 127 }; 128 129 perl524 = common { 130 - version = "5.24.2"; 131 - sha256 = "1x4yj814a79lcarwb3ab6bbcb36hvb5n4ph4zg3yb0nabsjfi6v0"; 132 }; 133 - 134 }
··· 116 platforms = platforms.all; 117 }; 118 }; 119 in rec { 120 perl = perl524; 121 122 perl522 = common { ··· 125 }; 126 127 perl524 = common { 128 + version = "5.24.3"; 129 + sha256 = "1m2px85kq2fyp2d4rx3bw9kg3car67qfqwrs5vlv96dx0x8rl06b"; 130 }; 131 }
+2 -2
pkgs/development/interpreters/python/cpython/3.6/default.nix
··· 27 28 let 29 majorVersion = "3.6"; 30 - minorVersion = "2"; 31 minorVersionSuffix = ""; 32 pythonVersion = majorVersion; 33 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}"; ··· 48 49 src = fetchurl { 50 url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz"; 51 - sha256 = "1ab4vlpdax1ihpiyiwchlgsk36apl4kgdw271wvl9l8ywhxpfacj"; 52 }; 53 54 NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
··· 27 28 let 29 majorVersion = "3.6"; 30 + minorVersion = "3"; 31 minorVersionSuffix = ""; 32 pythonVersion = majorVersion; 33 version = "${majorVersion}.${minorVersion}${minorVersionSuffix}"; ··· 48 49 src = fetchurl { 50 url = "https://www.python.org/ftp/python/${majorVersion}.${minorVersion}/Python-${version}.tar.xz"; 51 + sha256 = "1nl1raaagr4car787a2hmjv2dw6gqny53xfd6wisbgx4r5kxk9yd"; 52 }; 53 54 NIX_LDFLAGS = optionalString stdenv.isLinux "-lgcc_s";
+6 -1
pkgs/development/libraries/cyrus-sasl/default.nix
··· 1 - { lib, stdenv, fetchurl, openssl, openldap, kerberos, db, gettext, pam, fixDarwinDylibNames, autoreconfHook, enableLdap ? false }: 2 3 with stdenv.lib; 4 stdenv.mkDerivation rec { ··· 21 22 patches = [ 23 ./missing-size_t.patch # https://bugzilla.redhat.com/show_bug.cgi?id=906519 24 ] ++ lib.optional stdenv.isFreeBSD ( 25 fetchurl { 26 url = "http://www.linuxfromscratch.org/patches/blfs/svn/cyrus-sasl-2.1.26-fixes-3.patch";
··· 1 + { lib, stdenv, fetchurl, openssl, openldap, kerberos, db, gettext, 2 + pam, fixDarwinDylibNames, autoreconfHook, fetchpatch, enableLdap ? false }: 3 4 with stdenv.lib; 5 stdenv.mkDerivation rec { ··· 22 23 patches = [ 24 ./missing-size_t.patch # https://bugzilla.redhat.com/show_bug.cgi?id=906519 25 + (fetchpatch { # CVE-2013-4122 26 + url = "http://sourceforge.net/projects/miscellaneouspa/files/glibc217/cyrus-sasl-2.1.26-glibc217-crypt.diff"; 27 + sha256 = "05l7dh1w9d5fvzg0pjwzqh0fy4ah8y5cv6v67s4ssbq8xwd4pkf2"; 28 + }) 29 ] ++ lib.optional stdenv.isFreeBSD ( 30 fetchurl { 31 url = "http://www.linuxfromscratch.org/patches/blfs/svn/cyrus-sasl-2.1.26-fixes-3.patch";
+11
pkgs/development/libraries/db/CVE-2017-10140-4.8-cwd-db_config.patch
···
··· 1 + --- a/env/env_open.c.old 2017-06-26 10:32:11.011419981 +0200 2 + +++ b/env/env_open.c 2017-06-26 10:32:46.893721233 +0200 3 + @@ -473,7 +473,7 @@ 4 + env->db_mode = mode == 0 ? DB_MODE_660 : mode; 5 + 6 + /* Read the DB_CONFIG file. */ 7 + - if ((ret = __env_read_db_config(env)) != 0) 8 + + if (env->db_home != NULL && (ret = __env_read_db_config(env)) != 0) 9 + return (ret); 10 + 11 + /*
+11
pkgs/development/libraries/db/CVE-2017-10140-cwd-db_config.patch
···
··· 1 + --- db-5.3.28/src/env/env_open.c.old 2017-06-26 10:32:11.011419981 +0200 2 + +++ db-5.3.28/src/env/env_open.c 2017-06-26 10:32:46.893721233 +0200 3 + @@ -473,7 +473,7 @@ 4 + env->db_mode = mode == 0 ? DB_MODE_660 : mode; 5 + 6 + /* Read the DB_CONFIG file. */ 7 + - if ((ret = __env_read_db_config(env)) != 0) 8 + + if (env->db_home != NULL && (ret = __env_read_db_config(env)) != 0) 9 + return (ret); 10 + 11 + /*
+1 -1
pkgs/development/libraries/db/db-4.8.nix
··· 3 import ./generic.nix (args // rec { 4 version = "4.8.30"; 5 sha256 = "0ampbl2f0hb1nix195kz1syrqqxpmvnvnfvphambj7xjrl3iljg0"; 6 - extraPatches = [ ./clang-4.8.patch ]; 7 8 drvArgs.hardeningDisable = [ "format" ]; 9 drvArgs.doCheck = false;
··· 3 import ./generic.nix (args // rec { 4 version = "4.8.30"; 5 sha256 = "0ampbl2f0hb1nix195kz1syrqqxpmvnvnfvphambj7xjrl3iljg0"; 6 + extraPatches = [ ./clang-4.8.patch ./CVE-2017-10140-4.8-cwd-db_config.patch ]; 7 8 drvArgs.hardeningDisable = [ "format" ]; 9 drvArgs.doCheck = false;
+1 -1
pkgs/development/libraries/db/db-5.3.nix
··· 3 import ./generic.nix (args // rec { 4 version = "5.3.28"; 5 sha256 = "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0"; 6 - extraPatches = [ ./clang-5.3.patch ]; 7 })
··· 3 import ./generic.nix (args // rec { 4 version = "5.3.28"; 5 sha256 = "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0"; 6 + extraPatches = [ ./clang-5.3.patch ./CVE-2017-10140-cwd-db_config.patch ]; 7 })
+1 -1
pkgs/development/libraries/db/db-6.0.nix
··· 4 version = "6.0.20"; 5 sha256 = "00r2aaglq625y8r9xd5vw2y070plp88f1mb2gbq3kqsl7128lsl0"; 6 license = stdenv.lib.licenses.agpl3; 7 - extraPatches = [ ./clang-6.0.patch ]; 8 })
··· 4 version = "6.0.20"; 5 sha256 = "00r2aaglq625y8r9xd5vw2y070plp88f1mb2gbq3kqsl7128lsl0"; 6 license = stdenv.lib.licenses.agpl3; 7 + extraPatches = [ ./clang-6.0.patch ./CVE-2017-10140-cwd-db_config.patch ]; 8 })
+1 -1
pkgs/development/libraries/db/db-6.2.nix
··· 4 version = "6.2.23"; 5 sha256 = "1isxx4jfmnh913jzhp8hhfngbk6dsg46f4kjpvvc56maj64jqqa7"; 6 license = stdenv.lib.licenses.agpl3; 7 - extraPatches = [ ./clang-6.0.patch ]; 8 })
··· 4 version = "6.2.23"; 5 sha256 = "1isxx4jfmnh913jzhp8hhfngbk6dsg46f4kjpvvc56maj64jqqa7"; 6 license = stdenv.lib.licenses.agpl3; 7 + extraPatches = [ ./clang-6.0.patch ./CVE-2017-10140-cwd-db_config.patch ]; 8 })
+1 -1
pkgs/development/libraries/lame/default.nix
··· 59 description = "A high quality MPEG Audio Layer III (MP3) encoder"; 60 homepage = http://lame.sourceforge.net; 61 license = licenses.lgpl2; 62 - maintainers = with maintainers; [ codyopel ]; 63 platforms = platforms.all; 64 }; 65 }
··· 59 description = "A high quality MPEG Audio Layer III (MP3) encoder"; 60 homepage = http://lame.sourceforge.net; 61 license = licenses.lgpl2; 62 + maintainers = with maintainers; [ codyopel fpletz ]; 63 platforms = platforms.all; 64 }; 65 }
-33
pkgs/development/libraries/lame/gcc-4.9.patch
··· 1 - fix sse optimizations build on 32-bit with gcc 4.9 2 - http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=351af417bae0d09bd5a3753d1237f03adf591933 3 - 4 - xmm_quantize_sub.c: In function 'init_xrpow_core_sse': 5 - xmm_quantize_sub.c:65:18: warning: SSE vector return without SSE enabled changes the ABI [-W 6 - psabi] 7 - const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]); 8 - ^ 9 - In file included from xmm_quantize_sub.c:37:0: 10 - /usr/lib/gcc/i686-w64-mingw32/4.9.0/include/xmmintrin.h:933:1: error: inlining failed in call to always_inline '_mm_loadu_ps': target specific option mismatch 11 - _mm_loadu_ps (float const *__P) 12 - ^ 13 - xmm_quantize_sub.c:65:18: error: called from here 14 - const __m128 vec_fabs_mask = _mm_loadu_ps(&fabs_mask._float[0]); 15 - ^ 16 - --- lame/libmp3lame/vector/xmm_quantize_sub.c.orig 2014-06-08 12:16:19.455468042 -0700 17 - +++ lame/libmp3lame/vector/xmm_quantize_sub.c 2014-06-08 12:16:09.592356980 -0700 18 - @@ -35,6 +35,7 @@ 19 - #ifdef HAVE_XMMINTRIN_H 20 - 21 - #include <xmmintrin.h> 22 - +#pragma GCC target("sse") 23 - 24 - typedef union { 25 - int32_t _i_32[4]; /* unions are initialized by its first member */ 26 - @@ -124,6 +125,7 @@ 27 - } 28 - 29 - 30 - +#pragma GCC target("sse2") 31 - void 32 - fht_SSE2(FLOAT * fz, int n) 33 - {
···
+36
pkgs/development/libraries/libarchive/CVE-2017-14166.patch
···
··· 1 + From fa7438a0ff4033e4741c807394a9af6207940d71 Mon Sep 17 00:00:00 2001 2 + From: Joerg Sonnenberger <joerg@bec.de> 3 + Date: Tue, 5 Sep 2017 18:12:19 +0200 4 + Subject: [PATCH] Do something sensible for empty strings to make fuzzers 5 + happy. 6 + 7 + --- 8 + libarchive/archive_read_support_format_xar.c | 8 +++++++- 9 + 1 file changed, 7 insertions(+), 1 deletion(-) 10 + 11 + diff --git a/libarchive/archive_read_support_format_xar.c b/libarchive/archive_read_support_format_xar.c 12 + index 7a22beb9d..93eeacc5e 100644 13 + --- a/libarchive/archive_read_support_format_xar.c 14 + +++ b/libarchive/archive_read_support_format_xar.c 15 + @@ -1040,6 +1040,9 @@ atol10(const char *p, size_t char_cnt) 16 + uint64_t l; 17 + int digit; 18 + 19 + + if (char_cnt == 0) 20 + + return (0); 21 + + 22 + l = 0; 23 + digit = *p - '0'; 24 + while (digit >= 0 && digit < 10 && char_cnt-- > 0) { 25 + @@ -1054,7 +1057,10 @@ atol8(const char *p, size_t char_cnt) 26 + { 27 + int64_t l; 28 + int digit; 29 + - 30 + + 31 + + if (char_cnt == 0) 32 + + return (0); 33 + + 34 + l = 0; 35 + while (char_cnt-- > 0) { 36 + if (*p >= '0' && *p <= '7')
+28
pkgs/development/libraries/libarchive/CVE-2017-14502.patch
···
··· 1 + From 5562545b5562f6d12a4ef991fae158bf4ccf92b6 Mon Sep 17 00:00:00 2001 2 + From: Joerg Sonnenberger <joerg@bec.de> 3 + Date: Sat, 9 Sep 2017 17:47:32 +0200 4 + Subject: [PATCH] Avoid a read off-by-one error for UTF16 names in RAR 5 + archives. 6 + 7 + Reported-By: OSS-Fuzz issue 573 8 + --- 9 + libarchive/archive_read_support_format_rar.c | 6 +++++- 10 + 1 file changed, 5 insertions(+), 1 deletion(-) 11 + 12 + diff --git a/libarchive/archive_read_support_format_rar.c b/libarchive/archive_read_support_format_rar.c 13 + index cbb14c32d..751de6979 100644 14 + --- a/libarchive/archive_read_support_format_rar.c 15 + +++ b/libarchive/archive_read_support_format_rar.c 16 + @@ -1496,7 +1496,11 @@ read_header(struct archive_read *a, struct archive_entry *entry, 17 + return (ARCHIVE_FATAL); 18 + } 19 + filename[filename_size++] = '\0'; 20 + - filename[filename_size++] = '\0'; 21 + + /* 22 + + * Do not increment filename_size here as the computations below 23 + + * add the space for the terminating NUL explicitly. 24 + + */ 25 + + filename[filename_size] = '\0'; 26 + 27 + /* Decoded unicode form is UTF-16BE, so we have to update a string 28 + * conversion object for it. */
+5
pkgs/development/libraries/libarchive/default.nix
··· 17 sha256 = "1km0mzfl6in7l5vz9kl09a88ajx562rw93ng9h2jqavrailvsbgd"; 18 }; 19 20 outputs = [ "out" "lib" "dev" ]; 21 22 nativeBuildInputs = [ pkgconfig ];
··· 17 sha256 = "1km0mzfl6in7l5vz9kl09a88ajx562rw93ng9h2jqavrailvsbgd"; 18 }; 19 20 + patches = [ 21 + ./CVE-2017-14166.patch 22 + ./CVE-2017-14502.patch 23 + ]; 24 + 25 outputs = [ "out" "lib" "dev" ]; 26 27 nativeBuildInputs = [ pkgconfig ];
+2 -2
pkgs/development/libraries/mesa/default.nix
··· 66 in 67 68 let 69 - version = "17.2.2"; 70 branch = head (splitString "." version); 71 driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32"; 72 in ··· 81 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" 82 "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz" 83 ]; 84 - sha256 = "10jplvxg7rlbp7569w08z0igwlsjjfb7q3n07zgfr8d5sr224lng"; 85 }; 86 87 prePatch = "patchShebangs .";
··· 66 in 67 68 let 69 + version = "17.2.4"; 70 branch = head (splitString "." version); 71 driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32"; 72 in ··· 81 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz" 82 "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz" 83 ]; 84 + sha256 = "0l75q9l4g15y66rqk2swqvj18qj60hpimv0f97jk44bfrpz0i92v"; 85 }; 86 87 prePatch = "patchShebangs .";
-52
pkgs/development/libraries/pcre/CVE-2017-7186.patch
··· 1 - --- a/pcre_internal.h 2016/05/21 13:34:44 1649 2 - +++ b/pcre_internal.h 2017/02/24 17:30:30 1688 3 - @@ -2772,6 +2772,9 @@ 4 - extern const pcre_uint16 PRIV(ucd_stage2)[]; 5 - extern const pcre_uint32 PRIV(ucp_gentype)[]; 6 - extern const pcre_uint32 PRIV(ucp_gbtable)[]; 7 - +#ifdef COMPILE_PCRE32 8 - +extern const ucd_record PRIV(dummy_ucd_record)[]; 9 - +#endif 10 - #ifdef SUPPORT_JIT 11 - extern const int PRIV(ucp_typerange)[]; 12 - #endif 13 - @@ -2780,9 +2783,15 @@ 14 - /* UCD access macros */ 15 - 16 - #define UCD_BLOCK_SIZE 128 17 - -#define GET_UCD(ch) (PRIV(ucd_records) + \ 18 - +#define REAL_GET_UCD(ch) (PRIV(ucd_records) + \ 19 - PRIV(ucd_stage2)[PRIV(ucd_stage1)[(int)(ch) / UCD_BLOCK_SIZE] * \ 20 - UCD_BLOCK_SIZE + (int)(ch) % UCD_BLOCK_SIZE]) 21 - + 22 - +#ifdef COMPILE_PCRE32 23 - +#define GET_UCD(ch) ((ch > 0x10ffff)? PRIV(dummy_ucd_record) : REAL_GET_UCD(ch)) 24 - +#else 25 - +#define GET_UCD(ch) REAL_GET_UCD(ch) 26 - +#endif 27 - 28 - #define UCD_CHARTYPE(ch) GET_UCD(ch)->chartype 29 - #define UCD_SCRIPT(ch) GET_UCD(ch)->script 30 - --- a/pcre_ucd.c 2014/06/19 07:51:39 1490 31 - +++ b/pcre_ucd.c 2017/02/24 17:30:30 1688 32 - @@ -38,6 +38,20 @@ 33 - const pcre_uint32 PRIV(ucd_caseless_sets)[] = {0}; 34 - #else 35 - 36 - +/* If the 32-bit library is run in non-32-bit mode, character values 37 - +greater than 0x10ffff may be encountered. For these we set up a 38 - +special record. */ 39 - + 40 - +#ifdef COMPILE_PCRE32 41 - +const ucd_record PRIV(dummy_ucd_record)[] = {{ 42 - + ucp_Common, /* script */ 43 - + ucp_Cn, /* type unassigned */ 44 - + ucp_gbOther, /* grapheme break property */ 45 - + 0, /* case set */ 46 - + 0, /* other case */ 47 - + }}; 48 - +#endif 49 - + 50 - /* When recompiling tables with a new Unicode version, please check the 51 - types in this structure definition from pcre_internal.h (the actual 52 - field names will be different):
···
+2 -4
pkgs/development/libraries/pcre/default.nix
··· 9 assert elem variant [ null "cpp" "pcre16" "pcre32" ]; 10 11 let 12 - version = "8.40"; 13 pname = if (variant == null) then "pcre" 14 else if (variant == "cpp") then "pcre-cpp" 15 else variant; ··· 19 20 src = fetchurl { 21 url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${version}.tar.bz2"; 22 - sha256 = "1x7lpjn7jhk0n3sdvggxrlrhab8kkfjwl7qix0ypw9nlx8lpmqh0"; 23 }; 24 25 outputs = [ "bin" "dev" "out" "doc" "man" ]; ··· 30 "--disable-cpp" 31 ] 32 ++ optional (variant != null) "--enable-${variant}"; 33 - 34 - patches = [ ./CVE-2017-7186.patch ]; 35 36 buildInputs = optional (hostPlatform.libc == "msvcrt") windows.mingw_w64_pthreads; 37
··· 9 assert elem variant [ null "cpp" "pcre16" "pcre32" ]; 10 11 let 12 + version = "8.41"; 13 pname = if (variant == null) then "pcre" 14 else if (variant == "cpp") then "pcre-cpp" 15 else variant; ··· 19 20 src = fetchurl { 21 url = "ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-${version}.tar.bz2"; 22 + sha256 = "0c5m469p5pd7jip621ipq6hbgh7128lzh7xndllfgh77ban7wb76"; 23 }; 24 25 outputs = [ "bin" "dev" "out" "doc" "man" ]; ··· 30 "--disable-cpp" 31 ] 32 ++ optional (variant != null) "--enable-${variant}"; 33 34 buildInputs = optional (hostPlatform.libc == "msvcrt") windows.mingw_w64_pthreads; 35
+3 -3
pkgs/development/libraries/sqlite/default.nix
··· 3 assert interactive -> readline != null && ncurses != null; 4 5 stdenv.mkDerivation { 6 - name = "sqlite-3.20.0"; 7 8 src = fetchurl { 9 - url = "http://sqlite.org/2017/sqlite-autoconf-3200000.tar.gz"; 10 - sha256 = "1876dapm1xx5aqd2d8l7ymmkd2z9rybh99rp5f5rd4zz57vcc51q"; 11 }; 12 13 outputs = [ "bin" "dev" "out" ];
··· 3 assert interactive -> readline != null && ncurses != null; 4 5 stdenv.mkDerivation { 6 + name = "sqlite-3.21.0"; 7 8 src = fetchurl { 9 + url = "http://sqlite.org/2017/sqlite-autoconf-3210000.tar.gz"; 10 + sha256 = "1qxvzdjwzw6k0kqjfabj86rnq87xdbwbca7laxxdhnh0fmkm3pfp"; 11 }; 12 13 outputs = [ "bin" "dev" "out" ];
+5 -8
pkgs/development/libraries/webkitgtk/2.16.nix pkgs/development/libraries/webkitgtk/2.18.nix
··· 4 , libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs, pcre, nettle, libtasn1, p11_kit 5 , libidn, libedit, readline, mesa, libintlOrEmpty 6 , enableGeoLocation ? true, geoclue2, sqlite 7 - , gst-plugins-base 8 }: 9 10 assert enableGeoLocation -> geoclue2 != null; ··· 12 with stdenv.lib; 13 stdenv.mkDerivation rec { 14 name = "webkitgtk-${version}"; 15 - version = "2.16.6"; 16 17 meta = { 18 description = "Web content rendering engine, GTK+ port"; ··· 42 43 src = fetchurl { 44 url = "http://webkitgtk.org/releases/${name}.tar.xz"; 45 - sha256 = "08abxbhi2n1pfby9f2c20z8mpmbvbs2z7vf0p5ckq4jkz46na8zw"; 46 }; 47 48 # see if we can clean this up.... ··· 77 "-DENABLE_GTKDOC=OFF" 78 ]; 79 80 - # XXX: WebKit2 missing include path for gst-plugins-base. 81 - # Filled: https://bugs.webkit.org/show_bug.cgi?id=148894 82 - NIX_CFLAGS_COMPILE = "-I${gst-plugins-base.dev}/include/gstreamer-1.0" 83 - + (optionalString stdenv.isDarwin " -lintl"); 84 85 nativeBuildInputs = [ 86 cmake perl python2 ruby bison gperf ··· 90 buildInputs = libintlOrEmpty ++ [ 91 gtk2 libwebp enchant libnotify gnutls pcre nettle libidn 92 libxml2 libsecret libxslt harfbuzz libpthreadstubs libtasn1 p11_kit 93 - sqlite gst-plugins-base libxkbcommon epoxy at_spi2_core 94 ] ++ optional enableGeoLocation geoclue2 95 ++ (with xlibs; [ libXdmcp libXt libXtst ]) 96 ++ optionals stdenv.isDarwin [ libedit readline mesa ]
··· 4 , libxml2, libsoup, libsecret, libxslt, harfbuzz, libpthreadstubs, pcre, nettle, libtasn1, p11_kit 5 , libidn, libedit, readline, mesa, libintlOrEmpty 6 , enableGeoLocation ? true, geoclue2, sqlite 7 + , gst-plugins-base, gst-plugins-bad 8 }: 9 10 assert enableGeoLocation -> geoclue2 != null; ··· 12 with stdenv.lib; 13 stdenv.mkDerivation rec { 14 name = "webkitgtk-${version}"; 15 + version = "2.18.1"; 16 17 meta = { 18 description = "Web content rendering engine, GTK+ port"; ··· 42 43 src = fetchurl { 44 url = "http://webkitgtk.org/releases/${name}.tar.xz"; 45 + sha256 = "15fp7szmkpannx7avsynf0nv3y343qwq0fvq3rz2m2mw5wq7pnww"; 46 }; 47 48 # see if we can clean this up.... ··· 77 "-DENABLE_GTKDOC=OFF" 78 ]; 79 80 + NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl"; 81 82 nativeBuildInputs = [ 83 cmake perl python2 ruby bison gperf ··· 87 buildInputs = libintlOrEmpty ++ [ 88 gtk2 libwebp enchant libnotify gnutls pcre nettle libidn 89 libxml2 libsecret libxslt harfbuzz libpthreadstubs libtasn1 p11_kit 90 + sqlite gst-plugins-base gst-plugins-bad libxkbcommon epoxy at_spi2_core 91 ] ++ optional enableGeoLocation geoclue2 92 ++ (with xlibs; [ libXdmcp libXt libXtst ]) 93 ++ optionals stdenv.isDarwin [ libedit readline mesa ]
+3 -3
pkgs/development/libraries/wxwidgets/3.0/default.nix
··· 3 , withMesa ? true, mesa_glu ? null, mesa_noglu ? null 4 , compat24 ? false, compat26 ? true, unicode ? true 5 , withGtk2 ? true 6 - , withWebKit ? false, webkitgtk24x-gtk2 ? null, webkitgtk216x ? null 7 , AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null 8 }: 9 10 11 assert withMesa -> mesa_glu != null && mesa_noglu != null; 12 - assert withWebKit -> (if withGtk2 then webkitgtk24x-gtk2 else webkitgtk216x) != null; 13 14 with stdenv.lib; 15 ··· 30 [ (if withGtk2 then gtk2 else gtk3) libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer 31 gst-plugins-base GConf ] 32 ++ optional withMesa mesa_glu 33 - ++ optional withWebKit (if withGtk2 then webkitgtk24x-gtk2 else webkitgtk216x) 34 ++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ]; 35 36 nativeBuildInputs = [ pkgconfig ];
··· 3 , withMesa ? true, mesa_glu ? null, mesa_noglu ? null 4 , compat24 ? false, compat26 ? true, unicode ? true 5 , withGtk2 ? true 6 + , withWebKit ? false, webkitgtk24x-gtk2 ? null, webkitgtk218x ? null 7 , AGL ? null, Carbon ? null, Cocoa ? null, Kernel ? null, QTKit ? null 8 }: 9 10 11 assert withMesa -> mesa_glu != null && mesa_noglu != null; 12 + assert withWebKit -> (if withGtk2 then webkitgtk24x-gtk2 else webkitgtk218x) != null; 13 14 with stdenv.lib; 15 ··· 30 [ (if withGtk2 then gtk2 else gtk3) libXinerama libSM libXxf86vm xf86vidmodeproto gstreamer 31 gst-plugins-base GConf ] 32 ++ optional withMesa mesa_glu 33 + ++ optional withWebKit (if withGtk2 then webkitgtk24x-gtk2 else webkitgtk218x) 34 ++ optionals stdenv.isDarwin [ setfile Carbon Cocoa Kernel QTKit ]; 35 36 nativeBuildInputs = [ pkgconfig ];
+11 -8
pkgs/development/perl-modules/DBD-SQLite/default.nix
··· 1 { stdenv, fetchurl, buildPerlPackage, DBI, sqlite }: 2 3 buildPerlPackage rec { 4 - name = "DBD-SQLite-1.50"; 5 6 src = fetchurl { 7 url = "mirror://cpan/authors/id/I/IS/ISHIGAKI/${name}.tar.gz"; 8 - sha256 = "1qcw2nzla03ywrl6mx1qklvbc8n5bn4gxqbjnvadfkwlffmi7i9s"; 9 }; 10 11 propagatedBuildInputs = [ DBI ]; 12 - 13 - makeMakerFlags = "SQLITE_LOCATION=${sqlite.dev}"; 14 15 patches = [ 16 # Support building against our own sqlite. 17 ./external-sqlite.patch 18 ]; 19 20 - sqlite_dev = sqlite.dev; 21 - sqlite_out = sqlite.out; 22 - postPatch = "substituteAllInPlace Makefile.PL; cat Makefile.PL"; 23 24 preBuild = 25 '' ··· 39 # (e.g. "database is locked(5) at dbdimp.c line 402 at t/07busy.t"). 40 #doCheck = false; 41 42 - meta.platforms = stdenv.lib.platforms.unix; 43 }
··· 1 { stdenv, fetchurl, buildPerlPackage, DBI, sqlite }: 2 3 buildPerlPackage rec { 4 + name = "DBD-SQLite-${version}"; 5 + version = "1.54"; 6 7 src = fetchurl { 8 url = "mirror://cpan/authors/id/I/IS/ISHIGAKI/${name}.tar.gz"; 9 + sha256 = "3929a6dbd8d71630f0cb57f85dcef9588cd7ac4c9fa12db79df77b9d3a4d7269"; 10 }; 11 12 propagatedBuildInputs = [ DBI ]; 13 + buildInputs = [ sqlite ]; 14 15 patches = [ 16 # Support building against our own sqlite. 17 ./external-sqlite.patch 18 ]; 19 20 + SQLITE_INC = sqlite.dev + "/include"; 21 + SQLITE_LIB = sqlite.out + "/lib"; 22 23 preBuild = 24 '' ··· 38 # (e.g. "database is locked(5) at dbdimp.c line 402 at t/07busy.t"). 39 #doCheck = false; 40 41 + meta = with stdenv.lib; { 42 + description = "Self Contained SQLite RDBMS in a DBI Driver"; 43 + license = with licenses; [ artistic1 gpl1Plus ]; 44 + platforms = platforms.unix; 45 + }; 46 }
+7 -29
pkgs/development/perl-modules/DBD-SQLite/external-sqlite.patch
··· 1 - diff --git a/Makefile.PL b/Makefile.PL 2 - index 606b28d..0cea060 100644 3 - --- a/Makefile.PL 4 - +++ b/Makefile.PL 5 - @@ -128,24 +128,10 @@ SCOPE: { 6 - # the system SQLite. We expect that anyone sophisticated enough to use 7 # a system sqlite is also sophisticated enough to have a patching system 8 # that can change the if ( 0 ) to if ( 1 ) 9 - -my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc); 10 -if ( 0 ) { 11 - - require File::Spec; 12 - - if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) { 13 - - $sqlite_base =~ /=(.*)/; 14 - - $sqlite_base = $1; 15 - - $sqlite_lib = File::Spec->catdir( $sqlite_base, 'lib' ); 16 - - $sqlite_inc = File::Spec->catdir( $sqlite_base, 'include' ); 17 - - } 18 - - if ( $sqlite_local = (grep(/USE_LOCAL_SQLITE=.*/, @ARGV))[0] ) { 19 - - $sqlite_local =~ /=(.*)/; 20 - - $sqlite_local = "$1" ? 1 : 0; 21 - - if ( $sqlite_local ) { 22 - - # Keep these from making into CFLAGS/LDFLAGS 23 - - undef $sqlite_lib; 24 - - undef $sqlite_inc; 25 - - } 26 - - } 27 - +my ($sqlite_local, $sqlite_lib, $sqlite_inc); 28 +if ( 1 ) { 29 - + $sqlite_lib = '@sqlite_out@/lib'; 30 - + $sqlite_inc = '@sqlite_dev@/include'; 31 - 32 - # Now check for a compatible sqlite3 33 - unless ( $sqlite_local ) {
··· 1 + --- a/Makefile.PL 2016-04-21 15:44:34.000000000 +0200 2 + +++ b/Makefile.PL 2017-10-31 11:04:28.389959946 +0100 3 + @@ -129,7 +129,7 @@ 4 # a system sqlite is also sophisticated enough to have a patching system 5 # that can change the if ( 0 ) to if ( 1 ) 6 + my ($sqlite_local, $sqlite_base, $sqlite_lib, $sqlite_inc); 7 -if ( 0 ) { 8 +if ( 1 ) { 9 + require File::Spec; 10 + if ( $sqlite_base = (grep(/SQLITE_LOCATION=.*/, @ARGV))[0] ) { 11 + $sqlite_base =~ /=(.*)/;
+3
pkgs/development/tools/build-managers/cmake/setup-hook.sh
··· 84 -L*) 85 export CMAKE_LIBRARY_PATH="$CMAKE_LIBRARY_PATH${CMAKE_LIBRARY_PATH:+:}${flag:2}" 86 ;; 87 -isystem) 88 isystem_seen=1 89 ;;
··· 84 -L*) 85 export CMAKE_LIBRARY_PATH="$CMAKE_LIBRARY_PATH${CMAKE_LIBRARY_PATH:+:}${flag:2}" 86 ;; 87 + -F*) 88 + export CMAKE_FRAMEWORK_PATH="$CMAKE_FRAMEWORK_PATH${CMAKE_FRAMEWORK_PATH:+:}${flag:2}" 89 + ;; 90 -isystem) 91 isystem_seen=1 92 ;;
+1
pkgs/development/tools/build-managers/gnumake/4.2/default.nix
··· 19 # and /usr/lib. It's a stupid feature anyway. Likewise, when searching for 20 # included Makefiles, don't look in /usr/include and friends. 21 ./impure-dirs.patch 22 ]; 23 24 nativeBuildInputs = [ pkgconfig ];
··· 19 # and /usr/lib. It's a stupid feature anyway. Likewise, when searching for 20 # included Makefiles, don't look in /usr/include and friends. 21 ./impure-dirs.patch 22 + ./pselect.patch 23 ]; 24 25 nativeBuildInputs = [ pkgconfig ];
+170
pkgs/development/tools/build-managers/gnumake/4.2/pselect.patch
···
··· 1 + From b552b05251980f693c729e251f93f5225b400714 Mon Sep 17 00:00:00 2001 2 + From: Paul Smith <psmith@gnu.org> 3 + Date: Sat, 3 Jun 2017 16:20:51 -0400 4 + Subject: [SV 51159] Use a non-blocking read with pselect to avoid hangs. 5 + 6 + * posixos.c (set_blocking): Set blocking on a file descriptor. 7 + (jobserver_setup): Set non-blocking on the jobserver read side. 8 + (jobserver_parse_auth): Ditto. 9 + (jobserver_acquire_all): Set blocking to avoid a busy-wait loop. 10 + (jobserver_acquire): If the non-blocking read() returns without 11 + taking a token then try again. 12 + --- 13 + posixos.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++----------------- 14 + 1 file changed, 71 insertions(+), 26 deletions(-) 15 + 16 + diff --git posixos.c posixos.c 17 + index e642d7f..dbafa51 100644 18 + --- posixos.c 19 + +++ posixos.c 20 + @@ -62,6 +62,24 @@ make_job_rfd (void) 21 + #endif 22 + } 23 + 24 + +static void 25 + +set_blocking (int fd, int blocking) 26 + +{ 27 + + // If we're not using pselect() don't change the blocking 28 + +#ifdef HAVE_PSELECT 29 + + int flags; 30 + + EINTRLOOP (flags, fcntl (fd, F_GETFL)); 31 + + if (flags >= 0) 32 + + { 33 + + int r; 34 + + flags = blocking ? (flags & ~O_NONBLOCK) : (flags | O_NONBLOCK); 35 + + EINTRLOOP (r, fcntl (fd, F_SETFL, flags)); 36 + + if (r < 0) 37 + + pfatal_with_name ("fcntl(O_NONBLOCK)"); 38 + + } 39 + +#endif 40 + +} 41 + + 42 + unsigned int 43 + jobserver_setup (int slots) 44 + { 45 + @@ -86,6 +104,9 @@ jobserver_setup (int slots) 46 + pfatal_with_name (_("init jobserver pipe")); 47 + } 48 + 49 + + /* When using pselect() we want the read to be non-blocking. */ 50 + + set_blocking (job_fds[0], 0); 51 + + 52 + return 1; 53 + } 54 + 55 + @@ -121,6 +142,9 @@ jobserver_parse_auth (const char *auth) 56 + return 0; 57 + } 58 + 59 + + /* When using pselect() we want the read to be non-blocking. */ 60 + + set_blocking (job_fds[0], 0); 61 + + 62 + return 1; 63 + } 64 + 65 + @@ -169,7 +193,10 @@ jobserver_acquire_all (void) 66 + { 67 + unsigned int tokens = 0; 68 + 69 + - /* Close the write side, so the read() won't hang. */ 70 + + /* Use blocking reads to wait for all outstanding jobs. */ 71 + + set_blocking (job_fds[0], 1); 72 + + 73 + + /* Close the write side, so the read() won't hang forever. */ 74 + close (job_fds[1]); 75 + job_fds[1] = -1; 76 + 77 + @@ -236,18 +263,12 @@ jobserver_pre_acquire (void) 78 + unsigned int 79 + jobserver_acquire (int timeout) 80 + { 81 + - sigset_t empty; 82 + - fd_set readfds; 83 + struct timespec spec; 84 + struct timespec *specp = NULL; 85 + - int r; 86 + - char intake; 87 + + sigset_t empty; 88 + 89 + sigemptyset (&empty); 90 + 91 + - FD_ZERO (&readfds); 92 + - FD_SET (job_fds[0], &readfds); 93 + - 94 + if (timeout) 95 + { 96 + /* Alarm after one second (is this too granular?) */ 97 + @@ -256,28 +277,52 @@ jobserver_acquire (int timeout) 98 + specp = &spec; 99 + } 100 + 101 + - r = pselect (job_fds[0]+1, &readfds, NULL, NULL, specp, &empty); 102 + - 103 + - if (r == -1) 104 + + while (1) 105 + { 106 + - /* Better be SIGCHLD. */ 107 + - if (errno != EINTR) 108 + - pfatal_with_name (_("pselect jobs pipe")); 109 + - return 0; 110 + - } 111 + + fd_set readfds; 112 + + int r; 113 + + char intake; 114 + 115 + - if (r == 0) 116 + - /* Timeout. */ 117 + - return 0; 118 + + FD_ZERO (&readfds); 119 + + FD_SET (job_fds[0], &readfds); 120 + 121 + - /* The read FD is ready: read it! */ 122 + - EINTRLOOP (r, read (job_fds[0], &intake, 1)); 123 + - if (r < 0) 124 + - pfatal_with_name (_("read jobs pipe")); 125 + + r = pselect (job_fds[0]+1, &readfds, NULL, NULL, specp, &empty); 126 + + if (r < 0) 127 + + switch (errno) 128 + + { 129 + + case EINTR: 130 + + /* SIGCHLD will show up as an EINTR. */ 131 + + return 0; 132 + + 133 + + case EBADF: 134 + + /* Someone closed the jobs pipe. 135 + + That shouldn't happen but if it does we're done. */ 136 + + O (fatal, NILF, _("job server shut down")); 137 + 138 + - /* What does it mean if read() returns 0? It shouldn't happen because only 139 + - the master make can reap all the tokens and close the write side...?? */ 140 + - return r > 0; 141 + + default: 142 + + pfatal_with_name (_("pselect jobs pipe")); 143 + + } 144 + + 145 + + if (r == 0) 146 + + /* Timeout. */ 147 + + return 0; 148 + + 149 + + /* The read FD is ready: read it! This is non-blocking. */ 150 + + EINTRLOOP (r, read (job_fds[0], &intake, 1)); 151 + + 152 + + if (r < 0) 153 + + { 154 + + /* Someone sniped our token! Try again. */ 155 + + if (errno == EAGAIN) 156 + + continue; 157 + + 158 + + pfatal_with_name (_("read jobs pipe")); 159 + + } 160 + + 161 + + /* read() should never return 0: only the master make can reap all the 162 + + tokens and close the write side...?? */ 163 + + return r > 0; 164 + + } 165 + } 166 + 167 + #else 168 + -- 169 + cgit v1.0-41-gc330 170 +
+5 -1
pkgs/os-specific/darwin/apple-source-releases/default.nix
··· 144 appleDerivation_ = name: version: sha256: attrs: stdenv.mkDerivation ({ 145 inherit version; 146 name = "${name}-${version}"; 147 } // (if attrs ? srcs then {} else { 148 src = fetchApple version sha256 name; 149 }) // attrs); ··· 153 name = builtins.elemAt (stdenv.lib.splitString "/" namePath) 0; 154 appleDerivation = appleDerivation_ name version sha256; 155 callPackage = pkgs.newScope (packages // pkgs.darwin // { inherit appleDerivation name version; }); 156 - in callPackage (./. + builtins.toPath "/${namePath}"); 157 158 libsecPackage = pkgs.callPackage ./libsecurity_generic { 159 inherit applePackage appleDerivation_;
··· 144 appleDerivation_ = name: version: sha256: attrs: stdenv.mkDerivation ({ 145 inherit version; 146 name = "${name}-${version}"; 147 + enableParallelBuilding = true; 148 + meta = { 149 + platforms = stdenv.lib.platforms.darwin; 150 + }; 151 } // (if attrs ? srcs then {} else { 152 src = fetchApple version sha256 name; 153 }) // attrs); ··· 157 name = builtins.elemAt (stdenv.lib.splitString "/" namePath) 0; 158 appleDerivation = appleDerivation_ name version sha256; 159 callPackage = pkgs.newScope (packages // pkgs.darwin // { inherit appleDerivation name version; }); 160 + in callPackage (./. + "/${namePath}"); 161 162 libsecPackage = pkgs.callPackage ./libsecurity_generic { 163 inherit applePackage appleDerivation_;
-4
pkgs/os-specific/darwin/apple-source-releases/xnu/default.nix
··· 127 mkdir $out/Library/PrivateFrameworks 128 mv $out/Library/Frameworks/IOKit.framework $out/Library/PrivateFrameworks 129 ''; 130 - 131 - meta = { 132 - platforms = stdenv.lib.platforms.darwin; 133 - }; 134 }
··· 127 mkdir $out/Library/PrivateFrameworks 128 mv $out/Library/Frameworks/IOKit.framework $out/Library/PrivateFrameworks 129 ''; 130 }
+1 -2
pkgs/os-specific/linux/libcap/default.nix
··· 30 31 # ensure capsh can find bash in $PATH 32 substituteInPlace progs/capsh.c --replace execve execvpe 33 - ''; 34 35 - preInstall = '' 36 substituteInPlace Make.Rules \ 37 --replace 'prefix=/usr' "prefix=$lib" \ 38 --replace 'exec_prefix=' "exec_prefix=$out" \
··· 30 31 # ensure capsh can find bash in $PATH 32 substituteInPlace progs/capsh.c --replace execve execvpe 33 34 + # set prefixes 35 substituteInPlace Make.Rules \ 36 --replace 'prefix=/usr' "prefix=$lib" \ 37 --replace 'exec_prefix=' "exec_prefix=$out" \
+3 -3
pkgs/os-specific/linux/util-linux/default.nix
··· 4 let 5 version = lib.concatStringsSep "." ([ majorVersion ] 6 ++ lib.optional (patchVersion != "") patchVersion); 7 - majorVersion = "2.30"; 8 - patchVersion = "2"; 9 10 in stdenv.mkDerivation rec { 11 name = "util-linux-${version}"; 12 13 src = fetchurl { 14 url = "mirror://kernel/linux/utils/util-linux/v${majorVersion}/${name}.tar.xz"; 15 - sha256 = "1p494mwd8v6p6mpmmjybkc7bz1qwp9x4cdi8hdvp2nwvkr4fanvv"; 16 }; 17 18 patches = [
··· 4 let 5 version = lib.concatStringsSep "." ([ majorVersion ] 6 ++ lib.optional (patchVersion != "") patchVersion); 7 + majorVersion = "2.31"; 8 + patchVersion = ""; 9 10 in stdenv.mkDerivation rec { 11 name = "util-linux-${version}"; 12 13 src = fetchurl { 14 url = "mirror://kernel/linux/utils/util-linux/v${majorVersion}/${name}.tar.xz"; 15 + sha256 = "12nw108xjhm63sh2n5a0qs33vpvbvb6rln96l9j50p7wykf7rgpr"; 16 }; 17 18 patches = [
+2 -2
pkgs/tools/cd-dvd/cdrdao/default.nix
··· 1 - {stdenv, fetchurl, lame, libvorbis, libmad, pkgconfig, libao}: 2 3 stdenv.mkDerivation { 4 name = "cdrdao-1.2.3"; ··· 11 makeFlags = "RM=rm LN=ln MV=mv"; 12 13 nativeBuildInputs = [ pkgconfig ]; 14 - buildInputs = [ lame libvorbis libmad libao ]; 15 16 hardeningDisable = [ "format" ]; 17
··· 1 + {stdenv, fetchurl, libvorbis, libmad, pkgconfig, libao}: 2 3 stdenv.mkDerivation { 4 name = "cdrdao-1.2.3"; ··· 11 makeFlags = "RM=rm LN=ln MV=mv"; 12 13 nativeBuildInputs = [ pkgconfig ]; 14 + buildInputs = [ libvorbis libmad libao ]; 15 16 hardeningDisable = [ "format" ]; 17
+2 -2
pkgs/tools/networking/curl/default.nix
··· 21 assert c-aresSupport -> c-ares != null; 22 23 stdenv.mkDerivation rec { 24 - name = "curl-7.56.0"; 25 26 src = fetchurl { 27 url = "http://curl.haxx.se/download/${name}.tar.bz2"; 28 - sha256 = "1pvr2bqfhk46bzq2x2hskmnq3wc8qxlps7apm9q1qiixb9ra8q6y"; 29 }; 30 31 outputs = [ "bin" "dev" "out" "man" "devdoc" ];
··· 21 assert c-aresSupport -> c-ares != null; 22 23 stdenv.mkDerivation rec { 24 + name = "curl-7.56.1"; 25 26 src = fetchurl { 27 url = "http://curl.haxx.se/download/${name}.tar.bz2"; 28 + sha256 = "142zidvlmrz31yx480nrhh47hl01d7jbaagin23pspl7cw1ng515"; 29 }; 30 31 outputs = [ "bin" "dev" "out" "man" "devdoc" ];
+2 -2
pkgs/tools/networking/unbound/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 name = "unbound-${version}"; 5 - version = "1.6.6"; 6 7 src = fetchurl { 8 url = "http://unbound.net/downloads/${name}.tar.gz"; 9 - sha256 = "145kska9a63yf32y3jg91y5ikcmsb7qvbcm7a8k6fgh96gf18awp"; 10 }; 11 12 outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
··· 2 3 stdenv.mkDerivation rec { 4 name = "unbound-${version}"; 5 + version = "1.6.7"; 6 7 src = fetchurl { 8 url = "http://unbound.net/downloads/${name}.tar.gz"; 9 + sha256 = "17qwfmlls0w9kpkya3dlpn44b3kr87wsswzg3gawc13hh8yx8ysf"; 10 }; 11 12 outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB
+8 -10
pkgs/top-level/all-packages.nix
··· 186 187 fetchzip = callPackage ../build-support/fetchzip { }; 188 189 - gitRepoToName = callPackage ../build-support/fetchgit/gitrepotoname.nix { }; 190 - 191 fetchFromGitHub = { 192 - owner, repo, rev, name ? gitRepoToName repo rev, 193 fetchSubmodules ? false, private ? false, 194 githubBase ? "github.com", varPrefix ? null, 195 ... # For hash agility ··· 222 in fetcher fetcherArgs // { meta.homepage = baseUrl; inherit rev; }; 223 224 fetchFromBitbucket = { 225 - owner, repo, rev, name ? gitRepoToName repo rev, 226 ... # For hash agility 227 }@args: fetchzip ({ 228 inherit name; ··· 233 234 # cgit example, snapshot support is optional in cgit 235 fetchFromSavannah = { 236 - repo, rev, name ? gitRepoToName repo rev, 237 ... # For hash agility 238 }@args: fetchzip ({ 239 inherit name; ··· 243 244 # gitlab example 245 fetchFromGitLab = { 246 - owner, repo, rev, name ? gitRepoToName repo rev, 247 ... # For hash agility 248 }@args: fetchzip ({ 249 inherit name; ··· 253 254 # gitweb example, snapshot support is optional in gitweb 255 fetchFromRepoOrCz = { 256 - repo, rev, name ? gitRepoToName repo rev, 257 ... # For hash agility 258 }@args: fetchzip ({ 259 inherit name; ··· 10974 10975 wcslib = callPackage ../development/libraries/wcslib { }; 10976 10977 - webkitgtk = webkitgtk216x; 10978 10979 webkitgtk24x-gtk3 = callPackage ../development/libraries/webkitgtk/2.4.nix { 10980 harfbuzz = harfbuzz-icu-58; ··· 10982 inherit (darwin) libobjc; 10983 }; 10984 10985 - webkitgtk216x = callPackage ../development/libraries/webkitgtk/2.16.nix { 10986 harfbuzz = harfbuzz-icu; 10987 - gst-plugins-base = gst_all_1.gst-plugins-base; 10988 }; 10989 10990 webkitgtk24x-gtk2 = webkitgtk24x-gtk3.override {
··· 186 187 fetchzip = callPackage ../build-support/fetchzip { }; 188 189 fetchFromGitHub = { 190 + owner, repo, rev, name ? "source", 191 fetchSubmodules ? false, private ? false, 192 githubBase ? "github.com", varPrefix ? null, 193 ... # For hash agility ··· 220 in fetcher fetcherArgs // { meta.homepage = baseUrl; inherit rev; }; 221 222 fetchFromBitbucket = { 223 + owner, repo, rev, name ? "source", 224 ... # For hash agility 225 }@args: fetchzip ({ 226 inherit name; ··· 231 232 # cgit example, snapshot support is optional in cgit 233 fetchFromSavannah = { 234 + repo, rev, name ? "source", 235 ... # For hash agility 236 }@args: fetchzip ({ 237 inherit name; ··· 241 242 # gitlab example 243 fetchFromGitLab = { 244 + owner, repo, rev, name ? "source", 245 ... # For hash agility 246 }@args: fetchzip ({ 247 inherit name; ··· 251 252 # gitweb example, snapshot support is optional in gitweb 253 fetchFromRepoOrCz = { 254 + repo, rev, name ? "source", 255 ... # For hash agility 256 }@args: fetchzip ({ 257 inherit name; ··· 10972 10973 wcslib = callPackage ../development/libraries/wcslib { }; 10974 10975 + webkitgtk = webkitgtk218x; 10976 10977 webkitgtk24x-gtk3 = callPackage ../development/libraries/webkitgtk/2.4.nix { 10978 harfbuzz = harfbuzz-icu-58; ··· 10980 inherit (darwin) libobjc; 10981 }; 10982 10983 + webkitgtk218x = callPackage ../development/libraries/webkitgtk/2.18.nix { 10984 harfbuzz = harfbuzz-icu; 10985 + inherit (gst_all_1) gst-plugins-base gst-plugins-bad; 10986 }; 10987 10988 webkitgtk24x-gtk2 = webkitgtk24x-gtk3.override {