hyprgui: 0.1.8 -> 0.1.9

This commit is contained in:
Francesco Carmelo Capria 2024-11-18 18:22:05 +01:00
parent 1e0760b7a4
commit 6b75aa3623

View File

@ -12,16 +12,16 @@
rustPlatform.buildRustPackage rec {
pname = "hyprgui";
version = "0.1.8";
version = "0.1.9";
src = fetchFromGitHub {
owner = "hyprutils";
repo = "hyprgui";
rev = "refs/tags/v${version}";
hash = "sha256-Bg1S/FhduRSSXc3Yd7SkyrmMKff7oh0jw781jTB0J60=";
hash = "sha256-VP+6qWu4nv8h9LLjTnl8Mh1aAlIA+zuufRYoouxl2Tc=";
};
cargoHash = "sha256-bhtmU0vGptUYrPN/BbbSvSa27Ykma8UI6TS17eiQkyU=";
cargoHash = "sha256-t0HqraCA4q7K4EEtPS8J0ZmnhBB+Zf0aX+yXSUdKJzo=";
strictDeps = true;
@ -29,6 +29,7 @@ rustPlatform.buildRustPackage rec {
pkg-config
wrapGAppsHook4
];
buildInputs = [
glib
cairo
@ -36,9 +37,15 @@ rustPlatform.buildRustPackage rec {
gtk4
];
prePatch = ''
substituteInPlace hyprgui.desktop \
--replace-fail "/usr/bin/" ""
'';
postInstall = ''
install -Dm644 -t $out/usr/share/icons hyprgui.png
install -Dm644 -t $out/usr/share/applications hyprgui.desktop
install -Dm644 -t $out/usr/share/licenses/${pname} LICENSE
'';
meta = {