2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, config }:
|
2016-10-25 11:58:49 +00:00
|
|
|
|
2017-01-05 19:16:48 +00:00
|
|
|
let
|
2021-01-15 09:19:50 +00:00
|
|
|
dbfile = lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config;
|
2017-01-05 19:16:48 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "mlocate";
|
2016-10-25 11:58:49 +00:00
|
|
|
version = "0.26";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://releases.pagure.org/mlocate/${pname}-${version}.tar.xz";
|
2016-10-25 11:58:49 +00:00
|
|
|
sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
2017-01-05 19:16:48 +00:00
|
|
|
makeFlags = [ "dbfile=${dbfile}" ];
|
2016-10-25 11:58:49 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-10-25 11:58:49 +00:00
|
|
|
description = "Merging locate is an utility to index and quickly search for files";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://pagure.io/mlocate";
|
2016-10-25 11:58:49 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|