1 { stdenv, fetchFromGitHub, libX11, libglut, glew, libXNVCtrl, libXext, lib }:
3 stdenv.mkDerivation rec {
4 pname = "gl-gsync-demo";
5 version = "unstable-2020-12-27";
7 src = fetchFromGitHub {
9 repo = "gl-gsync-demo";
10 rev = "4fd963a8ad880dc2d846394c8c80b2091a119591";
11 sha256 = "1innsmpsd9n9ih80v16rhj2ijrl28jd7x6a4jmxdirba7mjibm8d";
14 buildInputs = [ libX11 libglut glew libXNVCtrl libXext ];
19 install -D gl-gsync-demo -t $out/bin/
25 license = with licenses; mit;
26 platforms = platforms.linux;
27 maintainers = with maintainers; [ atemu ];
28 description = "Very basic OpenGL demo for testing NVIDIA's G-SYNC technology on Linux";
29 mainProgram = "gl-gsync-demo";
31 The demo simply draws a vertical bar moving across the screen at constant speed, but deliberately rendered at a variable frame rate.
33 The min and max frame rates can be manually changed at runtime, by step of 10 fps and with a min of 10 fps.
35 The demo also allows to toggle V-Sync on/off.
37 homepage = "https://github.com/dahenry/gl-gsync-demo";