2023-10-09 19:29:22 +00:00
|
|
|
{ stdenv
|
2021-06-28 23:13:55 +00:00
|
|
|
, lib
|
|
|
|
, fetchgit
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, systemd
|
|
|
|
, liburing
|
|
|
|
, zstd
|
|
|
|
}:
|
2022-02-20 05:27:41 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-28 23:13:55 +00:00
|
|
|
pname = "plocate";
|
2024-01-25 14:12:00 +00:00
|
|
|
version = "1.1.22";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.sesse.net/plocate";
|
|
|
|
rev = version;
|
2024-01-25 14:12:00 +00:00
|
|
|
sha256 = "sha256-ejv1IsjbImnvI1oorvMoIvTBu3HuVy7VtgHNTIkqqro=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i meson.build \
|
|
|
|
-e '/mkdir\.sh/d'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ systemd liburing zstd ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
2022-01-25 03:21:06 +00:00
|
|
|
"-Dsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
2023-10-09 19:29:22 +00:00
|
|
|
"-Dsharedstatedir=/var/cache"
|
|
|
|
"-Ddbpath=locatedb"
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Much faster locate";
|
|
|
|
homepage = "https://plocate.sesse.net/";
|
|
|
|
license = licenses.mit;
|
2022-01-25 03:21:06 +00:00
|
|
|
maintainers = with maintainers; [ peterhoeg SuperSandro2000 ];
|
2021-06-28 23:13:55 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|