nixpkgs/pkgs/development/web/iojs/default.nix

37 lines
1.2 KiB
Nix
Raw Normal View History

{ 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" ];
# 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;
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;
maintainers = [ maintainers.havvy ];
2015-02-08 17:35:15 +00:00
};
}