about summary refs log tree commit diff
path: root/pkgs/development/tools/misc/lsof
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2018-03-17 21:39:16 -0400
committerShea Levy <shea@shealevy.com>2018-03-17 21:39:16 -0400
commit0d0672e95c6d6836d1202ad007a3025e317881ea (patch)
tree9a11e82d79a416d06e6ffefe985eec5084dd7eb1 /pkgs/development/tools/misc/lsof
parented4165570e153f1b4164c00cea58ea705438d9e9 (diff)
lsof: Add (temporary?) tarball URL and fix eval on darwin.
Diffstat (limited to 'pkgs/development/tools/misc/lsof')
-rw-r--r--pkgs/development/tools/misc/lsof/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/tools/misc/lsof/default.nix b/pkgs/development/tools/misc/lsof/default.nix
index 8b89fd80c1a55..53b960a7c0311 100644
--- a/pkgs/development/tools/misc/lsof/default.nix
+++ b/pkgs/development/tools/misc/lsof/default.nix
@@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
   buildInputs = [ ncurses ];
 
   src = fetchurl {
-    urls =
+    urls = ["https://fossies.org/linux/misc/lsof_4.90.tar.bz2"] ++ # Mirrors seem to be down...
       ["ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_${version}.tar.bz2"]
       ++ map (
         # the tarball is moved after new version is released
@@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
   '';
 
   # Stop build scripts from searching global include paths
-  LSOF_INCLUDE = "${stdenv.cc.libc.dev}/include";
+  LSOF_INCLUDE = "${stdenv.lib.getDev stdenv.cc.libc}/include";
   configurePhase = "LINUX_CONF_CC=$CC_FOR_BUILD LSOF_CC=$CC LSOF_AR=\"$AR cr\" LSOF_RANLIB=$RANLIB ./Configure -n ${dialect}";
   preBuild = ''
     for filepath in $(find dialects/${dialect} -type f); do