Loading nixos/modules/misc/locate.nix +6 −6 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ let cfg = config.services.locate; isMLocate = hasPrefix "mlocate" cfg.locate.name; isPLocate = hasPrefix "plocate" cfg.locate.name; isMorPLocate = (isMLocate || isPLocate); isMorPLocate = isMLocate || isPLocate; isFindutils = hasPrefix "findutils" cfg.locate.name; in { Loading Loading @@ -216,18 +216,18 @@ in setgid = true; setuid = false; }; mlocate = (mkIf isMLocate { mlocate = mkIf isMLocate { group = "mlocate"; source = "${cfg.locate}/bin/locate"; }); plocate = (mkIf isPLocate { }; plocate = mkIf isPLocate { group = "plocate"; source = "${cfg.locate}/bin/plocate"; }); }; in mkIf isMorPLocate { locate = mkMerge [ common mlocate plocate ]; plocate = (mkIf isPLocate (mkMerge [ common plocate ])); plocate = mkIf isPLocate (mkMerge [ common plocate ]); }; environment.systemPackages = [ cfg.locate ]; Loading pkgs/tools/misc/mlocate/default.nix +5 −1 Original line number Diff line number Diff line Loading @@ -5,10 +5,14 @@ stdenv.mkDerivation rec { version = "0.26"; src = fetchurl { url = "https://releases.pagure.org/mlocate/${pname}-${version}.tar.xz"; url = "https://releases.pagure.org/mlocate/mlocate-${version}.tar.xz"; sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh"; }; makeFlags = [ "dbfile=/var/cache/locatedb" ]; meta = with lib; { description = "Merging locate is an utility to index and quickly search for files"; homepage = "https://pagure.io/mlocate"; Loading pkgs/tools/misc/plocate/default.nix +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dsystemunitdir=${placeholder "out"}/etc/systemd/system" "-Dsharedstatedir=/var/cache" "-Ddbpath=locatedb" ]; meta = with lib; { Loading Loading
nixos/modules/misc/locate.nix +6 −6 Original line number Diff line number Diff line Loading @@ -6,7 +6,7 @@ let cfg = config.services.locate; isMLocate = hasPrefix "mlocate" cfg.locate.name; isPLocate = hasPrefix "plocate" cfg.locate.name; isMorPLocate = (isMLocate || isPLocate); isMorPLocate = isMLocate || isPLocate; isFindutils = hasPrefix "findutils" cfg.locate.name; in { Loading Loading @@ -216,18 +216,18 @@ in setgid = true; setuid = false; }; mlocate = (mkIf isMLocate { mlocate = mkIf isMLocate { group = "mlocate"; source = "${cfg.locate}/bin/locate"; }); plocate = (mkIf isPLocate { }; plocate = mkIf isPLocate { group = "plocate"; source = "${cfg.locate}/bin/plocate"; }); }; in mkIf isMorPLocate { locate = mkMerge [ common mlocate plocate ]; plocate = (mkIf isPLocate (mkMerge [ common plocate ])); plocate = mkIf isPLocate (mkMerge [ common plocate ]); }; environment.systemPackages = [ cfg.locate ]; Loading
pkgs/tools/misc/mlocate/default.nix +5 −1 Original line number Diff line number Diff line Loading @@ -5,10 +5,14 @@ stdenv.mkDerivation rec { version = "0.26"; src = fetchurl { url = "https://releases.pagure.org/mlocate/${pname}-${version}.tar.xz"; url = "https://releases.pagure.org/mlocate/mlocate-${version}.tar.xz"; sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh"; }; makeFlags = [ "dbfile=/var/cache/locatedb" ]; meta = with lib; { description = "Merging locate is an utility to index and quickly search for files"; homepage = "https://pagure.io/mlocate"; Loading
pkgs/tools/misc/plocate/default.nix +2 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,8 @@ stdenv.mkDerivation rec { mesonFlags = [ "-Dsystemunitdir=${placeholder "out"}/etc/systemd/system" "-Dsharedstatedir=/var/cache" "-Ddbpath=locatedb" ]; meta = with lib; { Loading