add findutils wrapper. Works for updatedb, not for locate. updatedb needs some mmore config to ignore /proc

svn path=/nixpkgs/trunk/; revision=3667
This commit is contained in:
Armijn Hemel 2005-08-23 13:47:01 +00:00
parent e4ab68cc39
commit e685273463
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,8 @@
. $stdenv/setup
. $makeWrapper
makeWrapper "$findutils/bin/locate" "$out/bin/locate" \
--database=/var/locatedb
makeWrapper "$findutils/bin/updatedb" "$out/bin/updatedb" \
--set LOCATE_DB /var/locatedb

View file

@ -0,0 +1,10 @@
{stdenv, findutils}:
stdenv.mkDerivation {
name = findutils.name;
builder = ./builder.sh;
makeWrapper = ../../../build-support/make-wrapper/make-wrapper.sh;
inherit findutils;
}