Merge pull request #7291 from Havvy/master

Update io.js

lethalman 99c0410c 1b4722ac

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