sunshine: fix systemd user service (#295918)

This commit is contained in:
piotr152 2024-03-25 21:47:35 +01:00 committed by GitHub
parent 5616042a51
commit 100dee1ca2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -160,6 +160,10 @@ stdenv'.mkDerivation rec {
--subst-var-by PROJECT_NAME 'Sunshine' \
--subst-var-by PROJECT_DESCRIPTION 'Self-hosted game stream host for Moonlight' \
--replace-fail '/usr/bin/env systemctl start --u sunshine' 'sunshine'
substituteInPlace packaging/linux/sunshine.service.in \
--subst-var-by PROJECT_DESCRIPTION 'Self-hosted game stream host for Moonlight' \
--subst-var-by SUNSHINE_EXECUTABLE_PATH $out/bin/sunshine
'';
preBuild = ''