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

49 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-02-10 17:54:03 +08:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
wrapGAppsHook3,
2024-02-10 17:54:03 +08:00
keybinder3,
}:
2023-01-19 19:03:49 +00:00
rustPlatform.buildRustPackage rec {
pname = "findex";
2025-05-09 00:56:52 +00:00
version = "0.8.3";
2023-01-19 19:03:49 +00:00
src = fetchFromGitHub {
owner = "mdgaziur";
2024-02-10 17:54:03 +08:00
repo = "findex";
rev = "v${version}";
2025-05-09 00:56:52 +00:00
hash = "sha256-fsudE6eXThbN9Cz8cYATcYMXT3BJ3xCw6wrXYhxro2I=";
2023-01-19 19:03:49 +00:00
};
2025-05-09 00:56:52 +00:00
cargoHash = "sha256-o3BvQq+ql/417GFkbdV4K6wCUtYGZ4QYr0lR8/K4odY=";
2023-01-19 19:03:49 +00:00
2024-02-10 17:54:03 +08: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 19:03:49 +00:00
nativeBuildInputs = [
pkg-config
wrapGAppsHook3
];
2024-02-10 17:54:03 +08:00
buildInputs = [ keybinder3 ];
postInstall = ''
install -Dm644 css/style.css $out/share/findex/style.css
'';
2023-01-19 19:03:49 +00: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 = [ ];
2023-01-19 19:03:49 +00:00
};
}