17 lines
513 B
Nix
17 lines
513 B
Nix
{ stdenv, fetchurl, openssl, python2, zlib, libuv, v8, utillinux, http-parser
|
|
, pkgconfig, runCommand, which, libtool
|
|
, callPackage
|
|
}@args:
|
|
|
|
import ./nodejs.nix (args // rec {
|
|
version = "4.6.0";
|
|
src = fetchurl {
|
|
url = "http://nodejs.org/dist/v${version}/node-v${version}.tar.xz";
|
|
sha256 = "1566q1kkv8j30fgqx8sm2h8323f38wwpa1hfb10gr6z46jyhv4a2";
|
|
};
|
|
|
|
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
substituteInPlace src/util.h \
|
|
--replace "tr1/type_traits" "type_traits"
|
|
'';
|
|
})
|