locate: build in correct dbpath

This commit is contained in:
Gregor Kleen
2017-01-05 20:16:48 +01:00
parent cc1ebd1db4
commit 06211e700b
3 changed files with 12 additions and 4 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";