Merge pull request #107730 from Atemu/init/gl-gsync-demo

authored by

Artturi and committed by
GitHub
c93f3d1d b0f2a754

+42
+38
pkgs/games/gl-gsync-demo/default.nix
··· 1 + { stdenv, fetchFromGitHub, libX11, freeglut, glew, libXNVCtrl, libXext, lib }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "gl-gsync-demo"; 5 + version = "unstable-2020-12-27"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "dahenry"; 9 + repo = "gl-gsync-demo"; 10 + rev = "4fd963a8ad880dc2d846394c8c80b2091a119591"; 11 + sha256 = "1innsmpsd9n9ih80v16rhj2ijrl28jd7x6a4jmxdirba7mjibm8d"; 12 + }; 13 + 14 + buildInputs = [ libX11 freeglut glew libXNVCtrl libXext ]; 15 + 16 + installPhase = '' 17 + runHook preInstall 18 + 19 + install -D gl-gsync-demo -t $out/bin/ 20 + 21 + runHook postInstall 22 + ''; 23 + 24 + meta = with lib; { 25 + license = with licenses; mit; 26 + platforms = platforms.linux; 27 + maintainers = with maintainers; [ atemu ]; 28 + description = "A very basic OpenGL demo for testing NVIDIA's G-SYNC technology on Linux"; 29 + longDescription = '' 30 + The demo simply draws a vertical bar moving accross the screen at constant speed, but deliberately rendered at a variable frame rate. 31 + 32 + The min and max frame rates can be manually changed at runtime, by step of 10 fps and with a min of 10 fps. 33 + 34 + The demo also allows to toggle V-Sync on/off. 35 + ''; 36 + homepage = "https://github.com/dahenry/gl-gsync-demo"; 37 + }; 38 + }
+4
pkgs/top-level/all-packages.nix
··· 29699 29699 29700 29700 gltron = callPackage ../games/gltron { }; 29701 29701 29702 + gl-gsync-demo = callPackage ../games/gl-gsync-demo { 29703 + libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl; 29704 + }; 29705 + 29702 29706 gmad = callPackage ../games/gmad { }; 29703 29707 29704 29708 gnonograms = callPackage ../games/gnonograms { };