tuicam: init at 0.0.2 (#377825)
[NixPkgs.git] / pkgs / by-name / vr / vrrtest / package.nix
blobc1ee21a55e7ec9e4b7be39424aed50ecd4711586
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   makeWrapper,
6   zip,
7   love,
8 }:
10 stdenv.mkDerivation (finalAttrs: {
11   pname = "vrrtest";
12   version = "2.1.0";
14   src = fetchFromGitHub {
15     owner = "Nixola";
16     repo = "VRRTest";
17     rev = "v${finalAttrs.version}";
18     hash = "sha256-esyD+BpdnB8miUrIjV6P8Lho1xztmhLDnKxdQKW8GXc=";
19   };
21   nativeBuildInputs = [ makeWrapper ];
23   buildInputs = [ zip ];
25   buildPhase = ''
26     runHook preBuild
27     zip -9 -r vrrtest.love .
28     runHook postBuild
29   '';
31   installPhase = ''
32     runHook preInstall
33     install -Dm444 -t $out/share/ vrrtest.love
34     makeWrapper ${love}/bin/love $out/bin/vrrtest \
35       --add-flags $out/share/vrrtest.love
36     runHook postInstall
37   '';
39   meta = with lib; {
40     description = "Tool testing variable refresh rates";
41     homepage = "https://github.com/Nixola/VRRTest";
42     license = licenses.zlib;
43     mainProgram = "vrrtest";
44     maintainers = with maintainers; [ justinlime ];
45     inherit (love.meta) platforms;
46   };