mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
25 lines
689 B
Nix
25 lines
689 B
Nix
{ stdenv, fetchurl, config }:
|
|
|
|
let
|
|
dbfile = stdenv.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 stdenv.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; [ ];
|
|
};
|
|
}
|