From 055b5a79e4fff1184b62b1b22c364ebe1fc73e8f Mon Sep 17 00:00:00 2001 From: MithicSpirit Date: Thu, 29 Jan 2026 16:54:52 -0500 Subject: [PATCH] hyprshutdown: track releases rather than unstable commits This is possible now that v0.1.0 has been released. Note that this commit does not include any actual updates. This also permits us to use versionCheckHook, which removes the need for the runCommand test. --- pkgs/by-name/hy/hyprshutdown/package.nix | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/pkgs/by-name/hy/hyprshutdown/package.nix b/pkgs/by-name/hy/hyprshutdown/package.nix index 92fd6d6ae4f0..a10b21a17b9c 100644 --- a/pkgs/by-name/hy/hyprshutdown/package.nix +++ b/pkgs/by-name/hy/hyprshutdown/package.nix @@ -13,17 +13,17 @@ hyprgraphics, cairo, nix-update-script, - testers, + versionCheckHook, }: gcc15Stdenv.mkDerivation (finalAttrs: { pname = "hyprshutdown"; - version = "0-unstable-2026-01-27"; + version = "0.1.0"; src = fetchFromGitHub { owner = "hyprwm"; repo = "hyprshutdown"; - rev = "9f18be9c4e1a484c65b22dd53280815dc79a5a56"; + tag = "v${finalAttrs.version}"; hash = "sha256-dp5lyZzKsjdqJLfwr0S4ILets8eu1kLfBB2y/LxspsU="; }; @@ -43,20 +43,12 @@ gcc15Stdenv.mkDerivation (finalAttrs: { (glaze.override { enableSSL = false; }) ]; + doInstallCheck = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--help"; + 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" - ''; - }; - }; + updateScript = nix-update-script { }; }; meta = {