2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, pkg-config
|
|
|
|
, ninja
|
|
|
|
, xorg
|
|
|
|
, libdrm
|
|
|
|
, vulkan-loader
|
|
|
|
, wayland
|
|
|
|
, wayland-protocols
|
|
|
|
, libxkbcommon
|
|
|
|
, libcap
|
|
|
|
, SDL2
|
|
|
|
, pipewire
|
|
|
|
, udev
|
|
|
|
, pixman
|
|
|
|
, libinput
|
2022-09-09 14:08:57 +00:00
|
|
|
, seatd
|
2022-08-12 12:06:08 +00:00
|
|
|
, xwayland
|
|
|
|
, glslang
|
|
|
|
, stb
|
|
|
|
, wlroots
|
|
|
|
, libliftoff
|
|
|
|
, lib
|
|
|
|
, makeBinaryWrapper
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
pname = "gamescope";
|
2022-11-21 17:40:18 +00:00
|
|
|
version = "3.11.49";
|
2022-08-12 12:06:08 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Plagman";
|
|
|
|
repo = "gamescope";
|
|
|
|
rev = "refs/tags/${version}";
|
2022-11-21 17:40:18 +00:00
|
|
|
hash = "sha256-GRq/b013wFRHzFz2YCulJRtcwzX/dhJKd8dkATSLug0=";
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [ ./use-pkgconfig.patch ];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
pkg-config
|
|
|
|
ninja
|
|
|
|
makeBinaryWrapper
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.libXdamage
|
|
|
|
xorg.libXcomposite
|
|
|
|
xorg.libXrender
|
|
|
|
xorg.libXext
|
|
|
|
xorg.libXxf86vm
|
|
|
|
xorg.libXtst
|
|
|
|
xorg.libXres
|
|
|
|
xorg.libXi
|
|
|
|
libdrm
|
|
|
|
libliftoff
|
|
|
|
vulkan-loader
|
|
|
|
glslang
|
|
|
|
SDL2
|
|
|
|
wayland
|
|
|
|
wayland-protocols
|
|
|
|
wlroots
|
|
|
|
xwayland
|
2022-09-09 14:08:57 +00:00
|
|
|
seatd
|
2022-08-12 12:06:08 +00:00
|
|
|
libinput
|
|
|
|
libxkbcommon
|
|
|
|
udev
|
|
|
|
pixman
|
|
|
|
pipewire
|
|
|
|
libcap
|
|
|
|
stb
|
|
|
|
];
|
|
|
|
|
|
|
|
# --debug-layers flag expects these in the path
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram "$out/bin/gamescope" \
|
|
|
|
--prefix PATH : ${with xorg; lib.makeBinPath [xprop xwininfo]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "SteamOS session compositing window manager";
|
|
|
|
homepage = "https://github.com/Plagman/gamescope";
|
|
|
|
license = licenses.bsd2;
|
2022-11-21 17:40:18 +00:00
|
|
|
maintainers = with maintainers; [ nrdxp zhaofengli ];
|
2022-08-12 12:06:08 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|