nixpkgs/pkgs/tools/misc/mlocate/default.nix

25 lines
704 B
Nix
Raw Normal View History

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