2017-01-05 20:16:48 +01:00
|
|
|
{ stdenv, fetchurl, config }:
|
2016-10-25 13:58:49 +02:00
|
|
|
|
2017-01-05 20:16:48 +01:00
|
|
|
let
|
|
|
|
dbfile = stdenv.lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config;
|
|
|
|
in stdenv.mkDerivation rec {
|
2016-10-25 13:58:49 +02:00
|
|
|
name = "mlocate-${version}";
|
|
|
|
version = "0.26";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-20 15:31:42 +01:00
|
|
|
url = "https://releases.pagure.org/mlocate/${name}.tar.xz";
|
2016-10-25 13:58:49 +02:00
|
|
|
sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ];
|
2017-01-05 20:16:48 +01:00
|
|
|
makeFlags = [ "dbfile=${dbfile}" ];
|
2016-10-25 13:58:49 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Merging locate is an utility to index and quickly search for files";
|
2017-11-20 15:31:42 +01:00
|
|
|
homepage = https://pagure.io/mlocate;
|
2016-10-25 13:58:49 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
|
|
|
}
|