corretions for PR comments
This commit is contained in:
parent
f02f1a490b
commit
b5b907f3fb
@ -1,11 +1,10 @@
|
||||
{ stdenv, fetchurl }:
|
||||
let pkgs = import <nixpkgs> {};
|
||||
in
|
||||
{ stdenv, fetchurl, ncurses }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "lsof-${version}";
|
||||
version = "4.89";
|
||||
|
||||
buildInputs = [ pkgs.ncurses ];
|
||||
buildInputs = [ ncurses ];
|
||||
|
||||
src = fetchurl {
|
||||
urls =
|
||||
@ -28,14 +27,17 @@ stdenv.mkDerivation rec {
|
||||
|
||||
patches = [ ./dfile.patch ];
|
||||
|
||||
preBuild = "sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;' -e s/-lcurses/-lncurses/ ;";
|
||||
|
||||
configurePhase = ''
|
||||
# Stop build scripts from searching global include paths
|
||||
# export LSOF_INCLUDE=/$(md5sum <(echo $name) | awk '{print $1}')
|
||||
export LSOF_INCLUDE=${stdenv.libc}/include
|
||||
./Configure -n ${if stdenv.isDarwin then "darwin" else "linux"}
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;' -e 's/-lcurses/-lncurses/'
|
||||
'';
|
||||
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin $out/man/man8
|
||||
cp lsof.8 $out/man/man8/
|
||||
|
Loading…
x
Reference in New Issue
Block a user