Change:
Package name: sunshine Latest released version: 0.22.2 <!-- Search your package here: --- Current version on the unstable channel: 0.22.0 Current version on the stable/release channel: 0.21.0 <!-- Type the name of your package and try to find an open pull request for the package If you find an open pull request, you can review it! There's a high chance that you'll have the new version right away while helping the community! --- Notify maintainers <!-- If the result shows no maintainers, tag the person that last updated the package. --Note for maintainers: Add a :+1: [reaction] to [issues you find important]. [reaction]: [issues you find important]:

Discussion:
{ lib , stdenv , fetchFromGitHub <del> , fetchpatch </del> , autoPatchelfHook , makeWrapper , buildNpmPackage

in stdenv'.mkDerivation rec { pname = "sunshine"; <del> version = "0.22.0"; </del> <ins> version = "0.22.2"; </ins> src = fetchFromGitHub { owner = "LizardByte"; repo = "Sunshine"; rev = "v${version}"; <del> sha256 = "sha256-O9U4zP1o6yWtzk+2DW7ueimvsTuajLY8IETlvCT4jTE="; </del> <ins> sha256 = "sha256-So8fX0XQoW2cdTWWENoE07EU6e8vvjeTpizLoaDTjeg="; </ins> fetchSubmodules = true; }; patches = [ # remove npm install as it needs internet access -- handled separately below ./dont-build-webui.patch <del> # revert https://github.com/LizardByte/Sunshine/pull/2046 - let cmake install handle udev and systemd files (fetchpatch { url = "https://github.com/LizardByte/Sunshine/commit/0d4dfcd708c0027b7d8827a03163858800fa79fa.patch"; hash = "sha256-77NtfX0zB7ty92AyFOz9wJoa1jHshlNbPQ7NOpqUuYo="; revert = true; }) </del> ]; # build webui ui = buildNpmPackage { inherit src version; pname = "sunshine-ui"; <del> npmDepsHash = "sha256-jAZUu2CfcqhC2xMiZYpY7KPCRVFQgT/kgUvSI+5Cpkc="; </del> <ins> npmDepsHash = "sha256-0487ntbJZ20MZHezQ+Z3EJkidF3Dgoh/mynYwR7k/+I="; </ins> # use generated package-lock.json as upstream does not provide one postPatch = ''

cmakeFlags = [ "-Wno-dev" <ins> # upstream tries to use systemd and udev packages to find these directories in FHS; set the paths explicitly instead (lib.cmakeFeature "UDEV_RULES_INSTALL_DIR" "lib/udev/rules.d") (lib.cmakeFeature "SYSTEMD_USER_UNIT_INSTALL_DIR" "lib/systemd/user") </ins> ]; postPatch = '' <del> # fix hardcoded libevdev path substituteInPlace cmake/compile_definitions/linux.cmake  --replace '/usr/include/libevdev-1.0' '${libevdev}/include/libevdev-1.0' </del> <ins> # remove upstream dependency on systemd and udev substituteInPlace cmake/packaging/linux.cmake  --replace-fail 'find_package(Systemd)' ""  --replace-fail 'find_package(Udev)' "" </ins> substituteInPlace packaging/linux/sunshine.desktop  <del> --replace '@PROJECT_NAME@' 'Sunshine'  --replace '@PROJECT_DESCRIPTION@' 'Self-hosted game stream host for Moonlight'  --replace '/usr/bin/env systemctl start --u sunshine' 'sunshine' </del> <ins> --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' </ins> ''; preBuild = ''

diff --git a/cmake/targets/common.cmake b/cmake/targets/common.cmake <del> index 3dd629e..acec58d 100644 </del> <ins> index 9f2ce08..8c32b8f 100644 </ins> --- a/cmake/targets/common.cmake +++ b/cmake/targets/common.cmake <del> @@ -37,8 +37,4 @@ endif() target_compile_options(sunshine PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${SUNSHINE_COMPILE_OPTIONS}>;$<$<COMPILE_LANGUAGE:CUDA>:${SUNSHINE_COMPILE_OPTIONS_CUDA};-std=c++17>)  # cmake-lint: disable=C0301 </del> <ins> @@ -48,8 +48,4 @@ else() set(NPM_BUILD_HOMEBREW "") endif() </ins> -#WebUI build -add_custom_target(web-ui ALL -        WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" -        COMMENT "Installing NPM Dependencies and Building the Web UI" <del> -        COMMAND bash -c "npm install && SUNSHINE_SOURCE_ASSETS_DIR=${SUNSHINE_SOURCE_ASSETS_DIR} SUNSHINE_ASSETS_DIR=${CMAKE_BINARY_DIR} npm run build") # cmake-lint: disable=C0301 </del> <ins> -        COMMAND bash -c "npm install && SUNSHINE_BUILD_HOMEBREW=${NPM_BUILD_HOMEBREW} SUNSHINE_SOURCE_ASSETS_DIR=${NPM_SOURCE_ASSETS_DIR} SUNSHINE_ASSETS_DIR=${NPM_ASSETS_DIR} npm run build") # cmake-lint: disable=C0301 </ins> +

{ <del> "name": "Sunshine", </del> <ins> "name": "sunshine", </ins> "lockfileVersion": 3, "requires": true, "packages": {

} }, "node_modules/source-map-js": { <del> "version": "1.0.2", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==", </del> <ins> "version": "1.0.3", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.3.tgz", "integrity": "sha512-H/5Vyeo/I1hqIdOS0m1Q63OPr0yFdZLaiVkr8ap/WyIVGdU3PyoOV/HXY8+PJE2M43+n11FY5zWQnNRNnD1UFg==", </ins> "engines": { "node": ">=0.10.0" }