diff options
author | Tobias Pflug <tobias.pflug@holidaycheck.com> | 2016-04-25 16:04:22 +0200 |
---|---|---|
committer | Tobias Pflug <tobias.pflug@holidaycheck.com> | 2016-04-27 11:06:47 +0200 |
commit | 7dcf75bdd4eb85bce2506eb95d338a5da5e9a5e9 (patch) | |
tree | b2a622cccd5b58f9ffddda1de0d2cf23f436e163 /pkgs/development/libraries/libuv | |
parent | 25c35529f428a8d6d1149e6b2b879854e342f500 (diff) |
libuv: 1.7.5 -> 1.9.0
Diffstat (limited to 'pkgs/development/libraries/libuv')
-rw-r--r-- | pkgs/development/libraries/libuv/default.nix | 87 |
1 files changed, 16 insertions, 71 deletions
diff --git a/pkgs/development/libraries/libuv/default.nix b/pkgs/development/libraries/libuv/default.nix index 48d12321248c3..e039711e457b7 100644 --- a/pkgs/development/libraries/libuv/default.nix +++ b/pkgs/development/libraries/libuv/default.nix @@ -2,84 +2,29 @@ , ApplicationServices, CoreServices }: -let - stable = "stable"; - unstable = "unstable"; +stdenv.mkDerivation rec { + version = "1.9.0"; + name = "libuv-${version}"; - meta = with lib; { - description = "A multi-platform support library with a focus on asynchronous I/O"; - homepage = https://github.com/libuv/libuv; - maintainers = with maintainers; [ cstrahan ]; - platforms = with platforms; linux ++ darwin; - }; - - mkName = stability: version: - if stability == stable - then "libuv-${version}" - else "libuv-${stability}-${version}"; - - mkSrc = version: sha256: fetchFromGitHub { + src = fetchFromGitHub { owner = "libuv"; repo = "libuv"; rev = "v${version}"; - inherit sha256; + sha256 = "0sq8c8n7xixn2xxp35crprvh35ry18i5mcxgwh12lydwv9ks0d4k"; }; - # for versions < 0.11.6 - mkWithoutAutotools = stability: version: sha256: stdenv.mkDerivation { - name = mkName stability version; - src = mkSrc version sha256; - buildPhase = lib.optionalString stdenv.isDarwin '' - mkdir extrapath - ln -s /usr/sbin/dtrace extrapath/dtrace - export PATH=$PATH:`pwd`/extrapath - '' + '' - mkdir build - make builddir_name=build + buildInputs = [ automake autoconf libtool pkgconfig ] + ++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ]; - rm -r build/src - rm build/libuv.a - cp -r include build + preConfigure = '' + LIBTOOLIZE=libtoolize ./autogen.sh + ''; - mkdir build/lib - mv build/libuv.* build/lib - - pushd build/lib - lib=$(basename libuv.*) - ext="''${lib##*.}" - mv $lib libuv.10.$ext - ln -s libuv.10.$ext libuv.$ext - popd - ''; - installPhase = '' - cp -r build $out - ''; - inherit meta; - }; - - # for versions > 0.11.6 - mkWithAutotools = stability: version: sha256: stdenv.mkDerivation { - name = mkName stability version; - src = mkSrc version sha256; - buildInputs = [ automake autoconf libtool pkgconfig ] - ++ stdenv.lib.optionals stdenv.isDarwin [ ApplicationServices CoreServices ]; - preConfigure = '' - LIBTOOLIZE=libtoolize ./autogen.sh - ''; - inherit meta; + meta = with lib; { + description = "A multi-platform support library with a focus on asynchronous I/O"; + homepage = https://github.com/libuv/libuv; + maintainers = with maintainers; [ cstrahan ]; + platforms = with platforms; linux ++ darwin; }; - toVersion = with lib; name: - replaceChars ["_"] ["."] (removePrefix "v" name); - -in - - with lib; - - mapAttrs (v: h: mkWithAutotools unstable (toVersion v) h) { - v0_11_29 = "1z07phfwryfy2155p3lxcm2a33h20sfl96lds5dghn157x6csz7m"; - } - // - mapAttrs (v: h: mkWithAutotools stable (toVersion v) h) { - v1_7_5 = "18x6cy2xn31am97vn6jli7kmb2fbp4c8kmv7jm97vggh0x55flsc"; - } +} |