You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.2 KiB

  1. { stdenv, lib, pkgs, fetchFromGitHub, meson, ninja, wlroots, pkg-config, cmake, xorg, libdrm,
  2. vulkan-loader, wayland, wayland-protocols, libxkbcommon, libcap, SDL2, glslang, libudev, pixman, libinput, }:
  3. stdenv.mkDerivation rec {
  4. pname = "gamescope";
  5. version = "3.8.4";
  6. src = fetchFromGitHub {
  7. owner = "Plagman";
  8. repo = pname;
  9. rev = version;
  10. sha256 = "1asgyxm05wqmcrvl9i50zx7yrg8ipw6pb5j0bzz31gn589rysgix";
  11. fetchSubmodules = true;
  12. };
  13. nativeBuildInputs = [
  14. meson
  15. ninja
  16. pkg-config
  17. cmake
  18. ];
  19. buildInputs = [
  20. (pkgs.callPackage (pkgs.fetchurl {
  21. name = "wlroots_13.nix";
  22. url = "https://raw.githubusercontent.com/NixOS/nixpkgs/c4976f356529978031f1ad2200015ad03de50cb9/pkgs/development/libraries/wlroots/default.nix";
  23. sha256 = "49f053124e9029a6863582940af9fefc5e3012353a6b86a2e2214dc7cf6467da";
  24. }) {})
  25. libdrm
  26. libxkbcommon
  27. vulkan-loader
  28. wayland
  29. wayland-protocols
  30. xorg.libX11
  31. xorg.libXdamage
  32. xorg.libXcomposite
  33. xorg.libXrender
  34. xorg.libXext
  35. xorg.libXxf86vm
  36. xorg.libXtst
  37. xorg.libXres
  38. xorg.libXi
  39. libcap
  40. SDL2
  41. glslang
  42. libudev
  43. pixman
  44. libinput
  45. ];
  46. }