Merge pull request #7291 from Havvy/master

Update io.js

lethalman 99c0410c 1b4722ac

+8 -5
+3 -3
pkgs/development/web/iojs/default.nix
··· 1 { stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, libuv, nightly ? false }: 2 3 let 4 - version = if nightly then "1.5.2-nightly201503173c8ae2d934" else "1.5.1"; 5 inherit (stdenv.lib) optional maintainers licenses platforms; 6 in stdenv.mkDerivation { 7 name = "iojs-${version}"; ··· 11 then "https://iojs.org/download/nightly/v${version}/iojs-v${version}.tar.gz" 12 else "https://iojs.org/dist/v${version}/iojs-v${version}.tar.gz"; 13 sha256 = if nightly 14 - then "10blf1hr80fknrzyrbj7qy2xn7wilnyn6y2r7ijrw2gns4ia3d0h" 15 - else "0zdxdb9n0yk6dp6j6x3bka7vrnf7kz8jjcpl6fw5fr9f742s9s26"; 16 }; 17 18 prePatch = ''
··· 1 { stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, libuv, nightly ? false }: 2 3 let 4 + version = if nightly then "1.6.5-nightly20150409ff74931107" else "1.6.4"; 5 inherit (stdenv.lib) optional maintainers licenses platforms; 6 in stdenv.mkDerivation { 7 name = "iojs-${version}"; ··· 11 then "https://iojs.org/download/nightly/v${version}/iojs-v${version}.tar.gz" 12 else "https://iojs.org/dist/v${version}/iojs-v${version}.tar.gz"; 13 sha256 = if nightly 14 + then "04f7r4iv8p0jfylw4sxg3vsv14rbsi6n9hbqnwvdh6554yrm6d35" 15 + else "1qzvf7g457dppzxn23wppjcm09vh1n6bhsvz5szhwgjvl0iv2pc7"; 16 }; 17 18 prePatch = ''
+5 -2
pkgs/development/web/iojs/update-iojs
··· 3 # Fetch the latest io.js release (stable/nightly) and update 4 # `default.nix` in this directory. 5 # 6 7 set -e 8 ··· 21 } 22 23 url() { 24 - nix-instantiate -A "$1" 2> /dev/null | xargs cat \ 25 | sed 's/.*"urls","//;s/".*//' 26 } 27 28 hash() { 29 - nix-prefetch-url "$1" 2> /dev/null 30 } 31 32 hash_log() {
··· 3 # Fetch the latest io.js release (stable/nightly) and update 4 # `default.nix` in this directory. 5 # 6 + # Call this from the root of your nixpkgs directory. 7 + # 8 9 set -e 10 ··· 23 } 24 25 url() { 26 + nix-instantiate -A "$1" \ 27 + | xargs cat \ 28 | sed 's/.*"urls","//;s/".*//' 29 } 30 31 hash() { 32 + nix-prefetch-url "$1" 33 } 34 35 hash_log() {