nixos/locate: remove nixpkgs.config
usage
This commit is contained in:
parent
ce87196a00
commit
38461ff27a
|
@ -230,9 +230,7 @@ in
|
|||
plocate = (mkIf isPLocate (mkMerge [ common plocate ]));
|
||||
};
|
||||
|
||||
nixpkgs.config = { locate.dbfile = cfg.output; };
|
||||
|
||||
environment.systemPackages = [ cfg.locate ];
|
||||
environment.systemPackages = [ (cfg.locate.override { dbfile = cfg.output; }) ];
|
||||
|
||||
environment.variables = mkIf (!isMorPLocate) { LOCATE_PATH = cfg.output; };
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
{ lib, stdenv, fetchurl, config }:
|
||||
{ lib, stdenv, fetchurl, config, dbfile ? config.locate.dbfile or "/var/cache/locatedb" }:
|
||||
|
||||
let
|
||||
dbfile = lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config;
|
||||
in stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mlocate";
|
||||
version = "0.26";
|
||||
|
||||
|
|
|
@ -8,10 +8,8 @@
|
|||
, systemd
|
||||
, liburing
|
||||
, zstd
|
||||
, dbfile ? config.locate.dbfile or "/var/cache/locatedb"
|
||||
}:
|
||||
let
|
||||
dbfile = lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "plocate";
|
||||
version = "1.1.19";
|
||||
|
|
Loading…
Reference in New Issue
Block a user