Merge remote-tracking branch 'upstream/staging' into master

+104 -106
+16 -10
pkgs/build-support/cc-wrapper/setup-hook.sh
··· 97 97 # setup-hook, which `role` tracks. 98 98 if [ -n "${crossConfig:-}" ]; then 99 99 export NIX_CC_WRAPPER_@infixSalt@_TARGET_BUILD=1 100 - role="BUILD_" 100 + role_pre='BUILD_' 101 + role_post='_FOR_BUILD' 101 102 else 102 103 export NIX_CC_WRAPPER_@infixSalt@_TARGET_HOST=1 103 - role="" 104 + role_pre='' 105 + role_post='' 104 106 fi 105 107 106 108 # Eventually the exact sort of env-hook we create will depend on the role. This ··· 133 135 134 136 # Export tool environment variables so various build systems use the right ones. 135 137 136 - export NIX_${role}CC=@out@ 138 + export NIX_${role_pre}CC=@out@ 137 139 138 - export ${role}CC=@named_cc@ 139 - export ${role}CXX=@named_cxx@ 140 + export ${role_pre}CC=@named_cc@ 141 + export ${role_pre}CXX=@named_cxx@ 142 + export CC${role_post}=@named_cc@ 143 + export CXX${role_post}=@named_cxx@ 140 144 141 - for CMD in \ 142 - ar as nm objcopy ranlib strip strings size ld windres 145 + for cmd in \ 146 + ar as ld nm objcopy objdump readelf ranlib strip strings size windres 143 147 do 144 148 if 145 - PATH=$_PATH type -p "@targetPrefix@$CMD" > /dev/null 149 + PATH=$_PATH type -p "@targetPrefix@${cmd}" > /dev/null 146 150 then 147 - export "${role}$(echo "$CMD" | tr "[:lower:]" "[:upper:]")=@targetPrefix@${CMD}"; 151 + upper_case="$(echo "$cmd" | tr "[:lower:]" "[:upper:]")" 152 + export "${role_pre}${upper_case}=@targetPrefix@${cmd}"; 153 + export "${upper_case}${role_post}=@targetPrefix@${cmd}"; 148 154 fi 149 155 done 150 156 151 157 # No local scope in sourced file 152 - unset role 158 + unset -v role_pre role_post cmd upper_case
+2
pkgs/data/misc/tzdata/default.nix
··· 41 41 cp tzfile.h "$dev/include/tzfile.h" 42 42 ''; 43 43 44 + setupHook = ./tzdata-setup-hook.sh; 45 + 44 46 meta = { 45 47 homepage = http://www.iana.org/time-zones; 46 48 description = "Database of current and historical time zones";
+6
pkgs/data/misc/tzdata/tzdata-setup-hook.sh
··· 1 + tzdataHook() { 2 + export TZDIR=@out@/share/zoneinfo 3 + } 4 + 5 + envHooks+=(tzdataHook) 6 + crossEnvHooks+=(tzdataHook)
+13 -13
pkgs/development/compilers/gcc/4.8/default.nix
··· 115 115 gccFpu = platform.gcc.fpu or null; 116 116 gccFloat = platform.gcc.float or null; 117 117 gccMode = platform.gcc.mode or null; 118 - in 118 + in 119 119 optional (gccArch != null) "--with-arch=${gccArch}" ++ 120 120 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++ 121 121 optional (gccAbi != null) "--with-abi=${gccAbi}" ++ ··· 186 186 stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final"; 187 187 crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else ""; 188 188 189 - bootstrap = targetPlatform == hostPlatform && !hostPlatform.isArm && !hostPlatform.isMips; 189 + bootstrap = targetPlatform == hostPlatform; 190 190 191 191 in 192 192 ··· 343 343 }" 344 344 ] ++ 345 345 346 - # Optional features 347 - optional (isl != null) "--with-isl=${isl}" ++ 348 - optionals (cloog != null) [ 349 - "--with-cloog=${cloog}" 350 - "--disable-cloog-version-check" 351 - "--enable-cloog-backend=isl" 352 - ] ++ 353 - 354 346 (if enableMultilib 355 347 then ["--enable-multilib" "--disable-libquadmath"] 356 348 else ["--disable-multilib"]) ++ ··· 359 351 then ["--enable-plugin"] 360 352 else ["--disable-plugin"]) ++ 361 353 354 + # Optional features 355 + optional (isl != null) "--with-isl=${isl}" ++ 356 + optionals (cloog != null) [ 357 + "--with-cloog=${cloog}" 358 + "--disable-cloog-version-check" 359 + "--enable-cloog-backend=isl" 360 + ] ++ 361 + 362 362 # Java options 363 363 optionals langJava [ 364 364 "--with-ecj-jar=${javaEcj}" ··· 422 422 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 423 423 NM_FOR_TARGET = "${targetPlatform.config}-nm"; 424 424 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 425 - # If we are making a cross compiler, cross != null 425 + # If we are making a cross compiler, targetPlatform != hostPlatform 426 426 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 427 427 dontStrip = true; 428 428 configureFlags = ··· 431 431 optional langJava "--with-ecj-jar=${javaEcj.crossDrv}" ++ 432 432 optional javaAwtGtk "--enable-java-awt=gtk" ++ 433 433 optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr.crossDrv}" ++ 434 - optional (cloog != null) "--with-cloog=${cloog.crossDrv} --enable-cloog-backend=isl" ++ 434 + optionals (cloog != null) ["--with-cloog=${cloog.crossDrv}" "--enable-cloog-backend=isl"] ++ 435 435 [ 436 436 "--with-gmp=${gmp.crossDrv}" 437 437 "--with-mpfr=${mpfr.crossDrv}" ··· 502 502 503 503 EXTRA_TARGET_CFLAGS = 504 504 if targetPlatform != hostPlatform && libcCross != null then [ 505 - "-idirafter ${libcCross.dev}/include" 505 + "-idirafter ${getDev libcCross}/include" 506 506 ] 507 507 ++ optionals (! crossStageStatic) [ 508 508 "-B${libcCross.out}/lib"
+4 -4
pkgs/development/compilers/gcc/4.9/default.nix
··· 106 106 gccFpu = platform.gcc.fpu or null; 107 107 gccFloat = platform.gcc.float or null; 108 108 gccMode = platform.gcc.mode or null; 109 - in 109 + in 110 110 optional (gccArch != null) "--with-arch=${gccArch}" ++ 111 111 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++ 112 112 optional (gccAbi != null) "--with-abi=${gccAbi}" ++ ··· 421 421 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 422 422 NM_FOR_TARGET = "${targetPlatform.config}-nm"; 423 423 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 424 - # If we are making a cross compiler, cross != null 424 + # If we are making a cross compiler, targetPlatform != hostPlatform 425 425 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 426 426 dontStrip = true; 427 427 configureFlags = ··· 430 430 optional langJava "--with-ecj-jar=${javaEcj.crossDrv}" ++ 431 431 optional javaAwtGtk "--enable-java-awt=gtk" ++ 432 432 optional (langJava && javaAntlr != null) "--with-antlr-jar=${javaAntlr.crossDrv}" ++ 433 - optional (cloog != null) "--with-cloog=${cloog.crossDrv}" "--enable-cloog-backend=isl" ++ 433 + optionals (cloog != null) ["--with-cloog=${cloog.crossDrv}" "--enable-cloog-backend=isl"] ++ 434 434 [ 435 435 "--with-gmp=${gmp.crossDrv}" 436 436 "--with-mpfr=${mpfr.crossDrv}" ··· 501 501 502 502 EXTRA_TARGET_CFLAGS = 503 503 if targetPlatform != hostPlatform && libcCross != null then [ 504 - "-idirafter ${libcCross.dev}/include" 504 + "-idirafter ${getDev libcCross}/include" 505 505 ] 506 506 ++ optionals (! crossStageStatic) [ 507 507 "-B${libcCross.out}/lib"
+8 -8
pkgs/development/compilers/gcc/5/default.nix
··· 110 110 gccFpu = platform.gcc.fpu or null; 111 111 gccFloat = platform.gcc.float or null; 112 112 gccMode = platform.gcc.mode or null; 113 - in 113 + in 114 114 optional (gccArch != null) "--with-arch=${gccArch}" ++ 115 115 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++ 116 116 optional (gccAbi != null) "--with-abi=${gccAbi}" ++ ··· 201 201 inherit sha256; 202 202 }; 203 203 204 - hardeningDisable = [ "format" ]; 205 - 206 204 inherit patches; 207 205 208 206 outputs = [ "out" "lib" "man" "info" ]; ··· 210 208 NIX_NO_SELF_RPATH = true; 211 209 212 210 libc_dev = stdenv.cc.libc_dev; 211 + 212 + hardeningDisable = [ "format" ]; 213 213 214 214 # This should kill all the stdinc frameworks that gcc and friends like to 215 215 # insert into default search paths. ··· 356 356 }" 357 357 ] ++ 358 358 359 - # Optional features 360 - optional (isl != null) "--with-isl=${isl}" ++ 361 - 362 359 (if enableMultilib 363 360 then ["--enable-multilib" "--disable-libquadmath"] 364 361 else ["--disable-multilib"]) ++ ··· 366 363 (if enablePlugin 367 364 then ["--enable-plugin"] 368 365 else ["--disable-plugin"]) ++ 366 + 367 + # Optional features 368 + optional (isl != null) "--with-isl=${isl}" ++ 369 369 370 370 # Java options 371 371 optionals langJava [ ··· 431 431 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 432 432 NM_FOR_TARGET = "${targetPlatform.config}-nm"; 433 433 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 434 - # If we are making a cross compiler, cross != null 434 + # If we are making a cross compiler, targetPlatform != hostPlatform 435 435 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 436 436 dontStrip = true; 437 437 configureFlags = ··· 490 490 491 491 CPATH = makeSearchPathOutput "dev" "include" ([] 492 492 ++ optional (zlib != null) zlib 493 - ++ optionals langJava [ boehmgc ] 493 + ++ optional langJava boehmgc 494 494 ++ optionals javaAwtGtk xlibs 495 495 ++ optionals javaAwtGtk [ gmp mpfr ] 496 496 ++ optional (libpthread != null) libpthread
+5 -4
pkgs/development/compilers/gcc/6/default.nix
··· 181 181 stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final"; 182 182 crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else ""; 183 183 184 - bootstrap = targetPlatform == hostPlatform; 184 + bootstrap = targetPlatform == hostPlatform; 185 185 186 186 in 187 187 ··· 383 383 # Ada 384 384 optional langAda "--enable-libada" ++ 385 385 386 - # Cross compilation 386 + # Cross-compilation 387 387 optional (targetPlatform == hostPlatform) ( 388 388 let incDir = if hostPlatform.isDarwin 389 389 then "${darwin.usr-include}" ··· 391 391 in "--with-native-system-header-dir=${incDir}" 392 392 ) ++ 393 393 394 + optional (targetPlatform == hostPlatform) (mkPlatformFlags stdenv.platform) ++ 394 395 optional (targetPlatform != hostPlatform) crossConfigureFlags ++ 395 396 optional (!bootstrap) "--disable-bootstrap" ++ 396 397 397 398 # Platform-specific flags 398 399 optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++ 399 - optionals (hostPlatform.isSunOS) [ 400 + optionals hostPlatform.isSunOS [ 400 401 "--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit" 401 402 # On Illumos/Solaris GNU as is preferred 402 403 "--with-gnu-as" "--without-gnu-ld" ··· 430 431 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 431 432 NM_FOR_TARGET = "${targetPlatform.config}-nm"; 432 433 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 433 - # If we are making a cross compiler, cross != null 434 + # If we are making a cross compiler, targetPlatform != hostPlatform 434 435 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 435 436 dontStrip = true; 436 437 configureFlags =
+2 -2
pkgs/development/compilers/gcc/7/default.nix
··· 105 105 gccFpu = platform.gcc.fpu or null; 106 106 gccFloat = platform.gcc.float or null; 107 107 gccMode = platform.gcc.mode or null; 108 - in 108 + in 109 109 optional (gccArch != null) "--with-arch=${gccArch}" ++ 110 110 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++ 111 111 optional (gccAbi != null) "--with-abi=${gccAbi}" ++ ··· 426 426 NM_FOR_TARGET = "${targetPlatform.config}-nm"; 427 427 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 428 428 # If we are making a cross compiler, targetPlatform != hostPlatform 429 - NIX_CC_CROSS = if targetPlatform == hostPlatform then "${stdenv.ccCross}" else ""; 429 + NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 430 430 dontStrip = true; 431 431 configureFlags = 432 432 optional (!enableMultilib) "--disable-multilib" ++
+2 -2
pkgs/development/compilers/gcc/snapshot/default.nix
··· 105 105 gccFpu = platform.gcc.fpu or null; 106 106 gccFloat = platform.gcc.float or null; 107 107 gccMode = platform.gcc.mode or null; 108 - in 108 + in 109 109 optional (gccArch != null) "--with-arch=${gccArch}" ++ 110 110 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++ 111 111 optional (gccAbi != null) "--with-abi=${gccAbi}" ++ ··· 412 412 CC_FOR_TARGET = "${targetPlatform.config}-gcc"; 413 413 NM_FOR_TARGET = "${targetPlatform.config}-nm"; 414 414 CXX_FOR_TARGET = "${targetPlatform.config}-g++"; 415 - # If we are making a cross compiler, cross != null 415 + # If we are making a cross compiler, targetPlatform != hostPlatform 416 416 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc; 417 417 dontStrip = true; 418 418 configureFlags =
+2 -1
pkgs/development/compilers/orc/default.nix
··· 15 15 sed "/^toolsdir=/ctoolsdir=$dev/bin" -i "$dev"/lib/pkgconfig/orc*.pc 16 16 ''; 17 17 18 - doCheck = true; 18 + # https://bugzilla.gnome.org/show_bug.cgi?id=728129#c15 19 + doCheck = stdenv.system != "i686-linux"; # not sure about cross-compiling 19 20 20 21 meta = with stdenv.lib; { 21 22 description = "The Oil Runtime Compiler";
+3 -2
pkgs/development/libraries/libmicrohttpd/default.nix
··· 1 1 { stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig, libiconv, libintlOrEmpty }: 2 2 3 3 stdenv.mkDerivation rec { 4 - name = "libmicrohttpd-0.9.55"; 4 + name = "libmicrohttpd-${version}"; 5 + version = "0.9.57"; 5 6 6 7 src = fetchurl { 7 8 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; 8 - sha256 = "1y6h1slav5l6k8zyb01dpw65dscdgxxgfa3a0z9qnn7jr66sn70c"; 9 + sha256 = "0kmgkk9sjg1n3q7rbzw5y4qmgh51zn5qi2j69gbqmr6phxjaghfy"; 9 10 }; 10 11 11 12 outputs = [ "out" "dev" "devdoc" "info" ];
+12 -3
pkgs/development/libraries/libsoup/default.nix
··· 1 - { stdenv, fetchurl, glib, libxml2, pkgconfig 1 + { stdenv, fetchurl, fetchpatch, glib, libxml2, pkgconfig 2 2 , gnomeSupport ? true, libgnome_keyring3, sqlite, glib_networking, gobjectIntrospection 3 3 , valaSupport ? true, vala_0_38 4 4 , libintlOrEmpty 5 5 , intltool, python }: 6 6 let 7 7 majorVersion = "2.60"; 8 - version = "${majorVersion}.0"; 8 + version = "${majorVersion}.2"; 9 9 in 10 10 stdenv.mkDerivation { 11 11 name = "libsoup-${version}"; 12 12 13 13 src = fetchurl { 14 14 url = "mirror://gnome/sources/libsoup/${majorVersion}/libsoup-${version}.tar.xz"; 15 - sha256 = "b324edbecda0884143c0853b4a2bd5bd37fb3761f12f293c621ff34b9acdc84c"; 15 + sha256 = "7263cfe18872e2e652c196f5667e514616d9c97c861dfca82a65a55f45f0da01"; 16 16 }; 17 17 18 18 prePatch = '' ··· 21 21 '' 22 22 substituteInPlace libsoup/Makefile.in --replace "\$(DESTDIR)\$(vapidir)" "\$(DESTDIR)\$(girdir)/../vala/vapi" 23 23 ''; 24 + 25 + patches = [ 26 + # remove for >= 2.60.3 27 + (fetchpatch { 28 + name = "buffer-overflow.patch"; # https://bugzilla.gnome.org/show_bug.cgi?id=788037 29 + url = "https://git.gnome.org/browse/libsoup/patch/?id=b79689833ba"; 30 + sha256 = "1azbk540mbm4c6ip54ixbg9d6w7nkls9y81fzm3csq9a5786r3d3"; 31 + }) 32 + ]; 24 33 25 34 outputs = [ "out" "dev" ]; 26 35
+17 -39
pkgs/development/python-modules/pycairo/default.nix
··· 1 - { lib, fetchurl, fetchpatch, python, buildPythonPackage, pkgconfig, cairo, xlibsWrapper, isPyPy, isPy35, isPy36, isPy3k }: 2 - 3 - if (isPyPy) then throw "pycairo not supported for interpreter ${python.executable}" else let 4 - 5 - patch_waf = fetchpatch { 6 - url = http://www.linuxfromscratch.org/patches/blfs/8.0/pycairo-1.10.0-waf_python_3_4-1.patch; 7 - sha256 = "0xfl1i9dips2nykyg91f5h5r3xpk2hp1js1gq5z0hwjr0in55id4"; 8 - }; 9 - patch_waf-py3_5 = ./waf-py3_5.patch; 1 + { lib, fetchFromGitHub, python, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPyPy }: 10 2 11 - in buildPythonPackage rec { 3 + buildPythonPackage rec { 12 4 pname = "pycairo"; 13 - version = "1.10.0"; 5 + version = "1.15.4"; 14 6 name = "${pname}-${version}"; 15 - format = "other"; 16 7 17 - src = if isPy3k 18 - then fetchurl { 19 - url = "http://cairographics.org/releases/pycairo-${version}.tar.bz2"; 20 - sha256 = "1gjkf8x6hyx1skq3hhwcbvwifxvrf9qxis5vx8x5igmmgs70g94s"; 21 - } 22 - else fetchurl { 23 - url = "http://cairographics.org/releases/py2cairo-${version}.tar.bz2"; 24 - sha256 = "0cblk919wh6w0pgb45zf48xwxykfif16qk264yga7h9fdkq3j16k"; 25 - }; 8 + disabled = isPyPy; 26 9 27 - patches = [ 28 - (fetchpatch { 29 - url = http://www.linuxfromscratch.org/patches/blfs/8.0/pycairo-1.10.0-waf_unpack-1.patch; 30 - sha256 = "1bmrhq2nmhx4l5glvyi59r0hc7w5m56kz41frx7v3dcp8f91p7xd"; 31 - }) 32 - ]; 10 + src = fetchFromGitHub { 11 + owner = "pygobject"; 12 + repo = "pycairo"; 13 + rev = "v${version}"; 14 + sha256 = "02vzmfxx8nl6dbwzc911wcj7hqspgqz6v9xmq6579vwfla0vaglv"; 15 + }; 16 + 17 + postPatch = '' 18 + # we are unable to pass --prefix to bdist_wheel 19 + # see https://github.com/NixOS/nixpkgs/pull/32034#discussion_r153285955 20 + substituteInPlace setup.py --replace '"prefix": self.install_base' "'prefix': '$out'" 21 + ''; 33 22 34 23 nativeBuildInputs = [ pkgconfig ]; 35 24 buildInputs = [ python cairo xlibsWrapper ]; 36 - 37 - configurePhase = '' 38 - ( 39 - cd $(${python.executable} waf unpack) 40 - patch -p1 < ${patch_waf} 41 - ${lib.optionalString (isPy35 || isPy36) "patch -p1 < ${patch_waf-py3_5}"} 42 - ) 43 - 44 - ${python.executable} waf configure --prefix=$out 45 - ''; 46 - buildPhase = "${python.executable} waf"; 47 - installPhase = "${python.executable} waf install"; 25 + checkInputs = [ pytest ]; 48 26 49 27 meta.platforms = lib.platforms.linux ++ lib.platforms.darwin; 50 28 }
-10
pkgs/development/python-modules/pycairo/waf-py3_5.patch
··· 1 - --- a/waflib/Build.py 2 - +++ b/waflib/Build.py 3 - @@ -151,6 +151,7 @@ class BuildContext(Context.Context): 4 - f.close() 5 - self.init_dirs() 6 - def store(self): 7 - + return 8 - data={} 9 - for x in SAVED_ATTRS: 10 - data[x]=getattr(self,x)
+3 -3
pkgs/development/python-modules/pygobject/3.nix
··· 1 1 { stdenv, fetchurl, buildPythonPackage, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}: 2 2 3 3 buildPythonPackage rec { 4 - major = "3.24"; 4 + major = "3.26"; 5 5 minor = "1"; 6 6 version = "${major}.${minor}"; 7 7 format = "other"; ··· 10 10 11 11 src = fetchurl { 12 12 url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz"; 13 - sha256 = "1zdzznrj2s1gsrv2z4r0n88fzba8zjc1n2r313xi77lhl1daja56"; 13 + sha256 = "1afi0jdjd9sanrzjwhv7z1k7qxlb91fqa6yqc2dbpjkhkjdpnmzm"; 14 14 }; 15 15 16 16 outputs = [ "out" "dev" ]; ··· 21 21 propagatedBuildInputs = [ pycairo cairo ]; 22 22 23 23 meta = { 24 - homepage = http://live.gnome.org/PyGObject; 24 + homepage = https://pygobject.readthedocs.io/; 25 25 description = "Python bindings for Glib"; 26 26 platforms = stdenv.lib.platforms.unix; 27 27 };
+7 -3
pkgs/tools/networking/curl/default.nix
··· 8 8 , scpSupport ? false, libssh2 ? null 9 9 , gssSupport ? false, gss ? null 10 10 , c-aresSupport ? false, c-ares ? null 11 + , brotliSupport ? false, brotli ? null 11 12 }: 12 13 13 14 assert http2Support -> nghttp2 != null; ··· 19 20 assert gnutlsSupport -> gnutls != null; 20 21 assert scpSupport -> libssh2 != null; 21 22 assert c-aresSupport -> c-ares != null; 23 + assert brotliSupport -> brotli != null; 22 24 23 25 stdenv.mkDerivation rec { 24 - name = "curl-7.56.1"; 26 + name = "curl-7.57.0"; 25 27 26 28 src = fetchurl { 27 29 url = "http://curl.haxx.se/download/${name}.tar.bz2"; 28 - sha256 = "142zidvlmrz31yx480nrhh47hl01d7jbaagin23pspl7cw1ng515"; 30 + sha256 = "09j88lzqmi79rvvg2l7bjcs56330bq388f5p468hgblf6hdf6by9"; 29 31 }; 30 32 31 33 outputs = [ "bin" "dev" "out" "man" "devdoc" ]; ··· 47 49 optional c-aresSupport c-ares ++ 48 50 optional sslSupport openssl ++ 49 51 optional gnutlsSupport gnutls ++ 50 - optional scpSupport libssh2; 52 + optional scpSupport libssh2 ++ 53 + optional brotliSupport brotli; 51 54 52 55 # for the second line see https://curl.haxx.se/mail/tracker-2014-03/0087.html 53 56 preConfigure = '' ··· 64 67 ( if ldapSupport then "--enable-ldap" else "--disable-ldap" ) 65 68 ( if ldapSupport then "--enable-ldaps" else "--disable-ldaps" ) 66 69 ( if idnSupport then "--with-libidn=${libidn.dev}" else "--without-libidn" ) 70 + ( if brotliSupport then "--with-brotli" else "--without-brotli" ) 67 71 ] 68 72 ++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}" 69 73 ++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}";
+2 -2
pkgs/top-level/all-packages.nix
··· 1639 1639 idnSupport = true; 1640 1640 ldapSupport = true; 1641 1641 gssSupport = true; 1642 + brotliSupport = true; 1642 1643 }; 1643 1644 1644 1645 curl = callPackage ../tools/networking/curl rec { ··· 9929 9930 # through /run/opengl-driver*, which is overriden according to config.grsecurity 9930 9931 # grsecEnabled = true; # no more support in nixpkgs ATM 9931 9932 9932 - # llvm-4.0.0 and 5.0.0 won't pass tests on aarch64 9933 - llvmPackages = if system == "aarch64-linux" then llvmPackages_39 else llvmPackages_5; 9933 + llvmPackages = llvmPackages_5; 9934 9934 }); 9935 9935 9936 9936 mesa_glu = mesaDarwinOr (callPackage ../development/libraries/mesa-glu { });