1{ stdenv, fetchurl, config }:
2
3let
4 dbfile = stdenv.lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config;
5in stdenv.mkDerivation rec {
6 name = "mlocate-${version}";
7 version = "0.26";
8
9 src = fetchurl {
10 url = "http://fedorahosted.org/releases/m/l/mlocate/${name}.tar.xz";
11 sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh";
12 };
13
14 buildInputs = [ ];
15 makeFlags = [ "dbfile=${dbfile}" ];
16
17 meta = with stdenv.lib; {
18 description = "Merging locate is an utility to index and quickly search for files";
19 homepage = https://fedorahosted.org/mlocate/;
20 license = licenses.gpl2;
21 platforms = platforms.linux;
22 maintainers = with maintainers; [ ];
23 };
24}