Merge pull request #14979 from adnelson/purify_lsof
lsof: stop configure script from searching /usr paths
This commit is contained in:
commit
496b751313
|
@ -19,9 +19,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
preBuild = "sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;';";
|
||||
|
||||
configurePhase = if stdenv.isDarwin
|
||||
then "./Configure -n darwin;"
|
||||
else "./Configure -n linux;";
|
||||
configurePhase = ''
|
||||
# Stop build scripts from searching global include paths
|
||||
export LSOF_INCLUDE=/$(md5sum <(echo $name) | awk '{print $1}')
|
||||
./Configure -n ${if stdenv.isDarwin then "darwin" else "linux"}
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/man/man8
|
||||
|
|
Loading…
Reference in New Issue