sunshine: fix /bin/sleep in systemd service (#395760)

This commit is contained in:
Aleksana 2025-04-07 11:27:09 +08:00 committed by GitHub
commit e1b2ab8d1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,6 +47,7 @@
miniupnpc, miniupnpc,
nlohmann_json, nlohmann_json,
config, config,
coreutils,
cudaSupport ? config.cudaSupport, cudaSupport ? config.cudaSupport,
cudaPackages ? { }, cudaPackages ? { },
}: }:
@ -200,7 +201,8 @@ stdenv'.mkDerivation rec {
substituteInPlace packaging/linux/sunshine.service.in \ substituteInPlace packaging/linux/sunshine.service.in \
--subst-var-by PROJECT_DESCRIPTION 'Self-hosted game stream host for Moonlight' \ --subst-var-by PROJECT_DESCRIPTION 'Self-hosted game stream host for Moonlight' \
--subst-var-by SUNSHINE_EXECUTABLE_PATH $out/bin/sunshine --subst-var-by SUNSHINE_EXECUTABLE_PATH $out/bin/sunshine \
--replace-fail '/bin/sleep' '${lib.getExe' coreutils "sleep"}'
''; '';
preBuild = '' preBuild = ''