mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
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:
parent
c3efd1a3f7
commit
b296895abe
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue