thinkfan: fix missing sleep bin in thinkfan-sleep.service

This commit is contained in:
Pavel Anpin
2025-11-02 08:05:27 -03:00
parent 3f22659254
commit c8dc99fdc7
+3
View File
@@ -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 \