coolercontrol.coolercontrold: Hardcode a shell
So we don't need to add bash to the service's PATH
This commit is contained in:
parent
5bb6726e84
commit
bbc0a5ee52
1 changed files with 6 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue