2016-04-25 15:10:10 +01:00
|
|
|
{ stdenv, fetchurl, openssl, python, zlib, libuv, v8, utillinux, http-parser
|
|
|
|
, pkgconfig, runCommand, which, libtool
|
|
|
|
, callPackage
|
2016-07-22 09:00:26 +01:00
|
|
|
, darwin ? null
|
2016-04-25 15:10:10 +01:00
|
|
|
}@args:
|
|
|
|
|
2016-07-22 09:00:26 +01:00
|
|
|
let
|
|
|
|
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;
|
|
|
|
|
|
|
|
in import ./nodejs.nix (args // rec {
|
2016-09-16 18:26:17 +01:00
|
|
|
version = "6.6.0";
|
|
|
|
sha256 = "0cqswab9idbz5kzj50fnalg1zrircmbn9qga0cr33lvjnv98a134";
|
2016-07-22 09:00:26 +01:00
|
|
|
extraBuildInputs = stdenv.lib.optionals stdenv.isDarwin
|
|
|
|
[ CoreServices ApplicationServices ];
|
|
|
|
preBuild = stdenv.lib.optionalString stdenv.isDarwin ''
|
2016-07-14 13:56:45 +01:00
|
|
|
sed -i -e "s|tr1/type_traits|type_traits|g" \
|
|
|
|
-e "s|std::tr1|std|" src/util.h
|
|
|
|
'';
|
2016-04-25 15:10:10 +01:00
|
|
|
})
|