gamescope: 3.8.4 -> 3.10.30

This commit is contained in:
Philipp 2022-05-22 10:32:58 +02:00
parent 853f02155f
commit 7ec5a43045

View file

@ -1,35 +1,32 @@
{ stdenv, lib, pkgs, fetchFromGitHub, meson, ninja, wlroots, pkg-config, cmake, xorg, libdrm, { stdenv, lib, fetchFromGitHub, meson, pkg-config, xorg, libdrm, pipewire
vulkan-loader, wayland, wayland-protocols, libxkbcommon, libcap, SDL2, glslang, libudev, pixman, libinput, }: , vulkan-loader, wayland, wayland-protocols, libxkbcommon, libcap, SDL2, glslang, udev, pixman, libinput
, stb, mesa, libseat, xwayland, ninja }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "gamescope"; pname = "gamescope";
version = "3.8.4"; version = "3.11.30";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Plagman"; owner = "Plagman";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "1asgyxm05wqmcrvl9i50zx7yrg8ipw6pb5j0bzz31gn589rysgix"; sha256 = "sha256-dSQrOlQfUZkA8Vrc/Tj9dAWIIBOeb+tAen21fZe3Gto=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja
pkg-config pkg-config
cmake ninja
]; ];
buildInputs = [ buildInputs = [
(pkgs.callPackage (pkgs.fetchurl {
name = "wlroots_13.nix";
url = "https://raw.githubusercontent.com/NixOS/nixpkgs/c4976f356529978031f1ad2200015ad03de50cb9/pkgs/development/libraries/wlroots/default.nix";
sha256 = "49f053124e9029a6863582940af9fefc5e3012353a6b86a2e2214dc7cf6467da";
}) {})
libdrm libdrm
libxkbcommon pipewire
vulkan-loader vulkan-loader
wayland wayland
wayland-protocols wayland-protocols
libxkbcommon
xorg.libX11 xorg.libX11
xorg.libXdamage xorg.libXdamage
xorg.libXcomposite xorg.libXcomposite
@ -39,12 +36,23 @@ vulkan-loader, wayland, wayland-protocols, libxkbcommon, libcap, SDL2, glslang,
xorg.libXtst xorg.libXtst
xorg.libXres xorg.libXres
xorg.libXi xorg.libXi
xorg.xcbutilwm
xorg.xcbutilerrors
libcap libcap
SDL2 SDL2
glslang glslang
libudev udev
pixman pixman
libinput libinput
mesa # libgbm
libseat
xwayland
]; ];
preConfigure = ''
# Use packaged stb.
cp -R --no-preserve=mode,ownership ${stb}/include/stb subprojects/stb
cp subprojects/packagefiles/stb/* subprojects/stb
'';
} }