mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 17:04:42 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libX11,
|
|
libglut,
|
|
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
|
|
libglut
|
|
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 = "Very basic OpenGL demo for testing NVIDIA's G-SYNC technology on Linux";
|
|
mainProgram = "gl-gsync-demo";
|
|
longDescription = ''
|
|
The demo simply draws a vertical bar moving across 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";
|
|
};
|
|
}
|