From 16e573154e8724a7d0cc7b02d4f4d840f4893f65 Mon Sep 17 00:00:00 2001 From: Colorman Date: Sun, 18 Jan 2026 01:33:34 +0100 Subject: [PATCH 1/2] argononed: unstable-2022-03-25 -> 0.4.1-unstable-2025-12-26 --- .../fix-hardcoded-reboot-poweroff-paths.patch | 32 +++++++++---------- pkgs/by-name/ar/argononed/package.nix | 7 ++-- 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch b/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch index 88bcb6ddd25e..f7098f72c54f 100644 --- a/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch +++ b/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch @@ -1,18 +1,18 @@ --- a/src/argononed.c +++ b/src/argononed.c -@@ -783,13 +783,13 @@ - { - log_message(LOG_DEBUG, "EXEC REBOOT"); - sync(); -- system("/sbin/reboot"); -+ system("/run/current-system/sw/bin/reboot"); - } - if (count >= 39 && count <= 41) - { - log_message(LOG_DEBUG, "EXEC SHUTDOWN"); - sync(); -- system("/sbin/poweroff"); -+ system("/run/current-system/sw/bin/poweroff"); - } - #else - log_message(LOG_INFO,"Daemon Ready"); +@@ -665,13 +665,13 @@ + { + log_message(LOG_DEBUG, "EXEC REBOOT"); + sync(); +- system("/sbin/reboot"); ++ system("/run/current-system/sw/bin/reboot"); + } + if (count >= 39 && count <= 41) + { + log_message(LOG_DEBUG, "EXEC SHUTDOWN"); + sync(); +- system("/sbin/poweroff"); ++ system("/run/current-system/sw/bin/poweroff"); + } + } else { + log_message(LOG_INFO + LOG_BOLD,"Daemon Ready"); diff --git a/pkgs/by-name/ar/argononed/package.nix b/pkgs/by-name/ar/argononed/package.nix index 3dd9495a8c76..3d3325719284 100644 --- a/pkgs/by-name/ar/argononed/package.nix +++ b/pkgs/by-name/ar/argononed/package.nix @@ -5,16 +5,15 @@ dtc, installShellFiles, }: - stdenv.mkDerivation { pname = "argononed"; - version = "unstable-2022-03-26"; + version = "0.4.1-unstable-2025-12-26"; src = fetchFromGitLab { owner = "DarkElvenAngel"; repo = "argononed"; - rev = "97c4fa07fc2c09ffc3bd86e0f6319d50fa639578"; - hash = "sha256-5/xUYbprRiwD+FN8V2cUpHxnTbBkEsFG2wfsEXrCrgQ="; + rev = "34d70b3bb1b2a8ba4b146ba7d9962dd0d925e67e"; + hash = "sha256-f7YGoky4C5P/Iyez3kuLEKU/yWKZ4Dh6Cy//PAKMYuU="; }; patches = [ ./fix-hardcoded-reboot-poweroff-paths.patch ]; From bc7428c30a04292084a7885063f97733c7875802 Mon Sep 17 00:00:00 2001 From: Colorman Date: Sun, 18 Jan 2026 14:49:10 +0100 Subject: [PATCH 2/2] argononed: dont use absolute path when looking up power commands --- .../ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch b/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch index f7098f72c54f..7e85b1cbbb7d 100644 --- a/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch +++ b/pkgs/by-name/ar/argononed/fix-hardcoded-reboot-poweroff-paths.patch @@ -5,14 +5,14 @@ log_message(LOG_DEBUG, "EXEC REBOOT"); sync(); - system("/sbin/reboot"); -+ system("/run/current-system/sw/bin/reboot"); ++ system("reboot"); } if (count >= 39 && count <= 41) { log_message(LOG_DEBUG, "EXEC SHUTDOWN"); sync(); - system("/sbin/poweroff"); -+ system("/run/current-system/sw/bin/poweroff"); ++ system("poweroff"); } } else { log_message(LOG_INFO + LOG_BOLD,"Daemon Ready");