about summary refs log tree commit diff
path: root/pkgs/tools/misc/mlocate
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2023-10-02 15:10:22 +0300
committerK900 <me@0upti.me>2023-10-02 15:10:22 +0300
commit524181b5b817b1d2aac2693a6058558679555450 (patch)
tree74f6c376365fcaef3560775e9b39b244585cde26 /pkgs/tools/misc/mlocate
parent061e2b87d39e76993c4a33629825fdc5ceaec436 (diff)
nixos/locate: rip out dbfile overrides
All the locate versions we have support LOCATE_PATH, so just use that
instead of adding indirections all over the place AND forcing people
to rebuild their locate implementation if they want the path changed.
Diffstat (limited to 'pkgs/tools/misc/mlocate')
-rw-r--r--pkgs/tools/misc/mlocate/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/tools/misc/mlocate/default.nix b/pkgs/tools/misc/mlocate/default.nix
index b57f109eda0ad..4cc86df5a8977 100644
--- a/pkgs/tools/misc/mlocate/default.nix
+++ b/pkgs/tools/misc/mlocate/default.nix
@@ -1,4 +1,4 @@
-{ lib, stdenv, fetchurl, config, dbfile ? config.locate.dbfile or "/var/cache/locatedb" }:
+{ lib, stdenv, fetchurl }:
 
 stdenv.mkDerivation rec {
   pname = "mlocate";
@@ -9,9 +9,6 @@ stdenv.mkDerivation rec {
     sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh";
   };
 
-  buildInputs = [ ];
-  makeFlags = [ "dbfile=${dbfile}" ];
-
   meta = with lib; {
     description = "Merging locate is an utility to index and quickly search for files";
     homepage = "https://pagure.io/mlocate";