2015-05-29 20:03:05 +01:00
|
|
|
{ stdenv, fetchurl, python, utillinux, openssl_1_0_2, http-parser, zlib, libuv }:
|
2015-02-08 17:35:15 +00:00
|
|
|
|
|
|
|
let
|
2015-06-01 14:34:31 +01:00
|
|
|
version = "2.2.1";
|
2015-02-08 17:35:15 +00:00
|
|
|
inherit (stdenv.lib) optional maintainers licenses platforms;
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "iojs-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-09 18:57:37 +01:00
|
|
|
url = "https://iojs.org/dist/v${version}/iojs-v${version}.tar.gz";
|
2015-06-01 14:34:31 +01:00
|
|
|
sha256 = "1ylmj69nwhqqwn1grphlrzny9dp4bspx4172q41izr6dyk29rrsm";
|
2015-02-08 17:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i configure
|
|
|
|
'';
|
|
|
|
|
2015-02-22 11:41:33 +00:00
|
|
|
configureFlags = [ "--shared-openssl" "--shared-http-parser" "--shared-zlib" "--shared-libuv" ];
|
2015-02-22 11:00:34 +00:00
|
|
|
|
2015-05-29 20:03:05 +01:00
|
|
|
# iojs has --enable-static but no --disable-static. Automatically adding --disable-static
|
|
|
|
# causes configure to fail, so don't add --disable-static.
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
buildInputs = [ python openssl_1_0_2 http-parser zlib libuv ] ++ (optional stdenv.isLinux utillinux);
|
2015-02-08 17:35:15 +00:00
|
|
|
setupHook = ../nodejs/setup-hook.sh;
|
|
|
|
|
2015-02-23 12:24:18 +00:00
|
|
|
passthru.interpreterName = "iojs";
|
|
|
|
|
2015-02-08 17:35:15 +00:00
|
|
|
meta = {
|
|
|
|
description = "A friendly fork of Node.js with an open governance model";
|
|
|
|
homepage = https://iojs.org/;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2015-06-01 04:17:59 +01:00
|
|
|
maintainers = [ maintainers.havvy ];
|
2015-02-08 17:35:15 +00:00
|
|
|
};
|
|
|
|
}
|