Skip to content

Commit

Permalink
hyprgui: 0.1.8 -> 0.1.9 (NixOS#357029)
Browse files Browse the repository at this point in the history
  • Loading branch information
pbsds authored Nov 29, 2024
2 parents e16d20f + 6b75aa3 commit 3b56519
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions pkgs/by-name/hy/hyprgui/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,40 @@

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;

nativeBuildInputs = [
pkg-config
wrapGAppsHook4
];

buildInputs = [
glib
cairo
pango
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 = {
Expand Down

0 comments on commit 3b56519

Please sign in to comment.