nixcitizen/gamescope.nix

59 lines
1.1 KiB
Nix
Raw Normal View History

2022-05-22 10:32:58 +02:00
{ stdenv, lib, fetchFromGitHub, meson, pkg-config, xorg, libdrm, pipewire
, vulkan-loader, wayland, wayland-protocols, libxkbcommon, libcap, SDL2, glslang, udev, pixman, libinput
, stb, mesa, libseat, xwayland, ninja }:
2021-07-26 21:45:36 +02:00
stdenv.mkDerivation rec {
pname = "gamescope";
2022-05-22 10:32:58 +02:00
version = "3.11.30";
2021-07-26 21:45:36 +02:00
src = fetchFromGitHub {
owner = "Plagman";
repo = pname;
rev = version;
2022-05-22 10:32:58 +02:00
sha256 = "sha256-dSQrOlQfUZkA8Vrc/Tj9dAWIIBOeb+tAen21fZe3Gto=";
2021-07-26 21:45:36 +02:00
fetchSubmodules = true;
};
nativeBuildInputs = [
meson
pkg-config
2022-05-22 10:32:58 +02:00
ninja
2021-07-26 21:45:36 +02:00
];
2022-05-22 10:32:58 +02:00
2021-07-26 21:45:36 +02:00
buildInputs = [
libdrm
2022-05-22 10:32:58 +02:00
pipewire
2021-07-26 21:45:36 +02:00
vulkan-loader
wayland
wayland-protocols
2022-05-22 10:32:58 +02:00
libxkbcommon
2021-07-26 21:45:36 +02:00
xorg.libX11
xorg.libXdamage
xorg.libXcomposite
xorg.libXrender
xorg.libXext
xorg.libXxf86vm
xorg.libXtst
xorg.libXres
xorg.libXi
2022-05-22 10:32:58 +02:00
xorg.xcbutilwm
xorg.xcbutilerrors
2021-07-26 21:45:36 +02:00
libcap
SDL2
glslang
2022-05-22 10:32:58 +02:00
udev
2021-07-26 21:45:36 +02:00
pixman
libinput
2022-05-22 10:32:58 +02:00
mesa # libgbm
libseat
xwayland
2021-07-26 21:45:36 +02:00
];
2022-05-22 10:32:58 +02:00
preConfigure = ''
# Use packaged stb.
cp -R --no-preserve=mode,ownership ${stb}/include/stb subprojects/stb
cp subprojects/packagefiles/stb/* subprojects/stb
'';
2021-07-26 21:45:36 +02:00
}