git.iko.soy/typeable/nixpkgs
on master help sign in
Merge remote-tracking branch 'upstream/staging' into master
commit58307d15a7e9ff88c21baca1b09bed07919babbd authorTuomas Tynkkynen <tuomas.tynkkynen@iki.fi> dateSun 3 Dec 2017, 01:49 (9 years ago) parent70d1c3733300c7
17 files changed+104−106
pkgs/build-support/cc-wrapper/setup-hook.sh+16−10 pkgs/data/misc/tzdata/default.nix+2 pkgs/data/misc/tzdata/tzdata-setup-hook.sh+6 pkgs/development/compilers/gcc/4.8/default.nix+13−13 pkgs/development/compilers/gcc/4.9/default.nix+4−4 pkgs/development/compilers/gcc/5/default.nix+8−8 pkgs/development/compilers/gcc/6/default.nix+5−4 pkgs/development/compilers/gcc/7/default.nix+2−2 pkgs/development/compilers/gcc/snapshot/default.nix+2−2 pkgs/development/compilers/orc/default.nix+2−1 pkgs/development/libraries/libmicrohttpd/default.nix+3−2 pkgs/development/libraries/libsoup/default.nix+12−3 pkgs/development/python-modules/pycairo/default.nix+17−39 pkgs/development/python-modules/pycairo/waf-py3_5.patch−10 pkgs/development/python-modules/pygobject/3.nix+3−3 pkgs/tools/networking/curl/default.nix+7−3 pkgs/top-level/all-packages.nix+2−2
pkgs/build-support/cc-wrapper/setup-hook.sh+16−10
@@ -97,10 +97,12 @@ ccWrapper_addCVars () {
9797# setup-hook, which `role` tracks.
9898if [ -n "${crossConfig:-}" ]; then
9999 export NIX_CC_WRAPPER_@infixSalt@_TARGET_BUILD=1
100− role="BUILD_"
100+ role_pre='BUILD_'
101+ role_post='_FOR_BUILD'
101102else
102103 export NIX_CC_WRAPPER_@infixSalt@_TARGET_HOST=1
103− role=""
104+ role_pre=''
105+ role_post=''
104106fi
105107
106108# Eventually the exact sort of env-hook we create will depend on the role. This
@@ -133,20 +135,24 @@ fi
133135
134136# Export tool environment variables so various build systems use the right ones.
135137
136−export NIX_${role}CC=@out@
138+export NIX_${role_pre}CC=@out@
137139
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@
140144
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
143147do
144148 if
145− PATH=$_PATH type -p "@targetPrefix@$CMD" > /dev/null
149+ PATH=$_PATH type -p "@targetPrefix@${cmd}" > /dev/null
146150 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}";
148154 fi
149155done
150156
151157# No local scope in sourced file
152−unset role
158+unset -v role_pre role_post cmd upper_case
pkgs/data/misc/tzdata/default.nix+2
@@ -41,6 +41,8 @@ stdenv.mkDerivation rec {
4141 cp tzfile.h "$dev/include/tzfile.h"
4242 '';
4343
44+ setupHook = ./tzdata-setup-hook.sh;
45+
4446 meta = {
4547 homepage = http://www.iana.org/time-zones;
4648 description = "Database of current and historical time zones";
pkgs/data/misc/tzdata/tzdata-setup-hook.shnew file+6
@@ -0,0 +1,6 @@
1+tzdataHook() {
2+ export TZDIR=@out@/share/zoneinfo
3+}
4+
5+envHooks+=(tzdataHook)
6+crossEnvHooks+=(tzdataHook)
pkgs/development/compilers/gcc/4.8/default.nix+13−13
@@ -115,7 +115,7 @@ let version = "4.8.5";
115115 gccFpu = platform.gcc.fpu or null;
116116 gccFloat = platform.gcc.float or null;
117117 gccMode = platform.gcc.mode or null;
118− in
118+ in
119119 optional (gccArch != null) "--with-arch=${gccArch}" ++
120120 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++
121121 optional (gccAbi != null) "--with-abi=${gccAbi}" ++
@@ -186,7 +186,7 @@ let version = "4.8.5";
186186 stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
187187 crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
188188
189− bootstrap = targetPlatform == hostPlatform && !hostPlatform.isArm && !hostPlatform.isMips;
189+ bootstrap = targetPlatform == hostPlatform;
190190
191191in
192192
@@ -343,14 +343,6 @@ stdenv.mkDerivation ({
343343 }"
344344 ] ++
345345
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−
354346 (if enableMultilib
355347 then ["--enable-multilib" "--disable-libquadmath"]
356348 else ["--disable-multilib"]) ++
@@ -359,6 +351,14 @@ stdenv.mkDerivation ({
359351 then ["--enable-plugin"]
360352 else ["--disable-plugin"]) ++
361353
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+
362362 # Java options
363363 optionals langJava [
364364 "--with-ecj-jar=${javaEcj}"
@@ -422,7 +422,7 @@ stdenv.mkDerivation ({
422422 CC_FOR_TARGET = "${targetPlatform.config}-gcc";
423423 NM_FOR_TARGET = "${targetPlatform.config}-nm";
424424 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
426426 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
427427 dontStrip = true;
428428 configureFlags =
@@ -431,7 +431,7 @@ stdenv.mkDerivation ({
431431 optional langJava "--with-ecj-jar=${javaEcj.crossDrv}" ++
432432 optional javaAwtGtk "--enable-java-awt=gtk" ++
433433 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"] ++
435435 [
436436 "--with-gmp=${gmp.crossDrv}"
437437 "--with-mpfr=${mpfr.crossDrv}"
@@ -502,7 +502,7 @@ stdenv.mkDerivation ({
502502
503503 EXTRA_TARGET_CFLAGS =
504504 if targetPlatform != hostPlatform && libcCross != null then [
505− "-idirafter ${libcCross.dev}/include"
505+ "-idirafter ${getDev libcCross}/include"
506506 ]
507507 ++ optionals (! crossStageStatic) [
508508 "-B${libcCross.out}/lib"
pkgs/development/compilers/gcc/4.9/default.nix+4−4
@@ -106,7 +106,7 @@ let version = "4.9.4";
106106 gccFpu = platform.gcc.fpu or null;
107107 gccFloat = platform.gcc.float or null;
108108 gccMode = platform.gcc.mode or null;
109− in
109+ in
110110 optional (gccArch != null) "--with-arch=${gccArch}" ++
111111 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++
112112 optional (gccAbi != null) "--with-abi=${gccAbi}" ++
@@ -421,7 +421,7 @@ stdenv.mkDerivation ({
421421 CC_FOR_TARGET = "${targetPlatform.config}-gcc";
422422 NM_FOR_TARGET = "${targetPlatform.config}-nm";
423423 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
425425 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
426426 dontStrip = true;
427427 configureFlags =
@@ -430,7 +430,7 @@ stdenv.mkDerivation ({
430430 optional langJava "--with-ecj-jar=${javaEcj.crossDrv}" ++
431431 optional javaAwtGtk "--enable-java-awt=gtk" ++
432432 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"] ++
434434 [
435435 "--with-gmp=${gmp.crossDrv}"
436436 "--with-mpfr=${mpfr.crossDrv}"
@@ -501,7 +501,7 @@ stdenv.mkDerivation ({
501501
502502 EXTRA_TARGET_CFLAGS =
503503 if targetPlatform != hostPlatform && libcCross != null then [
504− "-idirafter ${libcCross.dev}/include"
504+ "-idirafter ${getDev libcCross}/include"
505505 ]
506506 ++ optionals (! crossStageStatic) [
507507 "-B${libcCross.out}/lib"
pkgs/development/compilers/gcc/5/default.nix+8−8
@@ -110,7 +110,7 @@ let version = "5.5.0";
110110 gccFpu = platform.gcc.fpu or null;
111111 gccFloat = platform.gcc.float or null;
112112 gccMode = platform.gcc.mode or null;
113− in
113+ in
114114 optional (gccArch != null) "--with-arch=${gccArch}" ++
115115 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++
116116 optional (gccAbi != null) "--with-abi=${gccAbi}" ++
@@ -201,8 +201,6 @@ stdenv.mkDerivation ({
201201 inherit sha256;
202202 };
203203
204− hardeningDisable = [ "format" ];
205−
206204 inherit patches;
207205
208206 outputs = [ "out" "lib" "man" "info" ];
@@ -211,6 +209,8 @@ stdenv.mkDerivation ({
211209
212210 libc_dev = stdenv.cc.libc_dev;
213211
212+ hardeningDisable = [ "format" ];
213+
214214 # This should kill all the stdinc frameworks that gcc and friends like to
215215 # insert into default search paths.
216216 prePatch = stdenv.lib.optionalString hostPlatform.isDarwin ''
@@ -356,9 +356,6 @@ stdenv.mkDerivation ({
356356 }"
357357 ] ++
358358
359− # Optional features
360− optional (isl != null) "--with-isl=${isl}" ++
361−
362359 (if enableMultilib
363360 then ["--enable-multilib" "--disable-libquadmath"]
364361 else ["--disable-multilib"]) ++
@@ -367,6 +364,9 @@ stdenv.mkDerivation ({
367364 then ["--enable-plugin"]
368365 else ["--disable-plugin"]) ++
369366
367+ # Optional features
368+ optional (isl != null) "--with-isl=${isl}" ++
369+
370370 # Java options
371371 optionals langJava [
372372 "--with-ecj-jar=${javaEcj}"
@@ -431,7 +431,7 @@ stdenv.mkDerivation ({
431431 CC_FOR_TARGET = "${targetPlatform.config}-gcc";
432432 NM_FOR_TARGET = "${targetPlatform.config}-nm";
433433 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
435435 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
436436 dontStrip = true;
437437 configureFlags =
@@ -490,7 +490,7 @@ stdenv.mkDerivation ({
490490
491491 CPATH = makeSearchPathOutput "dev" "include" ([]
492492 ++ optional (zlib != null) zlib
493− ++ optionals langJava [ boehmgc ]
493+ ++ optional langJava boehmgc
494494 ++ optionals javaAwtGtk xlibs
495495 ++ optionals javaAwtGtk [ gmp mpfr ]
496496 ++ optional (libpthread != null) libpthread
pkgs/development/compilers/gcc/6/default.nix+5−4
@@ -181,7 +181,7 @@ let version = "6.4.0";
181181 stageNameAddon = if crossStageStatic then "-stage-static" else "-stage-final";
182182 crossNameAddon = if targetPlatform != hostPlatform then "-${targetPlatform.config}" + stageNameAddon else "";
183183
184− bootstrap = targetPlatform == hostPlatform;
184+ bootstrap = targetPlatform == hostPlatform;
185185
186186in
187187
@@ -383,7 +383,7 @@ stdenv.mkDerivation ({
383383 # Ada
384384 optional langAda "--enable-libada" ++
385385
386− # Cross compilation
386+ # Cross-compilation
387387 optional (targetPlatform == hostPlatform) (
388388 let incDir = if hostPlatform.isDarwin
389389 then "${darwin.usr-include}"
@@ -391,12 +391,13 @@ stdenv.mkDerivation ({
391391 in "--with-native-system-header-dir=${incDir}"
392392 ) ++
393393
394+ optional (targetPlatform == hostPlatform) (mkPlatformFlags stdenv.platform) ++
394395 optional (targetPlatform != hostPlatform) crossConfigureFlags ++
395396 optional (!bootstrap) "--disable-bootstrap" ++
396397
397398 # Platform-specific flags
398399 optional (targetPlatform == hostPlatform && targetPlatform.isi686) "--with-arch=i686" ++
399− optionals (hostPlatform.isSunOS) [
400+ optionals hostPlatform.isSunOS [
400401 "--enable-long-long" "--enable-libssp" "--enable-threads=posix" "--disable-nls" "--enable-__cxa_atexit"
401402 # On Illumos/Solaris GNU as is preferred
402403 "--with-gnu-as" "--without-gnu-ld"
@@ -430,7 +431,7 @@ stdenv.mkDerivation ({
430431 CC_FOR_TARGET = "${targetPlatform.config}-gcc";
431432 NM_FOR_TARGET = "${targetPlatform.config}-nm";
432433 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
434435 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
435436 dontStrip = true;
436437 configureFlags =
pkgs/development/compilers/gcc/7/default.nix+2−2
@@ -105,7 +105,7 @@ let version = "7.2.0";
105105 gccFpu = platform.gcc.fpu or null;
106106 gccFloat = platform.gcc.float or null;
107107 gccMode = platform.gcc.mode or null;
108− in
108+ in
109109 optional (gccArch != null) "--with-arch=${gccArch}" ++
110110 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++
111111 optional (gccAbi != null) "--with-abi=${gccAbi}" ++
@@ -426,7 +426,7 @@ stdenv.mkDerivation ({
426426 NM_FOR_TARGET = "${targetPlatform.config}-nm";
427427 CXX_FOR_TARGET = "${targetPlatform.config}-g++";
428428 # 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;
430430 dontStrip = true;
431431 configureFlags =
432432 optional (!enableMultilib) "--disable-multilib" ++
pkgs/development/compilers/gcc/snapshot/default.nix+2−2
@@ -105,7 +105,7 @@ let version = "7-20170409";
105105 gccFpu = platform.gcc.fpu or null;
106106 gccFloat = platform.gcc.float or null;
107107 gccMode = platform.gcc.mode or null;
108− in
108+ in
109109 optional (gccArch != null) "--with-arch=${gccArch}" ++
110110 optional (gccCpu != null) "--with-cpu=${gccCpu}" ++
111111 optional (gccAbi != null) "--with-abi=${gccAbi}" ++
@@ -412,7 +412,7 @@ stdenv.mkDerivation ({
412412 CC_FOR_TARGET = "${targetPlatform.config}-gcc";
413413 NM_FOR_TARGET = "${targetPlatform.config}-nm";
414414 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
416416 NIX_CC_CROSS = optionalString (targetPlatform == hostPlatform) builtins.toString stdenv.cc;
417417 dontStrip = true;
418418 configureFlags =
pkgs/development/compilers/orc/default.nix+2−1
@@ -15,7 +15,8 @@ stdenv.mkDerivation rec {
1515 sed "/^toolsdir=/ctoolsdir=$dev/bin" -i "$dev"/lib/pkgconfig/orc*.pc
1616 '';
1717
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
1920
2021 meta = with stdenv.lib; {
2122 description = "The Oil Runtime Compiler";
pkgs/development/libraries/libmicrohttpd/default.nix+3−2
@@ -1,11 +1,12 @@
11{ stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig, libiconv, libintlOrEmpty }:
22
33stdenv.mkDerivation rec {
4− name = "libmicrohttpd-0.9.55";
4+ name = "libmicrohttpd-${version}";
5+ version = "0.9.57";
56
67 src = fetchurl {
78 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz";
8− sha256 = "1y6h1slav5l6k8zyb01dpw65dscdgxxgfa3a0z9qnn7jr66sn70c";
9+ sha256 = "0kmgkk9sjg1n3q7rbzw5y4qmgh51zn5qi2j69gbqmr6phxjaghfy";
910 };
1011
1112 outputs = [ "out" "dev" "devdoc" "info" ];
pkgs/development/libraries/libsoup/default.nix+12−3
@@ -1,18 +1,18 @@
1−{ stdenv, fetchurl, glib, libxml2, pkgconfig
1+{ stdenv, fetchurl, fetchpatch, glib, libxml2, pkgconfig
22, gnomeSupport ? true, libgnome_keyring3, sqlite, glib_networking, gobjectIntrospection
33, valaSupport ? true, vala_0_38
44, libintlOrEmpty
55, intltool, python }:
66let
77 majorVersion = "2.60";
8− version = "${majorVersion}.0";
8+ version = "${majorVersion}.2";
99in
1010stdenv.mkDerivation {
1111 name = "libsoup-${version}";
1212
1313 src = fetchurl {
1414 url = "mirror://gnome/sources/libsoup/${majorVersion}/libsoup-${version}.tar.xz";
15− sha256 = "b324edbecda0884143c0853b4a2bd5bd37fb3761f12f293c621ff34b9acdc84c";
15+ sha256 = "7263cfe18872e2e652c196f5667e514616d9c97c861dfca82a65a55f45f0da01";
1616 };
1717
1818 prePatch = ''
@@ -22,6 +22,15 @@ stdenv.mkDerivation {
2222 substituteInPlace libsoup/Makefile.in --replace "\$(DESTDIR)\$(vapidir)" "\$(DESTDIR)\$(girdir)/../vala/vapi"
2323 '';
2424
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+ ];
33+
2534 outputs = [ "out" "dev" ];
2635
2736 buildInputs = libintlOrEmpty ++ [ intltool python sqlite ]
pkgs/development/python-modules/pycairo/default.nix+17−39
@@ -1,50 +1,28 @@
1−{ lib, fetchurl, fetchpatch, python, buildPythonPackage, pkgconfig, cairo, xlibsWrapper, isPyPy, isPy35, isPy36, isPy3k }:
1+{ lib, fetchFromGitHub, python, buildPythonPackage, pytest, pkgconfig, cairo, xlibsWrapper, isPyPy }:
22
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;
10−
11−in buildPythonPackage rec {
3+buildPythonPackage rec {
124 pname = "pycairo";
13− version = "1.10.0";
5+ version = "1.15.4";
146 name = "${pname}-${version}";
15− format = "other";
167
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;
269
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+ '';
3322
3423 nativeBuildInputs = [ pkgconfig ];
3524 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 ];
4826
4927 meta.platforms = lib.platforms.linux ++ lib.platforms.darwin;
5028}
pkgs/development/python-modules/pycairo/waf-py3_5.patchdeleted−10
@@ -1,10 +0,0 @@
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)
pkgs/development/python-modules/pygobject/3.nix+3−3
@@ -1,7 +1,7 @@
11{ stdenv, fetchurl, buildPythonPackage, python, pkgconfig, glib, gobjectIntrospection, pycairo, cairo, which, ncurses}:
22
33buildPythonPackage rec {
4− major = "3.24";
4+ major = "3.26";
55 minor = "1";
66 version = "${major}.${minor}";
77 format = "other";
@@ -10,7 +10,7 @@ buildPythonPackage rec {
1010
1111 src = fetchurl {
1212 url = "mirror://gnome/sources/pygobject/${major}/${name}.tar.xz";
13− sha256 = "1zdzznrj2s1gsrv2z4r0n88fzba8zjc1n2r313xi77lhl1daja56";
13+ sha256 = "1afi0jdjd9sanrzjwhv7z1k7qxlb91fqa6yqc2dbpjkhkjdpnmzm";
1414 };
1515
1616 outputs = [ "out" "dev" ];
@@ -21,7 +21,7 @@ buildPythonPackage rec {
2121 propagatedBuildInputs = [ pycairo cairo ];
2222
2323 meta = {
24− homepage = http://live.gnome.org/PyGObject;
24+ homepage = https://pygobject.readthedocs.io/;
2525 description = "Python bindings for Glib";
2626 platforms = stdenv.lib.platforms.unix;
2727 };
pkgs/tools/networking/curl/default.nix+7−3
@@ -8,6 +8,7 @@
88, scpSupport ? false, libssh2 ? null
99, gssSupport ? false, gss ? null
1010, c-aresSupport ? false, c-ares ? null
11+, brotliSupport ? false, brotli ? null
1112}:
1213
1314assert http2Support -> nghttp2 != null;
@@ -19,13 +20,14 @@ assert !(gnutlsSupport && sslSupport);
1920assert gnutlsSupport -> gnutls != null;
2021assert scpSupport -> libssh2 != null;
2122assert c-aresSupport -> c-ares != null;
23+assert brotliSupport -> brotli != null;
2224
2325stdenv.mkDerivation rec {
24− name = "curl-7.56.1";
26+ name = "curl-7.57.0";
2527
2628 src = fetchurl {
2729 url = "http://curl.haxx.se/download/${name}.tar.bz2";
28− sha256 = "142zidvlmrz31yx480nrhh47hl01d7jbaagin23pspl7cw1ng515";
30+ sha256 = "09j88lzqmi79rvvg2l7bjcs56330bq388f5p468hgblf6hdf6by9";
2931 };
3032
3133 outputs = [ "bin" "dev" "out" "man" "devdoc" ];
@@ -47,7 +49,8 @@ stdenv.mkDerivation rec {
4749 optional c-aresSupport c-ares ++
4850 optional sslSupport openssl ++
4951 optional gnutlsSupport gnutls ++
50− optional scpSupport libssh2;
52+ optional scpSupport libssh2 ++
53+ optional brotliSupport brotli;
5154
5255 # for the second line see https://curl.haxx.se/mail/tracker-2014-03/0087.html
5356 preConfigure = ''
@@ -64,6 +67,7 @@ stdenv.mkDerivation rec {
6467 ( if ldapSupport then "--enable-ldap" else "--disable-ldap" )
6568 ( if ldapSupport then "--enable-ldaps" else "--disable-ldaps" )
6669 ( if idnSupport then "--with-libidn=${libidn.dev}" else "--without-libidn" )
70+ ( if brotliSupport then "--with-brotli" else "--without-brotli" )
6771 ]
6872 ++ stdenv.lib.optional c-aresSupport "--enable-ares=${c-ares}"
6973 ++ stdenv.lib.optional gssSupport "--with-gssapi=${gss}";
pkgs/top-level/all-packages.nix+2−2
@@ -1639,6 +1639,7 @@ with pkgs;
16391639 idnSupport = true;
16401640 ldapSupport = true;
16411641 gssSupport = true;
1642+ brotliSupport = true;
16421643 };
16431644
16441645 curl = callPackage ../tools/networking/curl rec {
@@ -9929,8 +9930,7 @@ with pkgs;
99299930 # through /run/opengl-driver*, which is overriden according to config.grsecurity
99309931 # grsecEnabled = true; # no more support in nixpkgs ATM
99319932
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;
99349934 });
99359935
99369936 mesa_glu = mesaDarwinOr (callPackage ../development/libraries/mesa-glu { });