nixpkgs/pkgs/applications/misc/findex/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.1 KiB
Nix
Raw Normal View History

2024-02-10 10:54:03 +01:00
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, wrapGAppsHook
, keybinder3
}:
2023-01-19 20:03:49 +01:00
rustPlatform.buildRustPackage rec {
pname = "findex";
2024-02-10 10:54:03 +01:00
version = "0.8.1";
2023-01-19 20:03:49 +01:00
src = fetchFromGitHub {
owner = "mdgaziur";
2024-02-10 10:54:03 +01:00
repo = "findex";
2023-01-19 20:03:49 +01:00
rev = "v${version}";
2024-02-10 10:54:03 +01:00
hash = "sha256-rxOVrl2Q27z5oo1J6D4ft4fKaOMOadmidflD0jK0+3k=";
2023-01-19 20:03:49 +01:00
};
2024-02-10 10:54:03 +01:00
cargoHash = "sha256-MiD96suB88NZWg7Ay/ACZfOeE66WOe9dLsvtOhCQgGo=";
2023-01-19 20:03:49 +01:00
2024-02-10 10:54:03 +01:00
postPatch = ''
# failing rust documentation tests and faulty quotes "`README.md`"
sed -i '/^\/\/\//d' ./crates/findex-plugin/src/lib.rs
substituteInPlace ./crates/findex/src/gui/css.rs \
--replace-fail '/opt/findex/style.css' "$out/share/findex/style.css"
'';
2023-01-19 20:03:49 +01:00
2024-02-10 10:54:03 +01:00
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
buildInputs = [ keybinder3 ];
postInstall = ''
install -Dm644 css/style.css $out/share/findex/style.css
'';
2023-01-19 20:03:49 +01:00
meta = with lib; {
description = "Highly customizable application finder written in Rust and uses Gtk3";
homepage = "https://github.com/mdgaziur/findex";
license = licenses.gpl3Only;
platforms = platforms.linux;
maintainers = [ maintainers.pinkcreeper100 ];
};
}