Allow lsof to build on darwin (fixes #2219)

Closes #2219, closes #2223

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
John Wiegley 2014-04-12 11:05:25 -05:00 committed by Austin Seipp
parent c3efd1a3f7
commit b296895abe

View File

@ -12,7 +12,9 @@ stdenv.mkDerivation {
preBuild = "sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;';";
configurePhase = "./Configure -n linux;";
configurePhase = if stdenv.isDarwin
then "./Configure -n darwin;"
else "./Configure -n linux;";
installPhase = ''
mkdir -p $out/bin $out/man/man8