use lib functions to clean up nodejs
This commit is contained in:
parent
7393c6c69d
commit
5b3e50dedc
@ -37,15 +37,10 @@ in stdenv.mkDerivation {
|
|||||||
configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ];
|
configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
sed -e 's|^#!/usr/bin/env python$|#!${python}/bin/python|g' -i configure
|
patchShebangs .
|
||||||
'';
|
'';
|
||||||
|
|
||||||
patches = if stdenv.isDarwin then [ ./no-xcode.patch ] else null;
|
patches = stdenv.lib.optional stdenv.isDarwin ./no-xcode.patch;
|
||||||
|
|
||||||
|
|
||||||
preBuild = if stdenv.isDarwin then ''
|
|
||||||
patchShebangs .
|
|
||||||
'' else null;
|
|
||||||
|
|
||||||
buildInputs = [ python which ]
|
buildInputs = [ python which ]
|
||||||
++ (optional stdenv.isLinux utillinux)
|
++ (optional stdenv.isLinux utillinux)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user