about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/sunshine
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-08-08 16:04:42 +0000
committerAlyssa Ross <hi@alyssa.is>2023-08-13 06:35:37 +0000
commit12aaa58dac35800b5b7d77f81cf2a87c21ee55da (patch)
treebe0add9e5c22a85d20b5d78206aa74f956eb2a1b /nixpkgs/pkgs/servers/sunshine
parent45892a5591202f75a1c2f1ca7c62a92c7566e3c5 (diff)
parent5a8e9243812ba528000995b294292d3b5e120947 (diff)
downloadnixlib-12aaa58dac35800b5b7d77f81cf2a87c21ee55da.tar
nixlib-12aaa58dac35800b5b7d77f81cf2a87c21ee55da.tar.gz
nixlib-12aaa58dac35800b5b7d77f81cf2a87c21ee55da.tar.bz2
nixlib-12aaa58dac35800b5b7d77f81cf2a87c21ee55da.tar.lz
nixlib-12aaa58dac35800b5b7d77f81cf2a87c21ee55da.tar.xz
nixlib-12aaa58dac35800b5b7d77f81cf2a87c21ee55da.tar.zst
nixlib-12aaa58dac35800b5b7d77f81cf2a87c21ee55da.zip
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Conflicts:
	nixpkgs/pkgs/applications/window-managers/sway/default.nix
	nixpkgs/pkgs/build-support/go/module.nix
	nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
	nixpkgs/pkgs/development/libraries/mesa/default.nix
	nixpkgs/pkgs/servers/dict/dictd-db.nix

Link: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/issues/391
Diffstat (limited to 'nixpkgs/pkgs/servers/sunshine')
-rw-r--r--nixpkgs/pkgs/servers/sunshine/default.nix15
-rw-r--r--nixpkgs/pkgs/servers/sunshine/ffmpeg.diff26
-rw-r--r--nixpkgs/pkgs/servers/sunshine/package-lock.json6
3 files changed, 22 insertions, 25 deletions
diff --git a/nixpkgs/pkgs/servers/sunshine/default.nix b/nixpkgs/pkgs/servers/sunshine/default.nix
index deb9e738b94b..bf3f4fa30058 100644
--- a/nixpkgs/pkgs/servers/sunshine/default.nix
+++ b/nixpkgs/pkgs/servers/sunshine/default.nix
@@ -3,7 +3,6 @@
 , callPackage
 , fetchFromGitHub
 , fetchurl
-, fetchpatch
 , autoPatchelfHook
 , makeWrapper
 , buildNpmPackage
@@ -31,7 +30,8 @@
 , svt-av1
 , vulkan-loader
 , libappindicator
-, cudaSupport ? false
+, config
+, cudaSupport ? config.cudaSupport
 , cudaPackages ? {}
 }:
 let
@@ -44,31 +44,26 @@ let
 in
 stdenv.mkDerivation rec {
   pname = "sunshine";
-  version = "0.19.1";
+  version = "0.20.0";
 
   src = fetchFromGitHub {
     owner = "LizardByte";
     repo = "Sunshine";
     rev = "v${version}";
-    sha256 = "sha256-fifwctVrSkAcMK8juAirIbIP64H7GKEwC+sUR/U6Q3Y=";
+    sha256 = "sha256-/ceN44PAEtXzrAUi4AEldW1FBhJqIXah1Zd0S6fiV3s=";
     fetchSubmodules = true;
   };
 
   # remove pre-built ffmpeg; use ffmpeg from nixpkgs
   patches = [
     ./ffmpeg.diff
-    # fix for X11 not being added to libraries unless prebuilt FFmpeg is used: https://github.com/LizardByte/Sunshine/pull/1166
-    (fetchpatch {
-      url = "https://github.com/LizardByte/Sunshine/commit/a067da6cae72cf36f76acc06fcf1e814032af886.patch";
-      sha256 = "sha256-HMxM7luiFBEmFkvQtkdAMMSjAaYPEFX3LL0T/ActUhM=";
-    })
   ];
 
   # fetch node_modules needed for webui
   ui = buildNpmPackage {
     inherit src version;
     pname = "sunshine-ui";
-    npmDepsHash = "sha256-sdwvM/Irejo8DgMHJWWCxwOykOK9foqLFFd/tuzrkxI=";
+    npmDepsHash = "sha256-pwmkpZjDwluKJjcY0ehetQbAlFnj1tsW100gRjolboc=";
 
     dontNpmBuild = true;
 
diff --git a/nixpkgs/pkgs/servers/sunshine/ffmpeg.diff b/nixpkgs/pkgs/servers/sunshine/ffmpeg.diff
index b34cd9cc2c22..ea028df59563 100644
--- a/nixpkgs/pkgs/servers/sunshine/ffmpeg.diff
+++ b/nixpkgs/pkgs/servers/sunshine/ffmpeg.diff
@@ -1,8 +1,8 @@
 diff --git a/CMakeLists.txt b/CMakeLists.txt
-index 1842c67..8afd0e9 100644
+index ccca6fc..8789a4a 100644
 --- a/CMakeLists.txt
 +++ b/CMakeLists.txt
-@@ -280,6 +280,8 @@ else()
+@@ -349,6 +349,8 @@ else()
          set(WAYLAND_FOUND OFF)
      endif()
  
@@ -10,10 +10,10 @@ index 1842c67..8afd0e9 100644
 +
      if(X11_FOUND)
          add_compile_definitions(SUNSHINE_BUILD_X11)
-         include_directories(${X11_INCLUDE_DIR})
-@@ -451,51 +453,12 @@ set_source_files_properties(src/upnp.cpp PROPERTIES COMPILE_FLAGS -Wno-pedantic)
- set_source_files_properties(third-party/nanors/rs.c
-         PROPERTIES COMPILE_FLAGS "-include deps/obl/autoshim.h -ftree-vectorize")
+         include_directories(SYSTEM ${X11_INCLUDE_DIR})
+@@ -547,43 +549,7 @@ set_source_files_properties(third-party/nanors/rs.c
+ 
+ list(APPEND SUNSHINE_DEFINITIONS SUNSHINE_TRAY=${SUNSHINE_TRAY})
  
 -# Pre-compiled binaries
 -if(WIN32)
@@ -26,7 +26,7 @@ index 1842c67..8afd0e9 100644
 -        set(FFMPEG_PREPARED_BINARIES "${CMAKE_CURRENT_SOURCE_DIR}/third-party/ffmpeg-macos-x86_64")
 -    endif()
 -else()
--    set(FFMPEG_PLATFORM_LIBRARIES va va-drm va-x11 vdpau X11)
+     set(FFMPEG_PLATFORM_LIBRARIES va va-drm va-x11 vdpau X11)
 -    if (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")
 -        set(FFMPEG_PREPARED_BINARIES "${CMAKE_CURRENT_SOURCE_DIR}/third-party/ffmpeg-linux-aarch64")
 -    else()
@@ -52,10 +52,10 @@ index 1842c67..8afd0e9 100644
 -        ${FFMPEG_PREPARED_BINARIES}/lib/libx265.a
 -        ${HDR10_PLUS_LIBRARY}
 -        ${FFMPEG_PLATFORM_LIBRARIES})
--
- include_directories(
-         ${CMAKE_CURRENT_SOURCE_DIR}
-         ${CMAKE_CURRENT_SOURCE_DIR}/third-party
+ 
+ include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+ 
+@@ -593,7 +559,6 @@ include_directories(
          ${CMAKE_CURRENT_SOURCE_DIR}/third-party/moonlight-common-c/enet/include
          ${CMAKE_CURRENT_SOURCE_DIR}/third-party/nanors
          ${CMAKE_CURRENT_SOURCE_DIR}/third-party/nanors/deps/obl
@@ -63,11 +63,13 @@ index 1842c67..8afd0e9 100644
          ${PLATFORM_INCLUDE_DIRS}
  )
  
-@@ -529,6 +492,7 @@ list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
+@@ -627,7 +592,9 @@ list(APPEND SUNSHINE_EXTERNAL_LIBRARIES
          ${CMAKE_THREAD_LIBS_INIT}
          enet
          opus
 +        cbs
          ${FFMPEG_LIBRARIES}
++        ${FFMPEG_PLATFORM_LIBRARIES}
          ${Boost_LIBRARIES}
          ${OPENSSL_LIBRARIES}
+         ${CURL_LIBRARIES}
diff --git a/nixpkgs/pkgs/servers/sunshine/package-lock.json b/nixpkgs/pkgs/servers/sunshine/package-lock.json
index a4678e38f4cf..975ebadbf187 100644
--- a/nixpkgs/pkgs/servers/sunshine/package-lock.json
+++ b/nixpkgs/pkgs/servers/sunshine/package-lock.json
@@ -20,9 +20,9 @@
       }
     },
     "node_modules/@popperjs/core": {
-      "version": "2.11.7",
-      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.7.tgz",
-      "integrity": "sha512-Cr4OjIkipTtcXKjAsm8agyleBuDHvxzeBoa1v543lbv1YaIwQjESsVcmjiWiPEbC1FIeHOG/Op9kdCmAmiS3Kw==",
+      "version": "2.11.8",
+      "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz",
+      "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==",
       "peer": true,
       "funding": {
         "type": "opencollective",