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:
parent
e4ab68cc39
commit
e685273463
8
pkgs/tools/misc/findutils-wrapper/builder.sh
Normal file
8
pkgs/tools/misc/findutils-wrapper/builder.sh
Normal 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
|
10
pkgs/tools/misc/findutils-wrapper/default.nix
Normal file
10
pkgs/tools/misc/findutils-wrapper/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue