sunshine: 2025.122.141614 -> 2025.628.4510
This commit is contained in:
parent
c7a1d6d6f9
commit
a98748b83d
@ -15,6 +15,8 @@
|
|||||||
./common/x11.nix
|
./common/x11.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
virtualisation.memorySize = 4096;
|
||||||
|
|
||||||
services.sunshine = {
|
services.sunshine = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
@ -61,7 +63,7 @@
|
|||||||
moonlight.wait_for_console_text("Executing request.*pair")
|
moonlight.wait_for_console_text("Executing request.*pair")
|
||||||
|
|
||||||
# respond to pairing request from sunshine
|
# respond to pairing request from sunshine
|
||||||
sunshine.succeed("curl --fail --insecure -u sunshine:sunshine -d '{\"pin\":\"1234\",\"name\":\"1234\"}' https://localhost:47990/api/pin")
|
sunshine.succeed("curl --fail --insecure -u sunshine:sunshine -H 'Content-Type: application/json' -d '{\"pin\":\"1234\",\"name\":\"sunshine\"}' https://localhost:47990/api/pin")
|
||||||
|
|
||||||
# wait until pairing is complete
|
# wait until pairing is complete
|
||||||
moonlight.wait_for_console_text("Executing request.*phrase=pairchallenge")
|
moonlight.wait_for_console_text("Executing request.*phrase=pairchallenge")
|
||||||
|
834
pkgs/by-name/su/sunshine/package-lock.json
generated
834
pkgs/by-name/su/sunshine/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -57,13 +57,13 @@ let
|
|||||||
in
|
in
|
||||||
stdenv'.mkDerivation rec {
|
stdenv'.mkDerivation rec {
|
||||||
pname = "sunshine";
|
pname = "sunshine";
|
||||||
version = "2025.122.141614";
|
version = "2025.628.4510";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "LizardByte";
|
owner = "LizardByte";
|
||||||
repo = "Sunshine";
|
repo = "Sunshine";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
hash = "sha256-rHf+lj5dycXA//fu3RPuimYz2hrJnoVt7GA2xuHGXJk=";
|
hash = "sha256-xNWFo6a4YrJ+tBFTSReoAEi1oZ4DSguBEusizWeWKYY=";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ stdenv'.mkDerivation rec {
|
|||||||
ui = buildNpmPackage {
|
ui = buildNpmPackage {
|
||||||
inherit src version;
|
inherit src version;
|
||||||
pname = "sunshine-ui";
|
pname = "sunshine-ui";
|
||||||
npmDepsHash = "sha256-sWCmx1dMEyRyuYeeuqAjHZLVnckskgQO4saFM64s4Y4=";
|
npmDepsHash = "sha256-kUixeLf8prsWQolg1v+vJ5rvwKZOsU+88+0hVOgTZ0A=";
|
||||||
|
|
||||||
# use generated package-lock.json as upstream does not provide one
|
# use generated package-lock.json as upstream does not provide one
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -194,7 +194,7 @@ stdenv'.mkDerivation rec {
|
|||||||
substituteInPlace cmake/targets/common.cmake \
|
substituteInPlace cmake/targets/common.cmake \
|
||||||
--replace-fail 'find_program(NPM npm REQUIRED)' ""
|
--replace-fail 'find_program(NPM npm REQUIRED)' ""
|
||||||
|
|
||||||
substituteInPlace packaging/linux/sunshine.desktop \
|
substituteInPlace packaging/linux/dev.lizardbyte.app.Sunshine.desktop \
|
||||||
--subst-var-by PROJECT_NAME 'Sunshine' \
|
--subst-var-by PROJECT_NAME 'Sunshine' \
|
||||||
--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_DESKTOP_ICON 'sunshine' \
|
--subst-var-by SUNSHINE_DESKTOP_ICON 'sunshine' \
|
||||||
@ -230,7 +230,7 @@ stdenv'.mkDerivation rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 ../packaging/linux/${pname}.desktop $out/share/applications/${pname}.desktop
|
install -Dm644 ../packaging/linux/dev.lizardbyte.app.Sunshine.desktop $out/share/applications/dev.lizardbyte.app.Sunshine.desktop
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user