lol

Merge pull request #14973 from holidaycheck/update-libuv

libuv: 1.7.5 -> 1.9.0

+31 -91
+16 -71
pkgs/development/libraries/libuv/default.nix
··· 2 2 3 3 , ApplicationServices, CoreServices }: 4 4 5 - let 6 - stable = "stable"; 7 - unstable = "unstable"; 8 - 9 - meta = with lib; { 10 - description = "A multi-platform support library with a focus on asynchronous I/O"; 11 - homepage = https://github.com/libuv/libuv; 12 - maintainers = with maintainers; [ cstrahan ]; 13 - platforms = with platforms; linux ++ darwin; 14 - }; 15 - 16 - mkName = stability: version: 17 - if stability == stable 18 - then "libuv-${version}" 19 - else "libuv-${stability}-${version}"; 5 + stdenv.mkDerivation rec { 6 + version = "1.9.0"; 7 + name = "libuv-${version}"; 20 8 21 - mkSrc = version: sha256: fetchFromGitHub { 9 + src = fetchFromGitHub { 22 10 owner = "libuv"; 23 11 repo = "libuv"; 24 12 rev = "v${version}"; 25 - inherit sha256; 13 + sha256 = "0sq8c8n7xixn2xxp35crprvh35ry18i5mcxgwh12lydwv9ks0d4k"; 26 14 }; 27 15 28 - # for versions < 0.11.6 29 - mkWithoutAutotools = stability: version: sha256: stdenv.mkDerivation { 30 - name = mkName stability version; 31 - src = mkSrc version sha256; 32 - buildPhase = lib.optionalString stdenv.isDarwin '' 33 - mkdir extrapath 34 - ln -s /usr/sbin/dtrace extrapath/dtrace 35 - export PATH=$PATH:`pwd`/extrapath 36 - '' + '' 37 - mkdir build 38 - make builddir_name=build 16 + buildInputs = [ automake autoconf libtool pkgconfig ] 17 + ++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ]; 39 18 40 - rm -r build/src 41 - rm build/libuv.a 42 - cp -r include build 19 + preConfigure = '' 20 + LIBTOOLIZE=libtoolize ./autogen.sh 21 + ''; 43 22 44 - mkdir build/lib 45 - mv build/libuv.* build/lib 46 - 47 - pushd build/lib 48 - lib=$(basename libuv.*) 49 - ext="''${lib##*.}" 50 - mv $lib libuv.10.$ext 51 - ln -s libuv.10.$ext libuv.$ext 52 - popd 53 - ''; 54 - installPhase = '' 55 - cp -r build $out 56 - ''; 57 - inherit meta; 23 + meta = with lib; { 24 + description = "A multi-platform support library with a focus on asynchronous I/O"; 25 + homepage = https://github.com/libuv/libuv; 26 + maintainers = with maintainers; [ cstrahan ]; 27 + platforms = with platforms; linux ++ darwin; 58 28 }; 59 29 60 - # for versions > 0.11.6 61 - mkWithAutotools = stability: version: sha256: stdenv.mkDerivation { 62 - name = mkName stability version; 63 - src = mkSrc version sha256; 64 - buildInputs = [ automake autoconf libtool pkgconfig ] 65 - ++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ]; 66 - preConfigure = '' 67 - LIBTOOLIZE=libtoolize ./autogen.sh 68 - ''; 69 - inherit meta; 70 - }; 71 - 72 - toVersion = with lib; name: 73 - replaceChars ["_"] ["."] (removePrefix "v" name); 74 - 75 - in 76 - 77 - with lib; 78 - 79 - mapAttrs (v: h: mkWithAutotools unstable (toVersion v) h) { 80 - v0_11_29 = "1z07phfwryfy2155p3lxcm2a33h20sfl96lds5dghn157x6csz7m"; 81 - } 82 - // 83 - mapAttrs (v: h: mkWithAutotools stable (toVersion v) h) { 84 - v1_7_5 = "18x6cy2xn31am97vn6jli7kmb2fbp4c8kmv7jm97vggh0x55flsc"; 85 - } 30 + }
+10 -12
pkgs/development/python-modules/pyuv-external-libuv.patch
··· 1 1 diff --git a/setup.py b/setup.py 2 - index ec0caac..2c1fdb6 100644 2 + index 5071c3b..4b4a176 100644 3 3 --- a/setup.py 4 4 +++ b/setup.py 5 - @@ -6,7 +6,6 @@ try: 5 + @@ -7,7 +7,6 @@ try: 6 6 from setuptools import setup, Extension 7 7 except ImportError: 8 8 from distutils.core import setup, Extension 9 9 -from setup_libuv import libuv_build_ext, libuv_sdist 10 - 11 - 12 - __version__ = "0.11.5" 13 - @@ -32,12 +31,11 @@ setup(name = "pyuv", 10 + 11 + 12 + def get_version(): 13 + @@ -35,11 +34,10 @@ setup(name = "pyuv", 14 14 "Programming Language :: Python :: 3.3", 15 15 "Programming Language :: Python :: 3.4" 16 16 ], 17 17 - cmdclass = {'build_ext': libuv_build_ext, 18 18 - 'sdist' : libuv_sdist}, 19 - ext_modules = [Extension('pyuv', 19 + packages = ['pyuv'], 20 + ext_modules = [Extension('pyuv._cpyuv', 20 21 sources = ['src/pyuv.c'], 21 - + libraries = ['uv'], 22 - define_macros=[('MODULE_VERSION', __version__), 23 - - ('LIBUV_REVISION', libuv_build_ext.libuv_revision)] 24 - + ('LIBUV_REVISION', 'unknown')] 22 + + libraries = ['uv'] 25 23 )] 26 24 ) 27 - 25 +
+2 -5
pkgs/top-level/all-packages.nix
··· 8049 8049 then darwin.libunwind 8050 8050 else callPackage ../development/libraries/libunwind { }; 8051 8051 8052 - libuvVersions = recurseIntoAttrs (callPackage ../development/libraries/libuv { 8053 - automake = automake113x; # fails with 14 8052 + libuv = callPackage ../development/libraries/libuv { 8054 8053 inherit (darwin.apple_sdk.frameworks) ApplicationServices CoreServices; 8055 - }); 8056 - 8057 - libuv = self.libuvVersions.v1_7_5; 8054 + }; 8058 8055 8059 8056 libv4l = lowPrio (self.v4l_utils.override { 8060 8057 alsaLib = null;
+3 -3
pkgs/top-level/python-packages.nix
··· 22366 22366 }; 22367 22367 22368 22368 pyuv = buildPythonPackage rec { 22369 - name = "pyuv-0.11.5"; 22369 + name = "pyuv-1.2.0"; 22370 22370 disabled = isPyPy; # see https://github.com/saghul/pyuv/issues/49 22371 22371 22372 22372 src = pkgs.fetchurl { 22373 22373 url = "https://github.com/saghul/pyuv/archive/${name}.tar.gz"; 22374 - sha256 = "c251952cb4e54c92ab0e871decd13cf73d11ca5dba9f92962de51d12e3a310a9"; 22374 + sha256 = "19yl1l5l6dq1xr8xcv6dhx1avm350nr4v2358iggcx4ma631rycx"; 22375 22375 }; 22376 22376 22377 22377 patches = [ ../development/python-modules/pyuv-external-libuv.patch ]; 22378 22378 22379 - buildInputs = with self; [ pkgs.libuvVersions.v0_11_29 ]; 22379 + buildInputs = with self; [ pkgs.libuv ]; 22380 22380 22381 22381 meta = { 22382 22382 description = "Python interface for libuv";