Skip to content

Commit

Permalink
hyprgui: init at 0.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fccapria committed Nov 2, 2024
1 parent be6a26c commit 3037443
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pkgs/by-name/hy/hyprgui/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
glib,
pango,
cairo,
gtk4,
}:

rustPlatform.buildRustPackage rec {
pname = "hyprgui";
version = "0.1.6";

src = fetchFromGitHub {
owner = "hyprutils";
repo = "hyprgui";
rev = "refs/tags/v${version}";
hash = "sha256-n/poyVDBnMb4vw2YEymxxdjscGmu76qQ/BbS5BJOknM=";
};

cargoHash = "sha256-w+Bfjv7usyYfgTKW+KHqskNPco17QSjwn96cG/6yVoU=";

strictDeps = true;

nativeBuildInputs = [
pkg-config
wrapGAppsHook4
];
buildInputs = [
glib
cairo
pango
gtk4
];

postInstall = ''
install -Dm644 -t $out/usr/share/icons hyprgui.png
install -Dm644 -t $out/usr/share/applications hyprgui.desktop
'';

meta = {
description = "GUI for configuring Hyprland written in Rust";
homepage = "https://github.com/hyprutils/hyprgui";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ fccapria ];
badPlatforms = lib.platforms.darwin;
mainProgram = "hyprgui";
};
}

0 comments on commit 3037443

Please sign in to comment.