mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-18 10:53:52 +00:00
parent
b1da480910
commit
2473f4eba4
45
pkgs/tools/misc/plocate/default.nix
Normal file
45
pkgs/tools/misc/plocate/default.nix
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchgit
|
||||||
|
, pkg-config
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, systemd
|
||||||
|
, liburing
|
||||||
|
, zstd
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "plocate";
|
||||||
|
version = "1.1.7";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://git.sesse.net/plocate";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-5Ie4qgiKUoI9Kma6YvjXirvBbpbKVuaMSSAZa36zN3M=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
sed -i meson.build \
|
||||||
|
-e "s@unitdir =.*@unitdir = '$out/lib/systemd/system'@" \
|
||||||
|
-e '/mkdir\.sh/d'
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
||||||
|
|
||||||
|
buildInputs = [ systemd liburing zstd ];
|
||||||
|
|
||||||
|
mesonFlags = [
|
||||||
|
# I don't know why we can't do this but instead have to resort to patching meson.build
|
||||||
|
# "-Dsystemdsystemunitdir=${placeholder "out"}/etc/systemd/system"
|
||||||
|
"-Dsharedstatedir=/var/lib"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Much faster locate";
|
||||||
|
homepage = "https://plocate.sesse.net/";
|
||||||
|
license = licenses.mit;
|
||||||
|
maintainers = with maintainers; [ peterhoeg ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
@ -25804,6 +25804,8 @@ in
|
|||||||
|
|
||||||
mlocate = callPackage ../tools/misc/mlocate { };
|
mlocate = callPackage ../tools/misc/mlocate { };
|
||||||
|
|
||||||
|
plocate = callPackage ../tools/misc/plocate { };
|
||||||
|
|
||||||
mypaint = callPackage ../applications/graphics/mypaint { };
|
mypaint = callPackage ../applications/graphics/mypaint { };
|
||||||
|
|
||||||
mypaint-brushes1 = callPackage ../development/libraries/mypaint-brushes/1.0.nix { };
|
mypaint-brushes1 = callPackage ../development/libraries/mypaint-brushes/1.0.nix { };
|
||||||
|
Loading…
Reference in New Issue
Block a user