Files
nixpkgs/pkgs/by-name/sy/syspower/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

46 lines
948 B
Nix

{
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 = "323332b4d97a30360455682194ed35868fcbaf71";
hash = "sha256-obL9XUf8kONBWZoyrPvN1PWmEyQx8vMsl6KIneSjkGM=";
};
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;
};
}