gaming: Enable gamescope
This commit is contained in:
parent
4f848d384c
commit
d3a8d6de4c
@ -56,8 +56,7 @@
|
||||
];
|
||||
};
|
||||
in {
|
||||
# key-mapper only runs on linux
|
||||
inherit (pkgs) key-mapper;
|
||||
inherit (pkgs) gamescope;
|
||||
};
|
||||
});
|
||||
}
|
||||
|
@ -22,8 +22,7 @@ in {
|
||||
|
||||
steam-wrapped # Custom package
|
||||
|
||||
# Broken
|
||||
# gamescope
|
||||
gamescope
|
||||
|
||||
corectrl
|
||||
];
|
||||
|
@ -88,4 +88,6 @@ in {
|
||||
};
|
||||
|
||||
sddm-sugar-dark = prev.callPackage themes/sddm/sugar-dark {};
|
||||
|
||||
gamescope = prev.callPackage temp/gamescope.nix {};
|
||||
}
|
||||
|
96
packages/temp/gamescope.nix
Normal file
96
packages/temp/gamescope.nix
Normal file
@ -0,0 +1,96 @@
|
||||
# From https://github.com/Jovian-Experiments/Jovian-NixOS/blob/d27526e7917671ad3a64f823f4b95b761f96807d/pkgs/gamescope/default.nix
|
||||
{ stdenv
|
||||
, fetchFromGitHub
|
||||
|
||||
, meson
|
||||
, pkg-config
|
||||
, cmake
|
||||
, ninja
|
||||
|
||||
, xorg
|
||||
, libdrm
|
||||
, vulkan-loader
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, libxkbcommon
|
||||
, libcap
|
||||
, SDL2
|
||||
, pipewire
|
||||
, mesa
|
||||
, udev
|
||||
, pixman
|
||||
, libinput
|
||||
, libseat
|
||||
, xwayland
|
||||
, glslang
|
||||
|
||||
, stb
|
||||
, wlroots
|
||||
, libliftoff
|
||||
}:
|
||||
|
||||
let
|
||||
in
|
||||
stdenv.mkDerivation {
|
||||
pname = "gamescope";
|
||||
version = "3.11.28-beta4";
|
||||
src = fetchFromGitHub {
|
||||
owner = "Plagman";
|
||||
repo = "gamescope";
|
||||
rev = "refs/tags/3.11.28-beta4";
|
||||
hash = "sha256-3L3bQIPPfScvtN1dduh10dQu/AuTmD4dHNp3JjBIBLA=";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
xorg.libX11
|
||||
xorg.libXdamage
|
||||
xorg.libXcomposite
|
||||
xorg.libXrender
|
||||
xorg.libXext
|
||||
xorg.libXxf86vm
|
||||
xorg.libXtst
|
||||
xorg.libXres
|
||||
libdrm
|
||||
vulkan-loader
|
||||
wayland
|
||||
wayland-protocols
|
||||
libxkbcommon
|
||||
libcap
|
||||
SDL2
|
||||
pipewire
|
||||
mesa
|
||||
udev
|
||||
pixman
|
||||
libinput
|
||||
libseat
|
||||
xwayland
|
||||
xorg.xcbutilwm
|
||||
xorg.xcbutilerrors
|
||||
glslang
|
||||
xorg.libXi
|
||||
];
|
||||
|
||||
prePatch = ''
|
||||
echo ":: Copying stb"
|
||||
cp -vr "${stb.src}" subprojects/stb
|
||||
chmod -R +w subprojects/stb
|
||||
cp "subprojects/packagefiles/stb/meson.build" "subprojects/stb/"
|
||||
echo ":: Copying wlroots"
|
||||
rmdir subprojects/wlroots
|
||||
cp -vr "${wlroots.src}" subprojects/wlroots
|
||||
chmod -R +w subprojects/wlroots
|
||||
echo ":: Copying libliftoff"
|
||||
rmdir subprojects/libliftoff
|
||||
cp -vr "${libliftoff.src}" subprojects/libliftoff
|
||||
chmod -R +w subprojects/libliftoff
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
];
|
||||
|
||||
dontUseCmakeConfigure = true;
|
||||
}
|
Loading…
Reference in New Issue
Block a user