2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2024-02-29 20:09:43 +00:00
|
|
|
, keybinder3
|
|
|
|
}:
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "findex";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.8.2";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mdgaziur";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "findex";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-IpgmeH5oREstud0nw4i2xYeZcJYG6eCWyw3hhid/DfU=";
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
cargoHash = "sha256-wsqsPh1kevkIz235qnkLkp47CnCh6qi56sZP95Upymc=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
2024-02-29 20:09:43 +00: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-03-04 12:14:45 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
buildInputs = [ keybinder3 ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
install -Dm644 css/style.css $out/share/findex/style.css
|
|
|
|
'';
|
2023-03-04 12:14:45 +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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2023-03-04 12:14:45 +00:00
|
|
|
};
|
|
|
|
}
|