2015-05-29 21:03:05 +02:00
|
|
|
{ stdenv, fetchurl, python, utillinux, openssl_1_0_2, http-parser, zlib, libuv }:
|
2015-02-08 18:35:15 +01:00
|
|
|
|
|
|
|
let
|
2015-08-20 13:21:53 +02:00
|
|
|
version = "3.1.0";
|
2015-02-08 18:35:15 +01:00
|
|
|
inherit (stdenv.lib) optional maintainers licenses platforms;
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "iojs-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2015-04-09 19:57:37 +02:00
|
|
|
url = "https://iojs.org/dist/v${version}/iojs-v${version}.tar.gz";
|
2015-08-20 13:21:53 +02:00
|
|
|
sha256 = "15qh5pscg3588hyf4yfhma34gjkg87v5i4xzxj804g6m52m6y727";
|
2015-02-08 18:35:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i configure
|
|
|
|
'';
|
|
|
|
|
2015-02-22 12:41:33 +01:00
|
|
|
configureFlags = [ "--shared-openssl" "--shared-http-parser" "--shared-zlib" "--shared-libuv" ];
|
2015-02-22 12:00:34 +01:00
|
|
|
|
2015-05-29 21:03:05 +02: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 18:35:15 +01:00
|
|
|
setupHook = ../nodejs/setup-hook.sh;
|
|
|
|
|
2015-02-23 13:24:18 +01:00
|
|
|
passthru.interpreterName = "iojs";
|
|
|
|
|
2015-02-08 18:35:15 +01: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 05:17:59 +02:00
|
|
|
maintainers = [ maintainers.havvy ];
|
2015-02-08 18:35:15 +01:00
|
|
|
};
|
|
|
|
}
|