Merge pull request #107730 from Atemu/init/gl-gsync-demo
This commit is contained in:
commit
c93f3d1d74
2 changed files with 42 additions and 0 deletions
38
pkgs/games/gl-gsync-demo/default.nix
Normal file
38
pkgs/games/gl-gsync-demo/default.nix
Normal file
|
@ -0,0 +1,38 @@
|
||||||
|
{ stdenv, fetchFromGitHub, libX11, freeglut, glew, libXNVCtrl, libXext, lib }:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "gl-gsync-demo";
|
||||||
|
version = "unstable-2020-12-27";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dahenry";
|
||||||
|
repo = "gl-gsync-demo";
|
||||||
|
rev = "4fd963a8ad880dc2d846394c8c80b2091a119591";
|
||||||
|
sha256 = "1innsmpsd9n9ih80v16rhj2ijrl28jd7x6a4jmxdirba7mjibm8d";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ libX11 freeglut glew libXNVCtrl libXext ];
|
||||||
|
|
||||||
|
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 ];
|
||||||
|
description = "A very basic OpenGL demo for testing NVIDIA's G-SYNC technology on Linux";
|
||||||
|
longDescription = ''
|
||||||
|
The demo simply draws a vertical bar moving accross the screen at constant speed, but deliberately rendered at a variable frame rate.
|
||||||
|
|
||||||
|
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";
|
||||||
|
};
|
||||||
|
}
|
|
@ -29699,6 +29699,10 @@ with pkgs;
|
||||||
|
|
||||||
gltron = callPackage ../games/gltron { };
|
gltron = callPackage ../games/gltron { };
|
||||||
|
|
||||||
|
gl-gsync-demo = callPackage ../games/gl-gsync-demo {
|
||||||
|
libXNVCtrl = linuxPackages.nvidia_x11.settings.libXNVCtrl;
|
||||||
|
};
|
||||||
|
|
||||||
gmad = callPackage ../games/gmad { };
|
gmad = callPackage ../games/gmad { };
|
||||||
|
|
||||||
gnonograms = callPackage ../games/gnonograms { };
|
gnonograms = callPackage ../games/gnonograms { };
|
||||||
|
|
Loading…
Reference in a new issue