Skip to content

Commit

Permalink
syspower: init at 0-unstable-2024-12-10
Browse files Browse the repository at this point in the history
  • Loading branch information
justDeeevin committed Dec 10, 2024
1 parent 0afc936 commit 8d165bf
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions pkgs/by-name/sy/syspower/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
stdenv,
lib,
fetchFromGitHub,
makeWrapper,
pkg-config,
gtkmm4,
gtk4-layer-shell,
}:
stdenv.mkDerivation {
pname = "syspower";
version = "0-unstable-2024-12-10";

src = fetchFromGitHub {
owner = "System64fumo";
repo = "syspower";
rev = "b205c3443daaee6c3454f23b93b78f42c10221a1";
hash = "sha256-kLaWIaMTRurY7a8Nn7C9ft/Zdvx35AiU7Db8n/NFy90=";
};

buildInputs = [
gtkmm4
gtk4-layer-shell
];

nativeBuildInputs = [
makeWrapper
pkg-config
];

makeFlags = [ "PREFIX=${placeholder "out"}" ];

postFixup = ''
wrapProgram $out/bin/syspower --prefix LD_LIBRARY_PATH : $out/lib
'';

meta = {
description = "Simple power menu/shutdown screen for Hyprland";
homepage = "https://gihub.com/System64fumo/syspower";
license = lib.licenses.wtfpl;
maintainers = with lib.maintainers; [ justdeeevin ];
mainProgram = "syspower";
platforms = lib.platforms.linux;
};
}

0 comments on commit 8d165bf

Please sign in to comment.