use lib functions to clean up nodejs

This commit is contained in:
Jude Taylor 2015-07-09 15:43:01 -07:00
parent 7393c6c69d
commit 5b3e50dedc

View File

@ -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)