···1{ stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, libuv, nightly ? false }:
23let
4- version = if nightly then "1.5.2-nightly201503173c8ae2d934" else "1.5.1";
5 inherit (stdenv.lib) optional maintainers licenses platforms;
6in 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 };
1718 prePatch = ''
···1{ stdenv, fetchurl, python, utillinux, openssl, http-parser, zlib, libuv, nightly ? false }:
23let
4+ version = if nightly then "1.6.5-nightly20150409ff74931107" else "1.6.4";
5 inherit (stdenv.lib) optional maintainers licenses platforms;
6in 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 };
1718 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#
0067set -e
8···21}
2223url() {
24- nix-instantiate -A "$1" 2> /dev/null | xargs cat \
025 | sed 's/.*"urls","//;s/".*//'
26}
2728hash() {
29- nix-prefetch-url "$1" 2> /dev/null
30}
3132hash_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+#
89set -e
10···23}
2425url() {
26+ nix-instantiate -A "$1" \
27+ | xargs cat \
28 | sed 's/.*"urls","//;s/".*//'
29}
3031hash() {
32+ nix-prefetch-url "$1"
33}
3435hash_log() {