Gamescope cleanups (#429538)
This commit is contained in:
@@ -65,17 +65,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# patch relative gamescopereaper path with absolute
|
||||
./gamescopereaper.patch
|
||||
|
||||
# Revert change to always use vendored stb/glm libraries
|
||||
# Upstream discussion: https://github.com/ValveSoftware/gamescope/pull/1751
|
||||
# Pending upstream patch to allow using system libraries
|
||||
# See: https://github.com/ValveSoftware/gamescope/pull/1846
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ValveSoftware/gamescope/commit/baae74c4b13676fa76a8b200f21ac78f55079734.patch";
|
||||
revert = true;
|
||||
hash = "sha256-XpbyLQ4R9KgBR3hlrgPzmM7Zxr2jm4Q10zGjyhh/Qxw=";
|
||||
})
|
||||
(fetchpatch {
|
||||
url = "https://github.com/ValveSoftware/gamescope/commit/72bae179ba2ebbbc91ed07c7f66e7e4964a4cd9e.patch";
|
||||
revert = true;
|
||||
hash = "sha256-aglfGvEuycNyPlaFYxqqvPAgFpWns3xZ3B2GiAefxtg=";
|
||||
url = "https://github.com/ValveSoftware/gamescope/commit/4ce1a91fb219f570b0871071a2ec8ac97d90c0bc.diff";
|
||||
hash = "sha256-O358ScIIndfkc1S0A8g2jKvFWoCzcXB/g6lRJamqOI4=";
|
||||
})
|
||||
];
|
||||
|
||||
@@ -95,6 +89,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
mesonFlags = [
|
||||
(lib.mesonBool "enable_gamescope" enableExecutable)
|
||||
(lib.mesonBool "enable_gamescope_wsi_layer" enableWsi)
|
||||
|
||||
(lib.mesonOption "glm_include_dir" "${lib.getInclude glm}/include")
|
||||
(lib.mesonOption "stb_include_dir" "${lib.getInclude stb}/include/stb")
|
||||
];
|
||||
|
||||
# don't install vendored vkroots etc
|
||||
@@ -111,10 +108,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
pkg-config
|
||||
ninja
|
||||
wayland-scanner
|
||||
# For `libdisplay-info`
|
||||
python3
|
||||
hwdata
|
||||
v4l-utils
|
||||
|
||||
# For OpenVR
|
||||
cmake
|
||||
|
||||
@@ -124,6 +118,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
++ lib.optionals enableExecutable [
|
||||
makeBinaryWrapper
|
||||
glslang
|
||||
|
||||
# For `libdisplay-info`
|
||||
python3
|
||||
hwdata
|
||||
v4l-utils
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
@@ -133,8 +132,6 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
wayland
|
||||
wayland-protocols
|
||||
vulkan-loader
|
||||
glm
|
||||
luajit
|
||||
]
|
||||
++ lib.optionals enableWsi [
|
||||
vulkan-headers
|
||||
@@ -163,8 +160,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
gbenchmark
|
||||
pixman
|
||||
libcap
|
||||
stb
|
||||
lcms
|
||||
luajit
|
||||
]
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user