git.iko.soy/typeable/nixpkgs
on master help sign in
Merge branch 'staging'

Hydra rebuild looks fine; only a few Darwin jobs is queued: http://hydra.nixos.org/eval/1304891?compare=1304807

commitb69f568f4c3ebaf48a7f66b0f051d28157a61afb authorVladimír Čunát <vcunat@gmail.com> dateSat 19 Nov 2016, 04:34 (10 years ago) parent775a729380bb20
48 files changed+582−239
pkgs/applications/audio/bristol/default.nix+4 pkgs/applications/gis/grass/default.nix+3−3 pkgs/applications/gis/qgis/default.nix+2−2 pkgs/applications/graphics/digikam/5.1.nix+120 pkgs/applications/misc/electrum/default.nix+3−3 pkgs/applications/version-management/meld/default.nix+2−2 pkgs/applications/virtualization/virtinst/default.nix+5−5 pkgs/applications/virtualization/virtualbox/default.nix+5−4 pkgs/applications/window-managers/compiz/default.nix+3−2 pkgs/desktops/gnome-3/3.20/default.nix+1−1 pkgs/development/libraries/db/clang-4.8.patch+135−3 pkgs/development/libraries/db/clang-5.3.patch+2−2 pkgs/development/libraries/db/clang-6.0.patch+136 pkgs/development/libraries/db/cygwin-4.4.patch−21 pkgs/development/libraries/db/cygwin-4.5.patch−22 pkgs/development/libraries/db/db-4.8.nix+4−3 pkgs/development/libraries/db/db-5.3.nix+1−4 pkgs/development/libraries/db/db-6.0.nix+1−1 pkgs/development/libraries/db/generic.nix+7−3 pkgs/development/libraries/db/register-race-fix.patch−47 pkgs/development/libraries/jemalloc/default.nix+5−4 pkgs/development/libraries/libdrm/default.nix+3−6 pkgs/development/libraries/libinput/default.nix+2−2 pkgs/development/libraries/libpng/default.nix+3−3 pkgs/development/libraries/libxml2/default.nix+8−8 pkgs/development/libraries/libxslt/default.nix+17−5 pkgs/development/libraries/mesa/default.nix+5−9 pkgs/development/libraries/mesa/dlopen-absolute-paths.diff−22 pkgs/development/libraries/zeitgeist/default.nix+2−2 pkgs/development/python-modules/bootstrapped-pip/default.nix+5−5 pkgs/development/python-modules/poezio/make_default_config_writable.patch+25 pkgs/development/python-modules/setuptools/default.nix+5−4 pkgs/os-specific/darwin/apple-source-releases/Libsystem/default.nix+11−7 pkgs/os-specific/darwin/apple-source-releases/Libsystem/system_symbols+1 pkgs/os-specific/linux/alsa-lib/default.nix+2−2 pkgs/os-specific/linux/alsa-plugins/default.nix+2−2 pkgs/os-specific/linux/alsa-utils/default.nix+2−2 pkgs/servers/http/apache-modules/mod_wsgi/default.nix+2−2 pkgs/servers/x11/xorg/default.nix+3−3 pkgs/servers/x11/xorg/tarballs-7.7.list+1−1 pkgs/shells/rush/gets.patch+13 pkgs/tools/X11/xpra/default.nix+3−3 pkgs/tools/admin/certbot/default.nix+6−4 pkgs/tools/archivers/gnutar/default.nix+1−1 pkgs/tools/backup/bup/default.nix+3−3 pkgs/top-level/all-packages.nix+6−6 pkgs/top-level/emscripten-packages.nix+1−1 pkgs/top-level/python-packages.nix+11−4
pkgs/applications/audio/bristol/default.nix+4
@@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
1414 xorg.xproto
1515 ];
1616
17+ patchPhase = "sed -i '41,43d' libbristolaudio/audioEngineJack.c"; # disable alsa/iatomic
18+
19+ configurePhase = "./configure --prefix=$out --enable-jack-default-audio --enable-jack-default-midi";
20+
1721 preInstall = ''
1822 sed -e "s@\`which bristol\`@$out/bin/bristol@g" -i bin/startBristol
1923 sed -e "s@\`which brighton\`@$out/bin/brighton@g" -i bin/startBristol
pkgs/applications/gis/grass/default.nix+3−3
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, flex, bison, pkgconfig, zlib, libtiff, libpng, fftw
22, cairo, readline, ffmpeg, makeWrapper, wxGTK30, netcdf, blas
3−, proj, gdal, geos, sqlite, postgresql, mysql, pythonPackages
3+, proj, gdal, geos, sqlite, postgresql, mysql, python2Packages
44}:
55
66stdenv.mkDerivation {
@@ -12,7 +12,7 @@ stdenv.mkDerivation {
1212
1313 buildInputs = [ flex bison zlib proj gdal libtiff libpng fftw sqlite pkgconfig cairo
1414 readline ffmpeg makeWrapper wxGTK30 netcdf geos postgresql mysql.client blas ]
15− ++ (with pythonPackages; [ python dateutil wxPython30 numpy ]);
15+ ++ (with python2Packages; [ python dateutil wxPython30 numpy ]);
1616
1717 configureFlags = [
1818 "--with-proj-share=${proj}/share/proj"
@@ -59,7 +59,7 @@ stdenv.mkDerivation {
5959 postInstall = ''
6060 wrapProgram $out/bin/grass70 \
6161 --set PYTHONPATH $PYTHONPATH \
62− --set GRASS_PYTHON ${pythonPackages.python}/bin/${pythonPackages.python.executable}
62+ --set GRASS_PYTHON ${python2Packages.python}/bin/${python2Packages.python.executable}
6363 ln -s $out/grass-*/lib $out/lib
6464 '';
6565
pkgs/applications/gis/qgis/default.nix+2−2
@@ -1,5 +1,5 @@
11{ stdenv, fetchurl, gdal, cmake, qt4, flex, bison, proj, geos, xlibsWrapper, sqlite, gsl
2−, qwt, fcgi, pythonPackages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper
2+, qwt, fcgi, python2Packages, libspatialindex, libspatialite, qscintilla, postgresql, makeWrapper
33, qjson, qca2, txt2tags, openssl
44, withGrass ? false, grass
55}:
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
1010 buildInputs = [ gdal qt4 flex openssl bison proj geos xlibsWrapper sqlite gsl qwt qscintilla
1111 fcgi libspatialindex libspatialite postgresql qjson qca2 txt2tags ] ++
1212 (stdenv.lib.optional withGrass grass) ++
13− (with pythonPackages; [ numpy psycopg2 requests2 pythonPackages.qscintilla sip ]);
13+ (with python2Packages; [ numpy psycopg2 requests2 python2Packages.qscintilla sip ]);
1414
1515 nativeBuildInputs = [ cmake makeWrapper ];
1616
pkgs/applications/graphics/digikam/5.1.nixnew file+120
@@ -0,0 +1,120 @@
1+{ stdenv, fetchurl, cmake, ecm, makeQtWrapper
2+
3+# For `digitaglinktree`
4+, perl, sqlite
5+
6+, qtbase
7+, qtxmlpatterns
8+, qtsvg
9+, qtwebkit
10+
11+, kconfigwidgets
12+, kcoreaddons
13+, kdoctools
14+, kfilemetadata
15+, knotifications
16+, knotifyconfig
17+, ktextwidgets
18+, kwidgetsaddons
19+, kxmlgui
20+
21+, bison
22+, boost
23+, eigen
24+, exiv2
25+, flex
26+, jasper
27+, lcms2
28+, lensfun
29+, libgphoto2
30+, libkipi
31+, liblqr1
32+, libusb1
33+, marble
34+, mysql
35+, opencv
36+, threadweaver
37+
38+# For panorama and focus stacking
39+, enblend-enfuse
40+, hugin
41+, gnumake
42+
43+, oxygen
44+}:
45+
46+stdenv.mkDerivation rec {
47+ name = "digikam-${version}";
48+ version = "5.1.0";
49+
50+ src = fetchurl {
51+ url = "http://download.kde.org/stable/digikam/${name}.tar.xz";
52+ sha256 = "1w97a5cmg39dgmjgmjwa936gcrmxjms3h2ww61qi1lny84p5x4a7";
53+ };
54+
55+ nativeBuildInputs = [ cmake ecm makeQtWrapper ];
56+
57+ buildInputs = [
58+ qtbase
59+ qtxmlpatterns
60+ qtsvg
61+ qtwebkit
62+
63+ kconfigwidgets
64+ kcoreaddons
65+ kdoctools
66+ kfilemetadata
67+ knotifications
68+ knotifyconfig
69+ ktextwidgets
70+ kwidgetsaddons
71+ kxmlgui
72+
73+ bison
74+ boost
75+ eigen
76+ exiv2
77+ flex
78+ jasper
79+ lcms2
80+ lensfun
81+ libgphoto2
82+ libkipi
83+ liblqr1
84+ libusb1
85+ marble.unwrapped
86+ mysql
87+ opencv
88+ threadweaver
89+
90+ oxygen
91+ ];
92+
93+ enableParallelBuilding = true;
94+
95+ cmakeFlags = [
96+ "-DLIBUSB_LIBRARIES=${libusb1.out}/lib"
97+ "-DLIBUSB_INCLUDE_DIR=${libusb1.dev}/include/libusb-1.0"
98+ "-DENABLE_MYSQLSUPPORT=1"
99+ "-DENABLE_INTERNALMYSQL=1"
100+ ];
101+
102+ fixupPhase = ''
103+ substituteInPlace $out/bin/digitaglinktree \
104+ --replace "/usr/bin/perl" "${perl}/bin/perl" \
105+ --replace "/usr/bin/sqlite3" "${sqlite}/bin/sqlite3"
106+
107+ wrapQtProgram $out/bin/digikam \
108+ --prefix PATH : "${gnumake}/bin:${hugin}/bin:${enblend-enfuse}/bin"
109+
110+ wrapQtProgram $out/bin/showfoto
111+ '';
112+
113+ meta = {
114+ description = "Photo Management Program";
115+ license = stdenv.lib.licenses.gpl2;
116+ homepage = http://www.digikam.org;
117+ maintainers = with stdenv.lib.maintainers; [ the-kenny ];
118+ platforms = stdenv.lib.platforms.linux;
119+ };
120+}
pkgs/applications/misc/electrum/default.nix+3−3
@@ -1,6 +1,6 @@
1−{ stdenv, fetchurl, pythonPackages }:
1+{ stdenv, fetchurl, python2Packages }:
22
3−pythonPackages.buildPythonApplication rec {
3+python2Packages.buildPythonApplication rec {
44 name = "electrum-${version}";
55 version = "2.7.11";
66
@@ -9,7 +9,7 @@ pythonPackages.buildPythonApplication rec {
99 sha256 = "0qy2ynyw57jgi7fw3xzsyy608yk4bhsda7qfw0j26zqinv52mrsb";
1010 };
1111
12− propagatedBuildInputs = with pythonPackages; [
12+ propagatedBuildInputs = with python2Packages; [
1313 dns
1414 ecdsa
1515 jsonrpclib
pkgs/applications/version-management/meld/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, itstool, pythonPackages, intltool, wrapGAppsHook
1+{ stdenv, fetchurl, itstool, python2Packages, intltool, wrapGAppsHook
22, libxml2, gobjectIntrospection, gtk3, gnome3, cairo, file
33}:
44
@@ -6,7 +6,7 @@
66let
77 minor = "3.16";
88 version = "${minor}.2";
9− inherit (pythonPackages) python buildPythonApplication pycairo pygobject3;
9+ inherit (python2Packages) python buildPythonApplication pycairo pygobject3;
1010in buildPythonApplication rec {
1111 name = "meld-${version}";
1212
pkgs/applications/virtualization/virtinst/default.nix+5−5
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, pythonPackages, intltool, libxml2Python, curl }:
1+{ stdenv, fetchurl, python2Packages, intltool, libxml2Python, curl }:
22
33with stdenv.lib;
44
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 sha256 = "175laiy49dni8hzi0cn14bbsdsigvgr9h6d9z2bcvbpa29spldvf";
1313 };
1414
15− pythonPath = with pythonPackages;
15+ pythonPath = with python2Packages;
1616 [ setuptools eventlet greenlet gflags netaddr carrot routes
1717 PasteDeploy m2crypto ipy twisted
1818 distutils_extra simplejson glanceclient cheetah lockfile httplib2
@@ -22,9 +22,9 @@ stdenv.mkDerivation rec {
2222 ];
2323
2424 buildInputs =
25− [ pythonPackages.python
26− pythonPackages.wrapPython
27− pythonPackages.mox
25+ [ python2Packages.python
26+ python2Packages.wrapPython
27+ python2Packages.mox
2828 intltool
2929 ] ++ pythonPath;
3030
pkgs/applications/virtualization/virtualbox/default.nix+5−4
@@ -4,7 +4,7 @@
44, which, alsaLib, curl, libvpx, gawk, nettools, dbus
55, xorriso, makeself, perl, pkgconfig
66, javaBindings ? false, jdk ? null
7−, pythonBindings ? false, python ? null
7+, pythonBindings ? false, python2 ? null
88, enableExtensionPack ? false, requireFile ? null, patchelf ? null, fakeroot ? null
99, pulseSupport ? false, libpulseaudio ? null
1010, enableHardening ? false
@@ -15,6 +15,7 @@
1515with stdenv.lib;
1616
1717let
18+ python = python2;
1819 buildType = "release";
1920
2021 inherit (importJSON ./upstream-info.json) version extpackRev extpack main;
@@ -48,10 +49,10 @@ in stdenv.mkDerivation {
4849
4950 buildInputs =
5051 [ iasl dev86 libxslt libxml2 xproto libX11 libXext libXcursor libIDL
51− libcap glib lvm2 python alsaLib curl libvpx pam xorriso makeself perl
52− pkgconfig which libXmu libpng patchelfUnstable ]
52+ libcap glib lvm2 alsaLib curl libvpx pam xorriso makeself perl
53+ pkgconfig which libXmu libpng patchelfUnstable python ]
5354 ++ optional javaBindings jdk
54− ++ optional pythonBindings python
55+ ++ optional pythonBindings python # Python is needed even when not building bindings
5556 ++ optional pulseSupport libpulseaudio
5657 ++ optionals (headless) [ libXrandr ]
5758 ++ optionals (!headless) [ qt5.qtbase qt5.qtx11extras libXinerama SDL ];
pkgs/applications/window-managers/compiz/default.nix+3−2
@@ -5,14 +5,15 @@
55, libstartup_notification, libpthreadstubs, libxcb, intltool
66, ORBit2, libXau, libICE, libSM
77, dbus, dbus_glib, librsvg, mesa
8−, libXdmcp, libnotify, pythonPackages
8+, libXdmcp, libnotify, python2Packages
99, hicolor_icon_theme, libjpeg_turbo, libsigcxx, protobuf
1010, xdg_utils
1111, gettext, boost, pyrex
1212, makeWrapper
1313}:
1414let
15− inherit (pythonPackages) python dbus-python pygtk;
15+ # FIXME: Use python.withPackages so we can get rid of PYTHONPATH wrapper
16+ inherit (python2Packages) python dbus-python pygtk;
1617
1718 s = # Generated upstream information
1819 rec {
pkgs/desktops/gnome-3/3.20/default.nix+1−1
@@ -307,7 +307,7 @@ let
307307
308308#### Dev http://ftp.gnome.org/pub/GNOME/devtools/
309309
310− anjuta = callPackage ./devtools/anjuta { };
310+ anjuta = callPackage ./devtools/anjuta { python=pkgs.python2; };
311311
312312 devhelp = callPackage ./devtools/devhelp { };
313313
pkgs/development/libraries/db/clang-4.8.patch+135−3
@@ -1,13 +1,22 @@
11diff --git a/dbinc/atomic.h b/dbinc/atomic.h
2−index 0034dcc..fa7ba93 100644
2+index 0034dcc..160c8ea 100644
33--- a/dbinc/atomic.h
44+++ b/dbinc/atomic.h
5+@@ -70,7 +70,7 @@ typedef struct {
6+ * These have no memory barriers; the caller must include them when necessary.
7+ */
8+ #define atomic_read(p) ((p)->value)
9+-#define atomic_init(p, val) ((p)->value = (val))
10++#define atomic_init_db(p, val) ((p)->value = (val))
11+
12+ #ifdef HAVE_ATOMIC_SUPPORT
13+
514@@ -144,7 +144,7 @@ typedef LONG volatile *interlocked_val;
615 #define atomic_inc(env, p) __atomic_inc(p)
716 #define atomic_dec(env, p) __atomic_dec(p)
817 #define atomic_compare_exchange(env, p, o, n) \
918- __atomic_compare_exchange((p), (o), (n))
10−+ __db_atomic_compare_exchange((p), (o), (n))
19++ __atomic_compare_exchange_int((p), (o), (n))
1120 static inline int __atomic_inc(db_atomic_t *p)
1221 {
1322 int temp;
@@ -16,7 +25,130 @@ index 0034dcc..fa7ba93 100644
1625 * which configure could be changed to use.
1726 */
1827-static inline int __atomic_compare_exchange(
19−+static inline int __db_atomic_compare_exchange(
28++static inline int __atomic_compare_exchange_int(
2029 db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
2130 {
2231 atomic_value_t was;
32+@@ -206,7 +206,7 @@ static inline int __atomic_compare_exchange(
33+ #define atomic_dec(env, p) (--(p)->value)
34+ #define atomic_compare_exchange(env, p, oldval, newval) \
35+ (DB_ASSERT(env, atomic_read(p) == (oldval)), \
36+- atomic_init(p, (newval)), 1)
37++ atomic_init_db(p, (newval)), 1)
38+ #else
39+ #define atomic_inc(env, p) __atomic_inc(env, p)
40+ #define atomic_dec(env, p) __atomic_dec(env, p)
41+diff --git a/dbinc/db.in b/dbinc/db.in
42+index 9fc6712..7428e0a 100644
43+--- a/dbinc/db.in
44++++ b/dbinc/db.in
45+@@ -2413,7 +2413,7 @@ typedef struct {
46+ #define fetch(a) __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@(a)
47+ #define firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@
48+ #define nextkey(a) __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@(a)
49+-#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b)
50++#define store_db(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b)
51+
52+ /*******************************************************
53+ * Hsearch historic interface.
54+diff --git a/mp/mp_fget.c b/mp/mp_fget.c
55+index 5fdee5a..0b75f57 100644
56+--- a/mp/mp_fget.c
57++++ b/mp/mp_fget.c
58+@@ -617,7 +617,7 @@ alloc: /* Allocate a new buffer header and data space. */
59+
60+ /* Initialize enough so we can call __memp_bhfree. */
61+ alloc_bhp->flags = 0;
62+- atomic_init(&alloc_bhp->ref, 1);
63++ atomic_init_db(&alloc_bhp->ref, 1);
64+ #ifdef DIAGNOSTIC
65+ if ((uintptr_t)alloc_bhp->buf & (sizeof(size_t) - 1)) {
66+ __db_errx(env,
67+@@ -911,7 +911,7 @@ alloc: /* Allocate a new buffer header and data space. */
68+ MVCC_MPROTECT(bhp->buf, mfp->stat.st_pagesize,
69+ PROT_READ);
70+
71+- atomic_init(&alloc_bhp->ref, 1);
72++ atomic_init_db(&alloc_bhp->ref, 1);
73+ MUTEX_LOCK(env, alloc_bhp->mtx_buf);
74+ alloc_bhp->priority = bhp->priority;
75+ alloc_bhp->pgno = bhp->pgno;
76+diff --git a/mp/mp_mvcc.c b/mp/mp_mvcc.c
77+index 34467d2..f05aa0c 100644
78+--- a/mp/mp_mvcc.c
79++++ b/mp/mp_mvcc.c
80+@@ -276,7 +276,7 @@ __memp_bh_freeze(dbmp, infop, hp, bhp, need_frozenp)
81+ #else
82+ memcpy(frozen_bhp, bhp, SSZA(BH, buf));
83+ #endif
84+- atomic_init(&frozen_bhp->ref, 0);
85++ atomic_init_db(&frozen_bhp->ref, 0);
86+ if (mutex != MUTEX_INVALID)
87+ frozen_bhp->mtx_buf = mutex;
88+ else if ((ret = __mutex_alloc(env, MTX_MPOOL_BH,
89+@@ -428,7 +428,7 @@ __memp_bh_thaw(dbmp, infop, hp, frozen_bhp, alloc_bhp)
90+ #endif
91+ alloc_bhp->mtx_buf = mutex;
92+ MUTEX_LOCK(env, alloc_bhp->mtx_buf);
93+- atomic_init(&alloc_bhp->ref, 1);
94++ atomic_init_db(&alloc_bhp->ref, 1);
95+ F_CLR(alloc_bhp, BH_FROZEN);
96+ }
97+
98+diff --git a/mp/mp_region.c b/mp/mp_region.c
99+index e6cece9..ddbe906 100644
100+--- a/mp/mp_region.c
101++++ b/mp/mp_region.c
102+@@ -224,7 +224,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
103+ MTX_MPOOL_FILE_BUCKET, 0, &htab[i].mtx_hash)) != 0)
104+ return (ret);
105+ SH_TAILQ_INIT(&htab[i].hash_bucket);
106+- atomic_init(&htab[i].hash_page_dirty, 0);
107++ atomic_init_db(&htab[i].hash_page_dirty, 0);
108+ }
109+
110+ /*
111+@@ -269,7 +269,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
112+ hp->mtx_hash = (mtx_base == MUTEX_INVALID) ? MUTEX_INVALID :
113+ mtx_base + i;
114+ SH_TAILQ_INIT(&hp->hash_bucket);
115+- atomic_init(&hp->hash_page_dirty, 0);
116++ atomic_init_db(&hp->hash_page_dirty, 0);
117+ #ifdef HAVE_STATISTICS
118+ hp->hash_io_wait = 0;
119+ hp->hash_frozen = hp->hash_thawed = hp->hash_frozen_freed = 0;
120+diff --git a/mutex/mut_method.c b/mutex/mut_method.c
121+index 2588763..5c6d516 100644
122+--- a/mutex/mut_method.c
123++++ b/mutex/mut_method.c
124+@@ -426,7 +426,7 @@ atomic_compare_exchange(env, v, oldval, newval)
125+ MUTEX_LOCK(env, mtx);
126+ ret = atomic_read(v) == oldval;
127+ if (ret)
128+- atomic_init(v, newval);
129++ atomic_init_db(v, newval);
130+ MUTEX_UNLOCK(env, mtx);
131+
132+ return (ret);
133+diff --git a/mutex/mut_tas.c b/mutex/mut_tas.c
134+index f3922e0..e40fcdf 100644
135+--- a/mutex/mut_tas.c
136++++ b/mutex/mut_tas.c
137+@@ -46,7 +46,7 @@ __db_tas_mutex_init(env, mutex, flags)
138+
139+ #ifdef HAVE_SHARED_LATCHES
140+ if (F_ISSET(mutexp, DB_MUTEX_SHARED))
141+- atomic_init(&mutexp->sharecount, 0);
142++ atomic_init_db(&mutexp->sharecount, 0);
143+ else
144+ #endif
145+ if (MUTEX_INIT(&mutexp->tas)) {
146+@@ -486,7 +486,7 @@ __db_tas_mutex_unlock(env, mutex)
147+ F_CLR(mutexp, DB_MUTEX_LOCKED);
148+ /* Flush flag update before zeroing count */
149+ MEMBAR_EXIT();
150+- atomic_init(&mutexp->sharecount, 0);
151++ atomic_init_db(&mutexp->sharecount, 0);
152+ } else {
153+ DB_ASSERT(env, sharecount > 0);
154+ MEMBAR_EXIT();
pkgs/development/libraries/db/clang-5.3.patch+2−2
@@ -16,7 +16,7 @@ index 6a858f7..9f338dc 100644
1616 #define atomic_dec(env, p) __atomic_dec(p)
1717 #define atomic_compare_exchange(env, p, o, n) \
1818- __atomic_compare_exchange((p), (o), (n))
19−+ __atomic_compare_exchange_db((p), (o), (n))
19++ __atomic_compare_exchange_int((p), (o), (n))
2020 static inline int __atomic_inc(db_atomic_t *p)
2121 {
2222 int temp;
@@ -25,7 +25,7 @@ index 6a858f7..9f338dc 100644
2525 * which configure could be changed to use.
2626 */
2727-static inline int __atomic_compare_exchange(
28−+static inline int __atomic_compare_exchange_db(
28++static inline int __atomic_compare_exchange_int(
2929 db_atomic_t *p, atomic_value_t oldval, atomic_value_t newval)
3030 {
3131 atomic_value_t was;
pkgs/development/libraries/db/clang-6.0.patchnew file+136
@@ -0,0 +1,136 @@
1+diff --git a/src/dbinc/atomic.h b/src/dbinc/atomic.h
2+index e4420aa..4799b5f 100644
3+--- a/src/dbinc/atomic.h
4++++ b/src/dbinc/atomic.h
5+@@ -70,7 +70,7 @@ typedef struct {
6+ * These have no memory barriers; the caller must include them when necessary.
7+ */
8+ #define atomic_read(p) ((p)->value)
9+-#define atomic_init(p, val) ((p)->value = (val))
10++#define atomic_init_db(p, val) ((p)->value = (val))
11+
12+ #ifdef HAVE_ATOMIC_SUPPORT
13+
14+@@ -225,7 +225,7 @@ static inline int __atomic_compare_exchange_int(
15+ #define atomic_dec(env, p) (--(p)->value)
16+ #define atomic_compare_exchange(env, p, oldval, newval) \
17+ (DB_ASSERT(env, atomic_read(p) == (oldval)), \
18+- atomic_init(p, (newval)), 1)
19++ atomic_init_db(p, (newval)), 1)
20+ #else
21+ #define atomic_inc(env, p) __atomic_inc_int(env, p)
22+ #define atomic_dec(env, p) __atomic_dec_int(env, p)
23+diff --git a/src/dbinc/db.in b/src/dbinc/db.in
24+index 3c2ad9b..3e46f02 100644
25+--- a/src/dbinc/db.in
26++++ b/src/dbinc/db.in
27+@@ -2999,7 +2999,7 @@ typedef struct {
28+ #define fetch(a) __db_dbm_fetch@DB_VERSION_UNIQUE_NAME@(a)
29+ #define firstkey __db_dbm_firstkey@DB_VERSION_UNIQUE_NAME@
30+ #define nextkey(a) __db_dbm_nextkey@DB_VERSION_UNIQUE_NAME@(a)
31+-#define store(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b)
32++#define store_db(a, b) __db_dbm_store@DB_VERSION_UNIQUE_NAME@(a, b)
33+
34+ /*******************************************************
35+ * Hsearch historic interface.
36+diff --git a/src/mp/mp_fget.c b/src/mp/mp_fget.c
37+index 59fe9fe..fa4ced7 100644
38+--- a/src/mp/mp_fget.c
39++++ b/src/mp/mp_fget.c
40+@@ -654,7 +654,7 @@ alloc: /* Allocate a new buffer header and data space. */
41+
42+ /* Initialize enough so we can call __memp_bhfree. */
43+ alloc_bhp->flags = 0;
44+- atomic_init(&alloc_bhp->ref, 1);
45++ atomic_init_db(&alloc_bhp->ref, 1);
46+ #ifdef DIAGNOSTIC
47+ if ((uintptr_t)alloc_bhp->buf & (sizeof(size_t) - 1)) {
48+ __db_errx(env, DB_STR("3025",
49+@@ -969,7 +969,7 @@ alloc: /* Allocate a new buffer header and data space. */
50+ MVCC_MPROTECT(bhp->buf, mfp->pagesize,
51+ PROT_READ);
52+
53+- atomic_init(&alloc_bhp->ref, 1);
54++ atomic_init_db(&alloc_bhp->ref, 1);
55+ MUTEX_LOCK(env, alloc_bhp->mtx_buf);
56+ alloc_bhp->priority = bhp->priority;
57+ alloc_bhp->pgno = bhp->pgno;
58+diff --git a/src/mp/mp_mvcc.c b/src/mp/mp_mvcc.c
59+index 83c4d72..0a47202 100644
60+--- a/src/mp/mp_mvcc.c
61++++ b/src/mp/mp_mvcc.c
62+@@ -281,7 +281,7 @@ __memp_bh_freeze(dbmp, infop, hp, bhp, need_frozenp)
63+ #else
64+ memcpy(frozen_bhp, bhp, SSZA(BH, buf));
65+ #endif
66+- atomic_init(&frozen_bhp->ref, 0);
67++ atomic_init_db(&frozen_bhp->ref, 0);
68+ if (mutex != MUTEX_INVALID)
69+ frozen_bhp->mtx_buf = mutex;
70+ else if ((ret = __mutex_alloc(env, MTX_MPOOL_BH,
71+@@ -440,7 +440,7 @@ __memp_bh_thaw(dbmp, infop, hp, frozen_bhp, alloc_bhp)
72+ #endif
73+ alloc_bhp->mtx_buf = mutex;
74+ MUTEX_LOCK(env, alloc_bhp->mtx_buf);
75+- atomic_init(&alloc_bhp->ref, 1);
76++ atomic_init_db(&alloc_bhp->ref, 1);
77+ F_CLR(alloc_bhp, BH_FROZEN);
78+ }
79+
80+diff --git a/src/mp/mp_region.c b/src/mp/mp_region.c
81+index 4d95e4f..e97459c 100644
82+--- a/src/mp/mp_region.c
83++++ b/src/mp/mp_region.c
84+@@ -278,7 +278,7 @@ __memp_init(env, dbmp, reginfo_off, htab_buckets, max_nreg)
85+ MTX_MPOOL_FILE_BUCKET, 0, &htab[i].mtx_hash)) != 0)
86+ return (ret);
87+ SH_TAILQ_INIT(&htab[i].hash_bucket);
88+- atomic_init(&htab[i].hash_page_dirty, 0);
89++ atomic_init_db(&htab[i].hash_page_dirty, 0);
90+ }
91+
92+ mtx_base = mtx_prev = MUTEX_INVALID;
93+@@ -332,7 +332,7 @@ no_prealloc:
94+ DB_MUTEX_SHARED, &hp->mtx_hash)) != 0)
95+ return (ret);
96+ SH_TAILQ_INIT(&hp->hash_bucket);
97+- atomic_init(&hp->hash_page_dirty, 0);
98++ atomic_init_db(&hp->hash_page_dirty, 0);
99+ #ifdef HAVE_STATISTICS
100+ hp->hash_io_wait = 0;
101+ hp->hash_frozen = hp->hash_thawed = hp->hash_frozen_freed = 0;
102+diff --git a/src/mutex/mut_method.c b/src/mutex/mut_method.c
103+index 72b34de..a9f9868 100644
104+--- a/src/mutex/mut_method.c
105++++ b/src/mutex/mut_method.c
106+@@ -501,7 +501,7 @@ __atomic_compare_exchange_int(env, v, oldval, newval)
107+ MUTEX_LOCK(env, mtx);
108+ ret = atomic_read(v) == oldval;
109+ if (ret)
110+- atomic_init(v, newval);
111++ atomic_init_db(v, newval);
112+ MUTEX_UNLOCK(env, mtx);
113+
114+ return (ret);
115+diff --git a/src/mutex/mut_tas.c b/src/mutex/mut_tas.c
116+index 7899c4b..d9420fa 100644
117+--- a/src/mutex/mut_tas.c
118++++ b/src/mutex/mut_tas.c
119+@@ -47,7 +47,7 @@ __db_tas_mutex_init(env, mutex, flags)
120+
121+ #ifdef HAVE_SHARED_LATCHES
122+ if (F_ISSET(mutexp, DB_MUTEX_SHARED))
123+- atomic_init(&mutexp->sharecount, 0);
124++ atomic_init_db(&mutexp->sharecount, 0);
125+ else
126+ #endif
127+ if (MUTEX_INIT(&mutexp->tas)) {
128+@@ -643,7 +643,7 @@ was_not_locked:
129+ F_CLR(mutexp, DB_MUTEX_LOCKED);
130+ /* Flush flag update before zeroing count */
131+ MEMBAR_EXIT();
132+- atomic_init(&mutexp->sharecount, 0);
133++ atomic_init_db(&mutexp->sharecount, 0);
134+ } else {
135+ DB_ASSERT(env, sharecount > 0);
136+ MEMBAR_EXIT();
pkgs/development/libraries/db/cygwin-4.4.patchdeleted−21
@@ -1,21 +0,0 @@
1−diff -rc db-4.4.20.NC-old/os/os_flock.c db-4.4.20.NC/os/os_flock.c
2−*** db-4.4.20.NC-old/os/os_flock.c Mon Jun 20 16:59:01 2005
3−--- db-4.4.20.NC/os/os_flock.c Wed Jun 7 17:01:49 2006
4−***************
5−*** 36,41 ****
6−--- 36,50 ----
7−
8− DB_ASSERT(F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1);
9−
10−+ #ifdef __CYGWIN__
11−+ /*
12−+ * Windows file locking interferes with read/write operations, so we
13−+ * map the ranges to an area past the end of the file.
14−+ */
15−+ DB_ASSERT(offset < (off_t) 1 << 62);
16−+ offset += (off_t) 1 << 62;
17−+ #endif
18−+
19− #ifdef HAVE_FCNTL
20− fl.l_start = offset;
21− fl.l_len = 1;
pkgs/development/libraries/db/cygwin-4.5.patchdeleted−22
@@ -1,22 +0,0 @@
1−diff -rc db-4.5.20-orig/os/os_flock.c db-4.5.20/os/os_flock.c
2−*** db-4.5.20-orig/os/os_flock.c 2006-10-13 12:36:12.000000000 +0200
3−--- db-4.5.20/os/os_flock.c 2006-10-13 12:40:11.000000000 +0200
4−***************
5−*** 30,35 ****
6−--- 30,44 ----
7−
8− DB_ASSERT(dbenv, F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1);
9−
10−+ #ifdef __CYGWIN__
11−+ /*
12−+ * Windows file locking interferes with read/write operations, so we
13−+ * map the ranges to an area past the end of the file.
14−+ */
15−+ DB_ASSERT(dbenv, offset < (off_t) 1 << 62);
16−+ offset += (off_t) 1 << 62;
17−+ #endif
18−+
19− fl.l_start = offset;
20− fl.l_len = 1;
21− fl.l_type = acquire ? F_WRLCK : F_UNLCK;
22−Only in db-4.5.20/os: os_flock.c~
pkgs/development/libraries/db/db-4.8.nix+4−3
@@ -2,8 +2,9 @@
22
33import ./generic.nix (args // rec {
44 version = "4.8.30";
5− extraPatches = [ ./clang-4.8.patch ];
65 sha256 = "0ampbl2f0hb1nix195kz1syrqqxpmvnvnfvphambj7xjrl3iljg0";
7− branch = "4.8";
8− drvArgs = { hardeningDisable = [ "format" ]; };
6+ extraPatches = [ ./clang-4.8.patch ];
7+
8+ drvArgs.hardeningDisable = [ "format" ];
9+ drvArgs.doCheck = false;
910})
pkgs/development/libraries/db/db-5.3.nix+1−4
@@ -3,9 +3,6 @@
33import ./generic.nix (args // rec {
44 version = "5.3.28";
55 sha256 = "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0";
6− branch = "5.3";
7− # https://community.oracle.com/thread/3952592
8− # this patch renames some sybols that conflict with libc++-3.8
9− # symbols: atomic_compare_exchange, atomic_init, store
6+ license = stdenv.lib.licenses.agpl3;
107 extraPatches = [ ./clang-5.3.patch ];
118})
pkgs/development/libraries/db/db-6.0.nix+1−1
@@ -4,5 +4,5 @@ import ./generic.nix (args // rec {
44 version = "6.0.20";
55 sha256 = "00r2aaglq625y8r9xd5vw2y070plp88f1mb2gbq3kqsl7128lsl0";
66 license = stdenv.lib.licenses.agpl3;
7− branch = "6.0";
7+ extraPatches = [ ./clang-6.0.patch ];
88})
pkgs/development/libraries/db/generic.nix+7−3
@@ -4,9 +4,8 @@
44
55# Options from inherited versions
66, version, sha256
7−, extraPatches ? [ ]
7+, patchSrc ? "src", extraPatches ? [ ]
88, license ? stdenv.lib.licenses.sleepycat
9−, branch ? null
109, drvArgs ? {}
1110}:
1211
@@ -36,11 +35,16 @@ stdenv.mkDerivation (rec {
3635 rm -rf $out/docs
3736 '';
3837
38+ doCheck = true;
39+
40+ checkPhase = ''
41+ make examples_c examples_cxx
42+ '';
43+
3944 meta = with stdenv.lib; {
4045 homepage = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html";
4146 description = "Berkeley DB";
4247 license = license;
4348 platforms = platforms.unix;
44− branch = branch;
4549 };
4650} // drvArgs)
pkgs/development/libraries/db/register-race-fix.patchdeleted−47
@@ -1,47 +0,0 @@
1−diff -rc db-4.5.20-orig/env/env_register.c db-4.5.20/env/env_register.c
2−*** db-4.5.20-orig/env/env_register.c 2006-09-09 16:29:04.000000000 +0200
3−--- db-4.5.20/env/env_register.c 2007-05-16 21:13:27.000000000 +0200
4−***************
5−*** 255,260 ****
6−--- 255,262 ----
7− buf[nr - 1] = '\0';
8− }
9−
10−+ //sleep(3);
11−+
12− pos = (off_t)lcnt * PID_LEN;
13− if (REGISTRY_LOCK(dbenv, pos, 1) == 0) {
14− if ((ret = REGISTRY_UNLOCK(dbenv, pos)) != 0)
15−***************
16−*** 361,366 ****
17−--- 363,392 ----
18− if (recovery_failed)
19− goto err;
20−
21−+ //sleep(5);
22−+
23−+ /*
24−+ * Acquire an exclusive lock to prevent a race like this:
25−+ *
26−+ * 1) Process X is about to exit and process Y is just
27−+ * starting.
28−+ * 2) Process Y reads X's slot.
29−+ * 3) Process X clears its slot.
30−+ * 4) Process Y sees that X's slot isn't cleared yet (since it
31−+ * just read the old value).
32−+ * 5) Process X closes the registry, releases the lock on its
33−+ * slot.
34−+ * 6) Process Y tries to acquire X's slot and succeeds, so it
35−+ * concludes that X died and recovery is needed.
36−+ *
37−+ * A more efficient solution to this problem would be to let
38−+ * __envreg_add acquire the lock on a slot first, and *then*
39−+ * read the slot (instead of the other way around). Then we
40−+ * wouldn't need the exclusive lock here.
41−+ */
42−+ if ((ret = REGISTRY_EXCL_LOCK(dbenv, 0)) != 0)
43−+ goto err;
44−+
45− /*
46− * Why isn't an exclusive lock necessary to discard a DB_ENV handle?
47− *
pkgs/development/libraries/jemalloc/default.nix+5−4
@@ -1,11 +1,12 @@
11{ stdenv, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "jemalloc-4.1.1";
4+ name = "jemalloc-${version}";
5+ version = "4.3.1";
56
67 src = fetchurl {
7− url = "http://www.canonware.com/download/jemalloc/${name}.tar.bz2";
8− sha256 = "1bmdr51wxiir595k2r6z9a7rcgm42kkgnr586xir7vdcndr3pwf8";
8+ url = "https://github.com/jemalloc/jemalloc/releases/download/${version}/${name}.tar.bz2";
9+ sha256 = "12r71i8nm3vwz21fc16rwbb0pwcg5s05n1qg3rwl2s85v0x1ifzp";
910 };
1011
1112 # By default, jemalloc puts a je_ prefix onto all its symbols on OSX, which
@@ -14,7 +15,7 @@ stdenv.mkDerivation rec {
1415 configureFlags = stdenv.lib.optional stdenv.isDarwin "--with-jemalloc-prefix=";
1516
1617 meta = with stdenv.lib; {
17− homepage = http://www.canonware.com/jemalloc/index.html;
18+ homepage = http://jemalloc.net;
1819 description = "General purpose malloc(3) implementation";
1920 longDescription = ''
2021 malloc(3)-compatible memory allocator that emphasizes fragmentation
pkgs/development/libraries/libdrm/default.nix+3−6
@@ -1,11 +1,11 @@
1−{ stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, udev, valgrind }:
1+{ stdenv, fetchurl, pkgconfig, libpthreadstubs, libpciaccess, valgrind }:
22
33stdenv.mkDerivation rec {
4− name = "libdrm-2.4.71";
4+ name = "libdrm-2.4.73";
55
66 src = fetchurl {
77 url = "http://dri.freedesktop.org/libdrm/${name}.tar.bz2";
8− sha256 = "c66287ddeee5f46ea8f8880b94b80acb3bbc33ba6321d17767eef145046df9b8";
8+ sha256 = "0kayvwqqrjm45y6dk9q2b4gmjdasci0y28jzv4bq05py8a9d7gwn";
99 };
1010
1111 outputs = [ "out" "dev" ];
@@ -13,7 +13,6 @@ stdenv.mkDerivation rec {
1313 nativeBuildInputs = [ pkgconfig ];
1414 buildInputs = [ libpthreadstubs libpciaccess ];
1515 # libdrm as of 2.4.70 does not actually do anything with udev.
16− #++ stdenv.lib.optional stdenv.isLinux udev;
1716
1817 patches = stdenv.lib.optional stdenv.isDarwin ./libdrm-apple.patch;
1918
@@ -21,7 +20,6 @@ stdenv.mkDerivation rec {
2120 "echo : \\\${ac_cv_func_clock_gettime=\'yes\'} > config.cache";
2221
2322 configureFlags = [ "--enable-freedreno" "--disable-valgrind" ]
24− ++ stdenv.lib.optional stdenv.isLinux "--enable-udev"
2523 ++ stdenv.lib.optional stdenv.isDarwin "-C";
2624
2725 crossAttrs.configureFlags = configureFlags ++ [ "--disable-intel" ];
@@ -30,7 +28,6 @@ stdenv.mkDerivation rec {
3028 homepage = http://dri.freedesktop.org/libdrm/;
3129 description = "Library for accessing the kernel's Direct Rendering Manager";
3230 license = "bsd";
33− maintainers = [ stdenv.lib.maintainers.urkud ];
3431 platforms = stdenv.lib.platforms.unix;
3532 };
3633}
pkgs/development/libraries/libinput/default.nix+2−2
@@ -17,11 +17,11 @@ in
1717with stdenv.lib;
1818stdenv.mkDerivation rec {
1919 name = "libinput-${version}";
20− version = "1.5.0";
20+ version = "1.5.1";
2121
2222 src = fetchurl {
2323 url = "http://www.freedesktop.org/software/libinput/${name}.tar.xz";
24− sha256 = "0708259k2qpdyi8z8n74d2pprjdvivmqkskjkq7s7ypchn9mb5js";
24+ sha256 = "d4f63933b0967bd691735af5e3919e2d29c2121d4e05867cc4e10ff3ae8e2dd8";
2525 };
2626
2727 outputs = [ "out" "dev" ];
pkgs/development/libraries/libpng/default.nix+3−3
@@ -3,11 +3,11 @@
33assert zlib != null;
44
55let
6− version = "1.6.23";
7− sha256 = "1wb2j8sba6g2h4vmv4pwsp93q74qw4gyqqs4b7vfjmpcv9xix4kd";
6+ version = "1.6.26";
7+ sha256 = "1ybkgcqqsd4iiiyv60pxjfi1csszb50bd2cxxsy3sv4q4sil6rr6";
88 patch_src = fetchurl {
99 url = "mirror://sourceforge/libpng-apng/libpng-${version}-apng.patch.gz";
10− sha256 = "1lvsn1kmarzpn269zgykjfmxq16zrdhpd1a75nzgclx97436x408";
10+ sha256 = "0b6p2k4afvhk1svargpllcvhxb4g3p857wkqk85cks0yv42ckph1";
1111 };
1212 whenPatched = stdenv.lib.optionalString apngSupport;
1313
pkgs/development/libraries/libxml2/default.nix+8−8
@@ -1,5 +1,5 @@
11{ stdenv, lib, fetchurl, zlib, xz, python2, findXMLCatalogs, libiconv, fetchpatch
2−, supportPython ? (! stdenv ? cross) }:
2+, pythonSupport ? (! stdenv ? cross) }:
33
44let
55 python = python2;
@@ -28,10 +28,10 @@ in stdenv.mkDerivation rec {
2828 };
2929
3030 outputs = [ "bin" "dev" "out" "doc" ]
31− ++ lib.optional supportPython "py";
32− propagatedBuildOutputs = "out bin" + lib.optionalString supportPython " py";
31+ ++ lib.optional pythonSupport "py";
32+ propagatedBuildOutputs = "out bin" + lib.optionalString pythonSupport " py";
3333
34− buildInputs = lib.optional supportPython python
34+ buildInputs = lib.optional pythonSupport python
3535 # Libxml2 has an optional dependency on liblzma. However, on impure
3636 # platforms, it may end up using that from /usr/lib, and thus lack a
3737 # RUNPATH for that, leading to undefined references for its users.
@@ -39,7 +39,7 @@ in stdenv.mkDerivation rec {
3939
4040 propagatedBuildInputs = [ zlib findXMLCatalogs ];
4141
42− configureFlags = lib.optional supportPython "--with-python=${python}"
42+ configureFlags = lib.optional pythonSupport "--with-python=${python}"
4343 ++ [ "--exec_prefix=$dev" ];
4444
4545 enableParallelBuilding = true;
@@ -55,9 +55,9 @@ in stdenv.mkDerivation rec {
5555 propagatedBuildInputs = [ findXMLCatalogs libiconv ];
5656 };
5757
58− preInstall = lib.optionalString supportPython
58+ preInstall = lib.optionalString pythonSupport
5959 ''substituteInPlace python/libxml2mod.la --replace "${python}" "$py"'';
60− installFlags = lib.optionalString supportPython
60+ installFlags = lib.optionalString pythonSupport
6161 ''pythondir="$(py)/lib/${python.libPrefix}/site-packages"'';
6262
6363 postFixup = ''
@@ -66,7 +66,7 @@ in stdenv.mkDerivation rec {
6666 moveToOutput share/man/man1 "$bin"
6767 '';
6868
69− passthru = { inherit version; pythonSupport = supportPython; };
69+ passthru = { inherit version; pythonSupport = pythonSupport; };
7070
7171 meta = {
7272 homepage = http://xmlsoft.org/;
pkgs/development/libraries/libxslt/default.nix+17−5
@@ -1,4 +1,9 @@
1−{ stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs }:
1+{ stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs
2+, pythonSupport ? true, python2
3+}:
4+
5+assert pythonSupport -> python2 != null;
6+assert pythonSupport -> libxml2.pythonSupport;
27
38stdenv.mkDerivation rec {
49 name = "libxslt-1.1.29";
@@ -10,26 +15,33 @@ stdenv.mkDerivation rec {
1015
1116 patches = stdenv.lib.optional stdenv.isSunOS ./patch-ah.patch;
1217
13− outputs = [ "bin" "dev" "out" "doc" ];
18+ outputs = [ "bin" "dev" "out" "doc" ] ++ stdenv.lib.optional pythonSupport "py";
1419
15− buildInputs = [ libxml2 ];
20+ buildInputs = [ libxml2.dev ] ++ stdenv.lib.optionals pythonSupport [ libxml2.py python2 ];
1621
1722 propagatedBuildInputs = [ findXMLCatalogs ];
1823
1924 configureFlags = [
20− "--without-python"
2125 "--without-crypto"
2226 "--without-debug"
2327 "--without-mem-debug"
2428 "--without-debugger"
25− ];
29+ ] ++ stdenv.lib.optional pythonSupport "--with-python=${python2}";
2630
2731 postFixup = ''
2832 moveToOutput bin/xslt-config "$dev"
2933 moveToOutput lib/xsltConf.sh "$dev"
3034 moveToOutput share/man/man1 "$bin"
35+ '' + stdenv.lib.optionalString pythonSupport ''
36+ mkdir -p $py/nix-support
37+ echo ${libxml2.py} >> $py/nix-support/propagated-native-build-inputs
38+ moveToOutput lib/python2.7 "$py"
3139 '';
3240
41+ passthru = {
42+ inherit pythonSupport;
43+ };
44+
3345 meta = with stdenv.lib; {
3446 homepage = http://xmlsoft.org/XSLT/;
3547 description = "A C library and tools to do XSL transformations";
pkgs/development/libraries/mesa/default.nix+5−9
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, fetchpatch
22, pkgconfig, intltool, autoreconfHook, substituteAll
3−, file, expat, libdrm, xorg, wayland, systemd, openssl
3+, file, expat, libdrm, xorg, wayland, openssl
44, llvmPackages, libffi, libomxil-bellagio, libva
55, libelf, libvdpau, python2
66, grsecEnabled ? false
@@ -26,7 +26,7 @@ if ! lists.elem stdenv.system platforms.mesaPlatforms then
2626else
2727
2828let
29− version = "12.0.3";
29+ version = "13.0.1";
3030 branch = head (splitString "." version);
3131 driverLink = "/run/opengl-driver" + optionalString stdenv.isi686 "-32";
3232in
@@ -40,7 +40,7 @@ stdenv.mkDerivation {
4040 "ftp://ftp.freedesktop.org/pub/mesa/older-versions/${branch}.x/${version}/mesa-${version}.tar.xz"
4141 "https://launchpad.net/mesa/trunk/${version}/+download/mesa-${version}.tar.xz"
4242 ];
43− sha256 = "1dc86dd9b51272eee1fad3df65e18cda2e556ef1bc0b6e07cd750b9757f493b1";
43+ sha256 = "0cd7axwihwsay0i9fvcw14cldbxyvf8b8rd5sh53plvppyr2z5ki";
4444 };
4545
4646 prePatch = "patchShebangs .";
@@ -51,11 +51,7 @@ stdenv.mkDerivation {
5151 patches = [
5252 ./glx_ro_text_segm.patch # fix for grsecurity/PaX
5353 ./symlink-drivers.patch
54− ] ++ optional stdenv.isLinux
55− (substituteAll {
56− src = ./dlopen-absolute-paths.diff;
57− libudev = systemd.lib;
58− });
54+ ];
5955
6056 postPatch = ''
6157 substituteInPlace src/egl/main/egldriver.c \
@@ -116,7 +112,7 @@ stdenv.mkDerivation {
116112 libffi wayland libvdpau libelf libXvMC
117113 libomxil-bellagio libva libpthreadstubs openssl/*or another sha1 provider*/
118114 (python2.withPackages (ps: [ ps.Mako ]))
119− ] ++ optional stdenv.isLinux systemd;
115+ ];
120116
121117
122118 enableParallelBuilding = true;
pkgs/development/libraries/mesa/dlopen-absolute-paths.diffdeleted−22
@@ -1,22 +0,0 @@
1−diff --git a/loader.c b/loader.c
2−index 4fdf3c2..69ea22d 100644
3−--- a/src/loader/loader.c
4−+++ b/src/loader/loader.c
5−@@ -112,7 +112,7 @@ static void *udev_handle = NULL;
6− static void *
7− udev_dlopen_handle(void)
8− {
9−- char name[80];
10−+ char name[256];
11− unsigned flags = RTLD_NOLOAD | RTLD_LOCAL | RTLD_LAZY;
12− int version;
13−
14−@@ -126,7 +126,7 @@ udev_dlopen_handle(void)
15− /* First try opening an already linked libudev, then try loading one */
16− do {
17− for (version = 1; version >= 0; version--) {
18−- snprintf(name, sizeof(name), "libudev.so.%d", version);
19−+ snprintf(name, sizeof(name), "@libudev@/lib/libudev.so.%d", version);
20− udev_handle = dlopen(name, flags);
21− if (udev_handle)
22− return udev_handle;
pkgs/development/libraries/zeitgeist/default.nix+2−2
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, pkgconfig, glib, sqlite, gnome3, vala_0_23
22, intltool, libtool, python, dbus_libs, telepathy_glib
3−, gtk3, json_glib, librdf_raptor2, pythonPackages, dbus_glib }:
3+, gtk3, json_glib, librdf_raptor2, python2Packages, dbus_glib }:
44
55stdenv.mkDerivation rec {
66 version = "0.9.15";
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919
2020 buildInputs = [ pkgconfig glib sqlite gnome3.gnome_common intltool
2121 libtool python dbus_libs telepathy_glib vala_0_23 dbus_glib
22− gtk3 json_glib librdf_raptor2 pythonPackages.rdflib ];
22+ gtk3 json_glib librdf_raptor2 python2Packages.rdflib ];
2323
2424 prePatch = "patchShebangs .";
2525
pkgs/development/python-modules/bootstrapped-pip/default.nix+5−5
@@ -6,8 +6,8 @@ let
66 sha256 = "ea8033fc9905804e652f75474d33410a07404c1a78dd3c949a66863bd1050ebd";
77 };
88 setuptools_source = fetchurl {
9− url = "https://files.pythonhosted.org/packages/3b/c7/e9724e6f81c96248fba5876054418c11d327b3093d075790903cd66fad44/setuptools-26.1.1-py2.py3-none-any.whl";
10− sha256 = "226c9ce65e76c6069e805982b036f36dc4b227b37dd87fc219aef721ec8604ae";
9+ url = "https://files.pythonhosted.org/packages/3b/7e/293d19ccd106119e35db4bf3e111b1895098f618b455b758aa636496cf03/setuptools-28.8.0-py2.py3-none-any.whl";
10+ sha256 = "2e59d06ac798efce29c567ee0e0687514efca529a665b8f364cf497cd10d21b2";
1111 };
1212 argparse_source = fetchurl {
1313 url = "https://pypi.python.org/packages/2.7/a/argparse/argparse-1.4.0-py2.py3-none-any.whl";
@@ -15,11 +15,11 @@ let
1515 };
1616in stdenv.mkDerivation rec {
1717 name = "${python.libPrefix}-bootstrapped-pip-${version}";
18− version = "8.1.2";
18+ version = "9.0.1";
1919
2020 src = fetchurl {
21− url = "https://pypi.python.org/packages/9c/32/004ce0852e0a127f07f358b715015763273799bd798956fa930814b60f39/pip-${version}-py2.py3-none-any.whl";
22− sha256 = "18cjrd66mn4a0gwa99zzs89lrb0xn4xmajdzya6zqd7v16cdsr34";
21+ url = "https://files.pythonhosted.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl";
22+ sha256 = "690b762c0a8460c303c089d5d0be034fb15a5ea2b75bdf565f40421f542fefb0";
2323 };
2424
2525 unpackPhase = ''
pkgs/development/python-modules/poezio/make_default_config_writable.patchnew file+25
@@ -0,0 +1,25 @@
1+diff -ruN a/src/config.py b/src/config.py
2+--- a/src/config.py 2015-07-31 19:35:37.000000000 +0000
3++++ b/src/config.py 2015-08-03 09:23:34.322098081 +0000
4+@@ -14,6 +14,7 @@
5+
6+ import logging.config
7+ import os
8++import stat
9+ import sys
10+ import pkg_resources
11+
12+@@ -563,6 +564,13 @@
13+ copy2(default, options.filename)
14+ elif path.isfile(other):
15+ copy2(other, options.filename)
16++
17++ # Inside the nixstore, the reference file is readonly, so is the copy.
18++ # Make it writable by the user who just created it.
19++ if os.path.exists(options.filename):
20++ os.chmod(options.filename,
21++ os.stat(options.filename).st_mode | stat.S_IWUSR)
22++
23+ global firstrun
24+ firstrun = True
25+
pkgs/development/python-modules/setuptools/default.nix+5−4
@@ -1,14 +1,15 @@
11{ stdenv, lib, fetchurl, python, wrapPython }:
22
33stdenv.mkDerivation rec {
4− shortName = "setuptools-${version}";
4+ pname = "setuptools";
5+ shortName = "${pname}-${version}";
56 name = "${python.libPrefix}-${shortName}";
67
7− version = "26.1.1"; # 18.4 and up breaks python34Packages.characteristic and many others
8+ version = "28.8.0";
89
910 src = fetchurl {
10− url = "mirror://pypi/s/setuptools/${shortName}.tar.gz";
11− sha256 = "475ce28993d7cb75335942525b9fac79f7431a7f6e8a0079c0f2680641379481";
11+ url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${shortName}.tar.gz";
12+ sha256 = "432a1ad4044338c34c2d09b0ff75d509b9849df8cf329f4c1c7706d9c2ba3c61";
1213 };
1314
1415 buildInputs = [ python wrapPython ];
pkgs/os-specific/darwin/apple-source-releases/Libsystem/default.nix+11−7
@@ -56,9 +56,8 @@ appleDerivation rec {
5656 # The startup object files
5757 cp ${Csu}/lib/* $out/lib
5858
59− # Narrowly speaking, these would work if we re-exported libsystem_c and libsystem_kernel,
60− # but we also need to run the original central libsystem constructor (which initializes
61− # a ton of crap for its consitutent libraries) so we link against the central library here.
59+ # We can't re-exported libsystem_c and libsystem_kernel directly,
60+ # so we link against the central library here.
6261 mkdir -p $out/lib/system
6362 ld -macosx_version_min 10.7 -arch x86_64 -dylib \
6463 -o $out/lib/system/libsystem_c.dylib \
@@ -70,8 +69,14 @@ appleDerivation rec {
7069 /usr/lib/libSystem.dylib \
7170 -reexported_symbols_list ${./system_kernel_symbols}
7271
73− libs=$(otool -arch x86_64 -L /usr/lib/libSystem.dylib | tail -n +3 | awk '{ print $1 }')
72+ # The umbrella libSystem also exports some symbols,
73+ # but we don't want to pull in everything from the other libraries.
74+ ld -macosx_version_min 10.7 -arch x86_64 -dylib \
75+ -o $out/lib/libSystem_internal.dylib \
76+ /usr/lib/libSystem.dylib \
77+ -reexported_symbols_list ${./system_symbols}
7478
79+ libs=$(otool -arch x86_64 -L /usr/lib/libSystem.dylib | tail -n +3 | awk '{ print $1 }')
7580
7681 for i in $libs; do
7782 if [ "$i" != "/usr/lib/system/libsystem_kernel.dylib" ] && [ "$i" != "/usr/lib/system/libsystem_c.dylib" ]; then
@@ -79,14 +84,13 @@ appleDerivation rec {
7984 fi
8085 done
8186
82− ld -macosx_version_min 10.7 \
83− -arch x86_64 \
84− -dylib \
87+ ld -macosx_version_min 10.7 -arch x86_64 -dylib \
8588 -o $out/lib/libSystem.B.dylib \
8689 -compatibility_version 1.0 \
8790 -current_version 1226.10.1 \
8891 -reexport_library $out/lib/system/libsystem_c.dylib \
8992 -reexport_library $out/lib/system/libsystem_kernel.dylib \
93+ -reexport_library $out/lib/libSystem_internal.dylib \
9094 $args
9195
9296 ln -s libSystem.B.dylib $out/lib/libSystem.dylib
pkgs/os-specific/darwin/apple-source-releases/Libsystem/system_symbolsnew file+1
@@ -0,0 +1 @@
1+_mach_init_routine
pkgs/os-specific/linux/alsa-lib/default.nix+2−2
@@ -1,14 +1,14 @@
11{ stdenv, fetchurl }:
22
33stdenv.mkDerivation rec {
4− name = "alsa-lib-1.1.1";
4+ name = "alsa-lib-1.1.2";
55
66 src = fetchurl {
77 urls = [
88 "ftp://ftp.alsa-project.org/pub/lib/${name}.tar.bz2"
99 "http://alsa.cybermirror.org/lib/${name}.tar.bz2"
1010 ];
11− sha256 = "0sa24fy3qf3jg63xxvfb7j8halj1qmdbcak2lyfx8bpd8hqnriwa";
11+ sha256 = "1mk1v2av6ibyydgr6f2mxrwy7clgnf0c68s9y2zvh1ibi7csr3fk";
1212 };
1313
1414 patches = [
pkgs/os-specific/linux/alsa-plugins/default.nix+2−2
@@ -1,14 +1,14 @@
11{ stdenv, fetchurl, lib, pkgconfig, alsaLib, libogg, libpulseaudio ? null, libjack2 ? null }:
22
33stdenv.mkDerivation rec {
4− name = "alsa-plugins-1.1.0";
4+ name = "alsa-plugins-1.1.1";
55
66 src = fetchurl {
77 urls = [
88 "ftp://ftp.alsa-project.org/pub/plugins/${name}.tar.bz2"
99 "http://alsa.cybermirror.org/plugins/${name}.tar.bz2"
1010 ];
11− sha256 = "3b83c329953bef99f5fe25ae04ec4a455fe6514939f3b45a5321966652b2c9ee";
11+ sha256 = "1w81z5jlwqhd1l2m7qrq69lc4k9dnrg1wn52jsl2hrf3hbhd394f";
1212 };
1313
1414 # ToDo: a52, etc.?
pkgs/os-specific/linux/alsa-utils/default.nix+2−2
@@ -2,14 +2,14 @@
22
33stdenv.mkDerivation rec {
44 name = "alsa-utils-${version}";
5− version = "1.1.0";
5+ version = "1.1.2";
66
77 src = fetchurl {
88 urls = [
99 "ftp://ftp.alsa-project.org/pub/utils/${name}.tar.bz2"
1010 "http://alsa.cybermirror.org/utils/${name}.tar.bz2"
1111 ];
12− sha256 = "3b1c3135b76e14532d3dd23fb15759ddd7daf9ffbc183f7a9a0a3a86374748f1";
12+ sha256 = "0wcha78c2sm8qqk5r3w83cvm8fp6fb1zpd35kmcm24kxhz007xks";
1313 };
1414
1515 patchPhase = ''
pkgs/servers/http/apache-modules/mod_wsgi/default.nix+2−2
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, apacheHttpd, python }:
1+{ stdenv, fetchurl, apacheHttpd, python2 }:
22
33stdenv.mkDerivation rec {
44 name = "mod_wsgi-${version}";
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 sha256 = "14xz422jlakdhxzsl8xs9if86yf1fnkwdg0havjyqs7my0w4qrzh";
1010 };
1111
12− buildInputs = [ apacheHttpd python ];
12+ buildInputs = [ apacheHttpd python2 ];
1313
1414 patchPhase = ''
1515 sed -r -i -e "s|^LIBEXECDIR=.*$|LIBEXECDIR=$out/modules|" \
pkgs/servers/x11/xorg/default.nix+3−3
@@ -823,11 +823,11 @@ let
823823 }) // {inherit fontconfig freetype libX11 xproto libXrender ;};
824824
825825 libXi = (mkDerivation "libXi" {
826− name = "libXi-1.7.7";
826+ name = "libXi-1.7.8";
827827 builder = ./builder.sh;
828828 src = fetchurl {
829− url = mirror://xorg/individual/lib/libXi-1.7.7.tar.bz2;
830− sha256 = "0c70n4aq0ba628wr88ih4740nci9d9f6y3v96sx376vvlm7q6vwr";
829+ url = mirror://xorg/individual/lib/libXi-1.7.8.tar.bz2;
830+ sha256 = "1fr7mi4nbcxsa88qin9g2ipmzh595ydxy9qnabzl270laf6zmwnq";
831831 };
832832 buildInputs = [pkgconfig inputproto libX11 libXext xextproto libXfixes xproto ];
833833 meta.platforms = stdenv.lib.platforms.unix;
pkgs/servers/x11/xorg/tarballs-7.7.list+1−1
@@ -71,7 +71,7 @@ mirror://xorg/individual/lib/libXfixes-5.0.2.tar.bz2
7171mirror://xorg/individual/lib/libXfont-1.5.1.tar.bz2
7272mirror://xorg/individual/lib/libXfont2-2.0.1.tar.bz2
7373mirror://xorg/individual/lib/libXft-2.3.2.tar.bz2
74−mirror://xorg/individual/lib/libXi-1.7.7.tar.bz2
74+mirror://xorg/individual/lib/libXi-1.7.8.tar.bz2
7575mirror://xorg/individual/lib/libXinerama-1.1.3.tar.bz2
7676mirror://xorg/individual/lib/libxkbfile-1.0.9.tar.bz2
7777mirror://xorg/individual/lib/libXmu-1.1.2.tar.bz2
pkgs/shells/rush/gets.patchnew file+13
@@ -0,0 +1,13 @@
1+--- rush-1.7/gnu/stdio.in.h.org 2010-06-13 19:14:59.000000000 +0200
2++++ rush-1.7/gnu/stdio.in.h 2013-12-30 14:29:55.000000000 +0100
3+@@ -138,8 +138,10 @@ _GL_WARN_ON_USE (fflush, "fflush is not
4+ /* It is very rare that the developer ever has full control of stdin,
5+ so any use of gets warrants an unconditional warning. Assume it is
6+ always declared, since it is required by C89. */
7++#if defined gets
8+ #undef gets
9+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
10++#endif
11+
12+ #if @GNULIB_FOPEN@
13+ # if @REPLACE_FOPEN@
pkgs/tools/X11/xpra/default.nix+3−3
@@ -1,4 +1,4 @@
1−{ stdenv, lib, fetchurl, pythonPackages, pkgconfig
1+{ stdenv, lib, fetchurl, python2Packages, pkgconfig
22, xorg, gtk2, glib, pango, cairo, gdk_pixbuf, atk
33, makeWrapper, xkbcomp, xorgserver, getopt, xauth, utillinux, which, fontsConf, xkeyboard_config
44, ffmpeg, x264, libvpx, libwebp
@@ -8,7 +8,7 @@
88with lib;
99
1010let
11− inherit (pythonPackages) python cython buildPythonApplication;
11+ inherit (python2Packages) python cython buildPythonApplication;
1212in buildPythonApplication rec {
1313 name = "xpra-0.17.6";
1414 namePrefix = "";
@@ -39,7 +39,7 @@ in buildPythonApplication rec {
3939 makeWrapper
4040 ];
4141
42− propagatedBuildInputs = with pythonPackages; [
42+ propagatedBuildInputs = with python2Packages; [
4343 pillow pygtk pygobject2 rencode pycrypto cryptography pycups lz4 dbus-python
4444 netifaces numpy websockify pygobject3 gst-python
4545 ];
pkgs/tools/admin/certbot/default.nix+6−4
@@ -1,6 +1,8 @@
1−{ stdenv, pythonPackages, fetchFromGitHub, dialog }:
1+{ stdenv, python2Packages, fetchFromGitHub, dialog }:
22
3−pythonPackages.buildPythonApplication rec {
3+# Latest version of certbot supports python3 and python3 version of pythondialog
4+
5+python2Packages.buildPythonApplication rec {
46 name = "certbot-${version}";
57 version = "0.6.0";
68
@@ -11,7 +13,7 @@ pythonPackages.buildPythonApplication rec {
1113 sha256 = "1x0prlldkgg0hxmya4m5h3k3c872wr0jylmzpr3m04mk339yiw0c";
1214 };
1315
14− propagatedBuildInputs = with pythonPackages; [
16+ propagatedBuildInputs = with python2Packages; [
1517 ConfigArgParse
1618 acme
1719 configobj
@@ -26,7 +28,7 @@ pythonPackages.buildPythonApplication rec {
2628 zope_component
2729 zope_interface
2830 ];
29− buildInputs = [ dialog ] ++ (with pythonPackages; [ nose mock gnureadline ]);
31+ buildInputs = [ dialog ] ++ (with python2Packages; [ nose mock gnureadline ]);
3032
3133 patchPhase = ''
3234 substituteInPlace certbot/notify.py --replace "/usr/sbin/sendmail" "/var/setuid-wrappers/sendmail"
pkgs/tools/archivers/gnutar/default.nix+1−1
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
99 sha256 = "097hx7sbzp8qirl4m930lw84kn0wmxhmq7v1qpra3mrg0b8cyba0";
1010 };
1111
12− patches = [ ./CVE-2016-6321.patch ]; # FIXME: remove on another stdenv rebuild
12+ patches = [ ./CVE-2016-6321.patch ];
1313
1414 # avoid retaining reference to CF during stdenv bootstrap
1515 configureFlags = stdenv.lib.optionals stdenv.isDarwin [
pkgs/tools/backup/bup/default.nix+3−3
@@ -1,5 +1,5 @@
11{ stdenv, fetchFromGitHub, fetchurl, makeWrapper
2−, perl, pandoc, pythonPackages, git
2+, perl, pandoc, python2Packages, git
33, par2cmdline ? null, par2Support ? false
44}:
55
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
1919 sha256 = "1hsxzrjvqa3pd74vmz8agiiwynrzynp1i726h0fzdsakc4adya4l";
2020 };
2121
22− buildInputs = [ git pythonPackages.python ];
22+ buildInputs = [ git python2Packages.python ];
2323 nativeBuildInputs = [ pandoc perl makeWrapper ];
2424
2525 postPatch = ''
@@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
4343 wrapProgram $out/bin/bup \
4444 --prefix PATH : ${git}/bin \
4545 --prefix PYTHONPATH : ${concatStringsSep ":" (map (x: "$(toPythonPath ${x})")
46− (with pythonPackages;
46+ (with python2Packages;
4747 [ setuptools tornado ]
4848 ++ stdenv.lib.optionals (!stdenv.isDarwin) [ pyxattr pylibacl fuse ]))}
4949 '';
pkgs/top-level/all-packages.nix+6−6
@@ -9423,27 +9423,27 @@ in
94239423 });
94249424
94259425 v8_3_14 = callPackage ../development/libraries/v8/3.14.nix {
9426− inherit (pythonPackages) gyp;
9426+ inherit (python2Packages) python gyp;
94279427 };
94289428
94299429 v8_3_16_14 = callPackage ../development/libraries/v8/3.16.14.nix {
9430− inherit (pythonPackages) gyp;
9430+ inherit (python2Packages) python gyp;
94319431 };
94329432
94339433 v8_3_24_10 = callPackage ../development/libraries/v8/3.24.10.nix {
9434− inherit (pythonPackages) gyp;
9434+ inherit (python2Packages) python gyp;
94359435 };
94369436
94379437 v8_3_30_33 = callPackage ../development/libraries/v8/3.30.33.nix {
9438− inherit (pythonPackages) gyp;
9438+ inherit (python2Packages) python gyp;
94399439 };
94409440
94419441 v8_4_5 = callPackage ../development/libraries/v8/4.5.nix {
9442− inherit (pythonPackages) gyp;
9442+ inherit (python2Packages) python gyp;
94439443 };
94449444
94459445 v8 = callPackage ../development/libraries/v8 {
9446− inherit (pythonPackages) gyp;
9446+ inherit (python2Packages) python gyp;
94479447 };
94489448
94499449 v8_static = lowPrio (self.v8.override { static = true; });
pkgs/top-level/emscripten-packages.nix+1−1
@@ -10,7 +10,7 @@ with pkgs; rec {
1010
1111 libxml2 = (pkgs.libxml2.override {
1212 stdenv = emscriptenStdenv;
13− supportPython = false;
13+ pythonSupport = false;
1414 }).overrideDerivation
1515 (old: {
1616 buildInputs = old.buildInputs ++ [ autoreconfHook pkgconfig zlib nodejs ];
pkgs/top-level/python-packages.nix+11−4
@@ -13530,6 +13530,12 @@ in {
1353013530 clblas = pkgs.clblas-cuda;
1353113531 };
1353213532
13533+ libxml2 = if isPy3k then throw "libxml2 not supported for interpreter ${python.executable}" else
13534+ (pkgs.libxml2.override{pythonSupport=true; python2=python;}).py;
13535+
13536+ libxslt = if isPy3k then throw "libxslt not supported for interpreter ${python.executable}" else
13537+ (pkgs.libxslt.override{pythonSupport=true; python2=python; inherit (self) libxml2;}).py;
13538+
1353313539 limnoria = buildPythonPackage rec {
1353413540 name = "limnoria-${version}";
1353513541 version = "2016.05.06";
@@ -18436,12 +18442,13 @@ in {
1843618442 };
1843718443
1843818444 pip = buildPythonPackage rec {
18439− version = "8.1.2";
18440− name = "pip-${version}";
18445+ pname = "pip";
18446+ version = "9.0.1";
18447+ name = "${pname}-${version}";
1844118448
1844218449 src = pkgs.fetchurl {
18443− url = "mirror://pypi/p/pip/pip-${version}.tar.gz";
18444− sha256 = "0cmpsy9lr9diskkypswm9s8glgr7w3crzh1im4zqlqv7z8zv092d";
18450+ url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz";
18451+ sha256 = "09f243e1a7b461f654c26a725fa373211bb7ff17a9300058b205c61658ca940d";
1844518452 };
1844618453
1844718454 # pip detects that we already have bootstrapped_pip "installed", so we need