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/;';";
|
preBuild = "sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;';";
|
||||||
|
|
||||||
configurePhase = if stdenv.isDarwin
|
configurePhase = ''
|
||||||
then "./Configure -n darwin;"
|
# Stop build scripts from searching global include paths
|
||||||
else "./Configure -n linux;";
|
export LSOF_INCLUDE=/$(md5sum <(echo $name) | awk '{print $1}')
|
||||||
|
./Configure -n ${if stdenv.isDarwin then "darwin" else "linux"}
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin $out/man/man8
|
mkdir -p $out/bin $out/man/man8
|
||||||
|
|
Loading…
Reference in New Issue