From c8dc99fdc79dcbd7924884680e18efcf375f6fd6 Mon Sep 17 00:00:00 2001 From: Pavel Anpin Date: Sun, 2 Nov 2025 08:05:27 -0300 Subject: [PATCH] thinkfan: fix missing sleep bin in thinkfan-sleep.service --- pkgs/by-name/th/thinkfan/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/th/thinkfan/package.nix b/pkgs/by-name/th/thinkfan/package.nix index 57347b91052d..17b964ee7286 100644 --- a/pkgs/by-name/th/thinkfan/package.nix +++ b/pkgs/by-name/th/thinkfan/package.nix @@ -7,6 +7,7 @@ yaml-cpp, pkg-config, procps, + coreutils, smartSupport ? false, libatasmart, }: @@ -31,6 +32,8 @@ stdenv.mkDerivation (finalAttrs: { + '' substituteInPlace rcscripts/systemd/thinkfan-sleep.service \ --replace-fail "/usr/bin/pkill" "${lib.getExe' procps "pkill"}" + substituteInPlace rcscripts/systemd/thinkfan-sleep.service \ + --replace-fail "ExecStart=sleep " "ExecStart=${lib.getExe' coreutils "sleep"} " substituteInPlace rcscripts/systemd/thinkfan-wakeup.service \ --replace-fail "/usr/bin/pkill" "${lib.getExe' procps "pkill"}" substituteInPlace rcscripts/systemd/thinkfan.service.cmake \