diff options
author | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2017-01-05 20:16:48 +0100 |
---|---|---|
committer | Gregor Kleen <pngwjpgh@users.noreply.github.com> | 2017-01-26 12:57:03 +0100 |
commit | 06211e700b2b45cf5ea20b9d032322fade3da7d9 (patch) | |
tree | baf81b367eb779257cb05cc82717ccacfb8acb6b /pkgs/tools/misc/mlocate | |
parent | cc1ebd1db46e9d56feaf06b80ba88a632f8c5774 (diff) | |
download | nixlib-06211e700b2b45cf5ea20b9d032322fade3da7d9.tar nixlib-06211e700b2b45cf5ea20b9d032322fade3da7d9.tar.gz nixlib-06211e700b2b45cf5ea20b9d032322fade3da7d9.tar.bz2 nixlib-06211e700b2b45cf5ea20b9d032322fade3da7d9.tar.lz nixlib-06211e700b2b45cf5ea20b9d032322fade3da7d9.tar.xz nixlib-06211e700b2b45cf5ea20b9d032322fade3da7d9.tar.zst nixlib-06211e700b2b45cf5ea20b9d032322fade3da7d9.zip |
locate: build in correct dbpath
Diffstat (limited to 'pkgs/tools/misc/mlocate')
-rw-r--r-- | pkgs/tools/misc/mlocate/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/misc/mlocate/default.nix b/pkgs/tools/misc/mlocate/default.nix index 6dbd0bcc439a..4aef6114c57c 100644 --- a/pkgs/tools/misc/mlocate/default.nix +++ b/pkgs/tools/misc/mlocate/default.nix @@ -1,6 +1,8 @@ -{ stdenv, fetchurl }: +{ stdenv, fetchurl, config }: -stdenv.mkDerivation rec { +let + dbfile = stdenv.lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config; +in stdenv.mkDerivation rec { name = "mlocate-${version}"; version = "0.26"; @@ -10,6 +12,7 @@ stdenv.mkDerivation rec { }; buildInputs = [ ]; + makeFlags = [ "dbfile=${dbfile}" ]; meta = with stdenv.lib; { description = "Merging locate is an utility to index and quickly search for files"; |