2024-07-27 06:49:29 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libX11, libglut, glew, libXNVCtrl, libXext, lib }:
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gl-gsync-demo";
|
|
|
|
version = "unstable-2020-12-27";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dahenry";
|
|
|
|
repo = "gl-gsync-demo";
|
|
|
|
rev = "4fd963a8ad880dc2d846394c8c80b2091a119591";
|
|
|
|
sha256 = "1innsmpsd9n9ih80v16rhj2ijrl28jd7x6a4jmxdirba7mjibm8d";
|
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
buildInputs = [ libX11 libglut glew libXNVCtrl libXext ];
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -D gl-gsync-demo -t $out/bin/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
license = with licenses; mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ atemu ];
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Very basic OpenGL demo for testing NVIDIA's G-SYNC technology on Linux";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gl-gsync-demo";
|
2021-10-17 02:12:59 +00:00
|
|
|
longDescription = ''
|
2022-12-28 21:21:41 +00:00
|
|
|
The demo simply draws a vertical bar moving across the screen at constant speed, but deliberately rendered at a variable frame rate.
|
2021-10-17 02:12:59 +00:00
|
|
|
|
|
|
|
The min and max frame rates can be manually changed at runtime, by step of 10 fps and with a min of 10 fps.
|
|
|
|
|
|
|
|
The demo also allows to toggle V-Sync on/off.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/dahenry/gl-gsync-demo";
|
|
|
|
};
|
|
|
|
}
|