0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

sunshine: fix /bin/sleep in systemd service

sunshine's systemd service has hardcoded '/bin/sleep'. This fixes it by
replacing '/bin/sleep' with the full nix path to sleep from coretuils.

Resolves Issue #395748.
This commit is contained in:
Charlie Root 2025-04-03 15:14:45 +02:00
parent 5e1b9b7aad
commit 1191165441
No known key found for this signature in database

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 = ''