mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
use lib functions to clean up nodejs
This commit is contained in:
parent
7393c6c69d
commit
5b3e50dedc
1 changed files with 2 additions and 7 deletions
|
@ -37,15 +37,10 @@ in stdenv.mkDerivation {
|
|||
configureFlags = concatMap sharedConfigureFlags (builtins.attrNames deps) ++ [ "--without-dtrace" ];
|
||||
|
||||
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;
|
||||
|
||||
|
||||
preBuild = if stdenv.isDarwin then ''
|
||||
patchShebangs .
|
||||
'' else null;
|
||||
patches = stdenv.lib.optional stdenv.isDarwin ./no-xcode.patch;
|
||||
|
||||
buildInputs = [ python which ]
|
||||
++ (optional stdenv.isLinux utillinux)
|
||||
|
|
Loading…
Reference in a new issue