diff options
Diffstat (limited to 'pkgs/by-name/ga/gamescope')
-rw-r--r-- | pkgs/by-name/ga/gamescope/package.nix | 24 | ||||
-rw-r--r-- | pkgs/by-name/ga/gamescope/use-pkgconfig.patch | 9 |
2 files changed, 13 insertions, 20 deletions
diff --git a/pkgs/by-name/ga/gamescope/package.nix b/pkgs/by-name/ga/gamescope/package.nix index fa20ddcf225c5..78c491827f949 100644 --- a/pkgs/by-name/ga/gamescope/package.nix +++ b/pkgs/by-name/ga/gamescope/package.nix @@ -1,8 +1,10 @@ { stdenv +, edid-decode , fetchFromGitHub , meson , pkg-config , ninja +, cmake , xorg , libdrm , libei @@ -18,15 +20,13 @@ , SDL2 , pipewire , pixman +, python3 , libinput , glslang , hwdata -, openvr , stb , wlroots -, libliftoff , libdecor -, libdisplay-info , lib , makeBinaryWrapper , patchelfUnstable @@ -44,20 +44,17 @@ let in stdenv.mkDerivation (finalAttrs: { pname = "gamescope"; - version = "3.14.6"; + version = "3.14.22"; src = fetchFromGitHub { owner = "ValveSoftware"; repo = "gamescope"; rev = "refs/tags/${finalAttrs.version}"; fetchSubmodules = true; - hash = "sha256-Nj66d42Ih4pD15cNuMe81sviUepVVzVX8BEP7O2p0o0="; + hash = "sha256-/muitEE3LCU6Xnjbpczb/zy2JRvUbBPT5L13T/v3MvE="; }; patches = [ - # Unvendor dependencies - ./use-pkgconfig.patch - # Make it look for shaders in the right place ./shaders-path.patch ]; @@ -66,6 +63,8 @@ stdenv.mkDerivation (finalAttrs: { # so `placeholder "out"` ends up pointing to the wrong place postPatch = '' substituteInPlace src/reshade_effect_manager.cpp --replace "@out@" "$out" + # Patching shebangs in the main `libdisplay-info` build + patchShebangs subprojects/libdisplay-info/tool/gen-search-table.py ''; mesonFlags = [ @@ -86,6 +85,12 @@ stdenv.mkDerivation (finalAttrs: { meson pkg-config ninja + # For `libdisplay-info` + python3 + hwdata + edid-decode + # For OpenVR + cmake ] ++ lib.optionals enableExecutable [ makeBinaryWrapper glslang @@ -98,7 +103,6 @@ stdenv.mkDerivation (finalAttrs: { wayland wayland-protocols vulkan-loader - openvr glm ] ++ lib.optionals enableWsi [ vulkan-headers @@ -116,7 +120,6 @@ stdenv.mkDerivation (finalAttrs: { libavif libdrm libei - libliftoff SDL2 libdecor libinput @@ -125,7 +128,6 @@ stdenv.mkDerivation (finalAttrs: { pixman libcap stb - libdisplay-info ]); postInstall = lib.optionalString enableExecutable '' diff --git a/pkgs/by-name/ga/gamescope/use-pkgconfig.patch b/pkgs/by-name/ga/gamescope/use-pkgconfig.patch deleted file mode 100644 index 2b4de54ae54df..0000000000000 --- a/pkgs/by-name/ga/gamescope/use-pkgconfig.patch +++ /dev/null @@ -1,9 +0,0 @@ ---- a/meson.build -+++ b/meson.build -@@ -6,7 +6,6 @@ project( - default_options: [ - 'cpp_std=c++20', - 'warning_level=2', -- 'force_fallback_for=wlroots,libliftoff,vkroots', - ], - ) |