about summary refs log tree commit diff
path: root/pkgs/applications/system
diff options
context:
space:
mode:
authorOPNA2608 <opna2608@protonmail.com>2024-04-13 11:17:18 +0200
committerGuy Boldon <gb@guyboldon.com>2024-04-13 12:24:02 +0200
commitbbc0a5ee52707169d9ffb9f6eb840c4a9c426e1d (patch)
treec41755519ce551350c810df0b65b65c2686025f7 /pkgs/applications/system
parent5bb6726e849ca19a2824a4d53e3135a9f991b7a8 (diff)
coolercontrol.coolercontrold: Hardcode a shell
So we don't need to add bash to the service's PATH
Diffstat (limited to 'pkgs/applications/system')
-rw-r--r--pkgs/applications/system/coolercontrol/coolercontrold.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/applications/system/coolercontrol/coolercontrold.nix b/pkgs/applications/system/coolercontrol/coolercontrold.nix
index 609cf6d789aad..96ca8613de254 100644
--- a/pkgs/applications/system/coolercontrol/coolercontrold.nix
+++ b/pkgs/applications/system/coolercontrol/coolercontrold.nix
@@ -2,6 +2,7 @@
 , buildNpmPackage
 , testers
 , coolercontrol
+, runtimeShell
 }:
 
 { version
@@ -16,11 +17,15 @@ rustPlatform.buildRustPackage {
 
   cargoHash = "sha256-qXZ/LXbKkLvnEQibGyMvkkYhz2eEGUHsYxVF3EbCpFc=";
 
-  # copy the frontend static resources to a directory for embedding
   postPatch = ''
+    # copy the frontend static resources to a directory for embedding
     mkdir -p ui-build
     cp -R ${coolercontrol.coolercontrol-ui-data}/* ui-build/
     substituteInPlace build.rs --replace '"./resources/app"' '"./ui-build"'
+
+    # Hardcode a shell
+    substituteInPlace src/repositories/utils.rs \
+      --replace-fail 'Command::new("sh")' 'Command::new("${runtimeShell}")'
   '';
 
   postInstall = ''