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