3
0
Fork 0
forked from mirrors/nixpkgs

Remove my darwin workarounds for node.js

This commit is contained in:
Sander van der Burg 2013-01-07 17:01:50 +01:00
parent eecb135cad
commit 03621d4cd8
2 changed files with 4 additions and 8 deletions

View file

@ -18,7 +18,6 @@ stdenv.mkDerivation rec {
};
configurePhase = ''
${stdenv.lib.optionalString (stdenv.system == "x86_64-darwin") "export PATH=/usr/bin:$PATH"}
mkdir build/gyp
ln -sv ${gyp}/bin/gyp build/gyp/gyp
'';

View file

@ -12,18 +12,15 @@ stdenv.mkDerivation rec {
configureFlags = [
"--openssl-includes=${openssl}/include"
"--openssl-libpath=${openssl}/lib"
#"--shared-v8"
#"--shared-v8-includes=${v8}/includes"
#"--shared-v8-libpath=${v8}/lib"
"--shared-v8"
"--shared-v8-includes=${v8}/includes"
"--shared-v8-libpath=${v8}/lib"
];
#patches = stdenv.lib.optional stdenv.isDarwin ./no-arch-flag.patch;
prePatch = ''
sed=$(type -p sed)
export PATH=/usr/bin:$PATH
$sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i tools/{*.py,waf-light,node-waf} configure
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i tools/{*.py,waf-light,node-waf} configure
'';
postInstall = ''