From daf2f4b9b885c264cec87cc2bef0e4920dd2bfcb Mon Sep 17 00:00:00 2001 From: MithicSpirit Date: Tue, 16 Dec 2025 14:40:04 -0500 Subject: [PATCH] hyprshutdown: init at 0-unstable-2026-01-11 --- pkgs/by-name/hy/hyprshutdown/package.nix | 71 ++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 pkgs/by-name/hy/hyprshutdown/package.nix diff --git a/pkgs/by-name/hy/hyprshutdown/package.nix b/pkgs/by-name/hy/hyprshutdown/package.nix new file mode 100644 index 000000000000..8f3bb9df54ea --- /dev/null +++ b/pkgs/by-name/hy/hyprshutdown/package.nix @@ -0,0 +1,71 @@ +{ + lib, + gcc15Stdenv, + fetchFromGitHub, + cmake, + pkg-config, + hyprtoolkit, + hyprutils, + pixman, + libdrm, + glaze, + aquamarine, + hyprgraphics, + cairo, + nix-update-script, + testers, +}: + +gcc15Stdenv.mkDerivation (finalAttrs: { + pname = "hyprshutdown"; + version = "0-unstable-2026-01-11"; + + src = fetchFromGitHub { + owner = "hyprwm"; + repo = "hyprshutdown"; + rev = "0c9cec7809a715c5c9a99a585db0b596bfb96a59"; + hash = "sha256-JMpLic41Jw6kDXXMtj6tEYUMu3QQ0Sg/M8EBxmAwapU="; + }; + + nativeBuildInputs = [ + cmake + pkg-config + ]; + + buildInputs = [ + hyprtoolkit + hyprutils + pixman + libdrm + aquamarine + hyprgraphics + cairo + (glaze.override { enableSSL = false; }) + ]; + + passthru = { + updateScript = nix-update-script { + # TODO: remove when stable release available + extraArgs = [ "--version=branch" ]; + }; + tests = { + help = testers.runCommand { + name = "${finalAttrs.pname}-help-test"; + nativeBuildInputs = [ finalAttrs.finalPackage ]; + script = '' + '${finalAttrs.meta.mainProgram}' --help && touch "$out" + ''; + }; + }; + }; + + meta = { + description = "A graceful shutdown utility for Hyprland"; + homepage = "https://github.com/hyprwm/hyprshutdown"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.mithicspirit ]; + teams = [ lib.teams.hyprland ]; + mainProgram = "hyprshutdown"; + platforms = lib.platforms.linux; + }; +})