mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 20:13:21 +00:00
eb04659fc2
This was achieved using the following command: sd 'wrapGAppsHook\b' wrapGAppsHook3 (rg -l 'wrapGAppsHook\b') And then manually reverted the following changes: - alias in top-level.nix - function name in wrap-gapps-hook.sh - comment in postFixup of at-spi2-core - comment in gtk4 - comment in preFixup of 1password-gui/linux.nix - comment in postFixup of qgis/unwrapped-ltr.nix and qgis/unwrapped.nix - comment in postFixup of telegram-desktop - comment in postFixup of fwupd - buildCommand of mongodb-compass - postFixup of xflux-gui - comment in a patch in kdePackages.kde-gtk-config and plasma5Packages.kde-gtk-config - description of programs.sway.wrapperFeatures.gtk NixOS option (manual rebuild)
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, wrapGAppsHook3
|
|
, keybinder3
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "findex";
|
|
version = "0.8.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mdgaziur";
|
|
repo = "findex";
|
|
rev = "v${version}";
|
|
hash = "sha256-rxOVrl2Q27z5oo1J6D4ft4fKaOMOadmidflD0jK0+3k=";
|
|
};
|
|
|
|
cargoHash = "sha256-MiD96suB88NZWg7Ay/ACZfOeE66WOe9dLsvtOhCQgGo=";
|
|
|
|
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"
|
|
'';
|
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook3 ];
|
|
|
|
buildInputs = [ keybinder3 ];
|
|
|
|
postInstall = ''
|
|
install -Dm644 css/style.css $out/share/findex/style.css
|
|
'';
|
|
|
|
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 ];
|
|
};
|
|
}
|