Skip to content

Commit

Permalink
coolercontrol.coolercontrold: Hardcode a shell
Browse files Browse the repository at this point in the history
So we don't need to add bash to the service's PATH
  • Loading branch information
OPNA2608 authored and codifryed committed Apr 13, 2024
1 parent 5bb6726 commit bbc0a5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkgs/applications/system/coolercontrol/coolercontrold.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
, buildNpmPackage
, testers
, coolercontrol
, runtimeShell
}:

{ version
Expand All @@ -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 = ''
Expand Down

0 comments on commit bbc0a5e

Please sign in to comment.