summary refs log blame commit diff
path: root/pkgs/tools/misc/mlocate/default.nix
blob: 12d9f5622cc4a04ddaa9a84bea6977130a0e06de (plain) (tree)
1
2
3
4
5
6
7
8
9
                                  
 
   
                                                                             
                            
                    


                   
                                                                           



                                                                    
                                     
 
                    
                                                                                       
                                           




                                        
{ lib, stdenv, fetchurl, config }:

let
  dbfile = lib.attrByPath [ "locate" "dbfile" ] "/var/cache/locatedb" config;
in stdenv.mkDerivation rec {
  pname = "mlocate";
  version = "0.26";

  src = fetchurl {
    url = "https://releases.pagure.org/mlocate/${pname}-${version}.tar.xz";
    sha256 = "0gi6y52gkakhhlnzy0p6izc36nqhyfx5830qirhvk3qrzrwxyqrh";
  };

  buildInputs = [ ];
  makeFlags = [ "dbfile=${dbfile}" ];

  meta = with lib; {
    description = "Merging locate is an utility to index and quickly search for files";
    homepage = "https://pagure.io/mlocate";
    license = licenses.gpl2;
    platforms = platforms.linux;
    maintainers = with maintainers; [ ];
  };
}