git.iko.soy/typeable/nixpkgs
on master help sign in
corretions for PR comments
commitb5b907f3fb76bdde0b95a598bbe4ba71187b37ea authorJi-Haeng Huh <jhhuh.note@gmail.com> dateWed 5 Oct 2016, 01:27 (10 years ago) parentf02f1a4
1 file changed+10−8
pkgs/development/tools/misc/lsof/default.nix+10−8
pkgs/development/tools/misc/lsof/default.nix+10−8
@@ -1,11 +1,10 @@
1−{ stdenv, fetchurl }:
2−let pkgs = import <nixpkgs> {};
3−in
1+{ stdenv, fetchurl, ncurses }:
2+
43stdenv.mkDerivation rec {
54 name = "lsof-${version}";
65 version = "4.89";
76
8− buildInputs = [ pkgs.ncurses ];
7+ buildInputs = [ ncurses ];
98
109 src = fetchurl {
1110 urls =
@@ -25,16 +24,19 @@ stdenv.mkDerivation rec {
2524 };
2625
2726 unpackPhase = "tar xvjf $src; cd lsof_*; tar xvf lsof_*.tar; sourceRoot=$( echo lsof_*/); ";
28−
27+
2928 patches = [ ./dfile.patch ];
3029
31− preBuild = "sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;' -e s/-lcurses/-lncurses/ ;";
32−
3330 configurePhase = ''
3431 # Stop build scripts from searching global include paths
35− # export LSOF_INCLUDE=/$(md5sum <(echo $name) | awk '{print $1}')
32+ export LSOF_INCLUDE=${stdenv.libc}/include
3633 ./Configure -n ${if stdenv.isDarwin then "darwin" else "linux"}
3734 '';
35+
36+ preBuild = ''
37+ sed -i Makefile -e 's/^CFGF=/& -DHASIPv6=1/;' -e 's/-lcurses/-lncurses/'
38+ '';
39+
3840
3941 installPhase = ''
4042 mkdir -p $out/bin $out/man/man8