Merge pull request #21686 from pngwjpgh/locate

locate: extend module
This commit is contained in:
Jörg Thalheim
2017-01-26 14:01:54 +01:00
committed by GitHub
4 changed files with 83 additions and 27 deletions

View File

@@ -1,6 +1,8 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, config }:
stdenv.mkDerivation rec {
let
dbfile = stdenv.lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config;
in stdenv.mkDerivation rec {
name = "mlocate-${version}";
version = "0.26";
@@ -10,6 +12,7 @@ stdenv.mkDerivation rec {
};
buildInputs = [ ];
makeFlags = [ "dbfile=${dbfile}" ];
meta = with stdenv.lib; {
description = "Merging locate is an utility to index and quickly search for files";