about summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-12-26 17:13:37 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-12-26 17:13:37 +0000
commit40c9f1a764081de22fb32908700fd3b85aa75d6e (patch)
tree12c96132a8d089d926013eb63aea23dc71672eca /pkgs/tools/misc
parente8488e3b7160df9863ece8e7e5151f874f2e7523 (diff)
downloadnixlib-40c9f1a764081de22fb32908700fd3b85aa75d6e.tar
nixlib-40c9f1a764081de22fb32908700fd3b85aa75d6e.tar.gz
nixlib-40c9f1a764081de22fb32908700fd3b85aa75d6e.tar.bz2
nixlib-40c9f1a764081de22fb32908700fd3b85aa75d6e.tar.lz
nixlib-40c9f1a764081de22fb32908700fd3b85aa75d6e.tar.xz
nixlib-40c9f1a764081de22fb32908700fd3b85aa75d6e.tar.zst
nixlib-40c9f1a764081de22fb32908700fd3b85aa75d6e.zip
add a statically compiled version of findutils for the inital stdenv and NixOS
svn path=/nixpkgs/trunk/; revision=4441
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/findutils-static/default.nix13
-rw-r--r--pkgs/tools/misc/findutils-static/findutils-path.patch12
2 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/tools/misc/findutils-static/default.nix b/pkgs/tools/misc/findutils-static/default.nix
new file mode 100644
index 000000000000..1f5702f93f45
--- /dev/null
+++ b/pkgs/tools/misc/findutils-static/default.nix
@@ -0,0 +1,13 @@
+{stdenv, fetchurl, coreutils}:
+
+stdenv.mkDerivation {
+  name = "findutils-4.2.26";
+  src = fetchurl {
+    url = http://ftp.gnu.org/pub/gnu/findutils/findutils-4.2.26.tar.gz;
+    md5 = "9ac4e62937b1fdc4eb643d1d4bf117d3";
+  };
+  buildInputs = [coreutils];
+  patches = [./findutils-path.patch];
+  LDFLAGS="-static";
+  configureFlags="--disable-nls --without-included-regex";
+}
diff --git a/pkgs/tools/misc/findutils-static/findutils-path.patch b/pkgs/tools/misc/findutils-static/findutils-path.patch
new file mode 100644
index 000000000000..be8d85be3033
--- /dev/null
+++ b/pkgs/tools/misc/findutils-static/findutils-path.patch
@@ -0,0 +1,12 @@
+diff -ruN findutils-4.2.20/locate/updatedb.sh findutils-4.2.20.new/locate/updatedb.sh
+--- findutils-4.2.20/locate/updatedb.sh	2005-01-24 17:12:35.000000000 +0100
++++ findutils-4.2.20.new/locate/updatedb.sh	2005-08-23 14:37:10.000000000 +0200
+@@ -141,7 +141,7 @@
+ : ${code:=${LIBEXECDIR}/@code@}
+ 
+ 
+-PATH=/bin:/usr/bin:${BINDIR}; export PATH
++PATH=/bin:/usr/bin:${BINDIR}:${PATH}; export PATH
+ 
+ : ${PRUNEFS="nfs NFS proc afs proc smbfs autofs iso9660 ncpfs coda devpts ftpfs devfs mfs sysfs shfs"}
+