3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/X11/libstrangle/default.nix

34 lines
793 B
Nix
Raw Normal View History

2021-01-09 16:02:57 +00:00
{ lib, stdenv, fetchFromGitLab, libGL, libX11 }:
2019-07-15 19:11:55 +01:00
stdenv.mkDerivation rec {
pname = "libstrangle";
2021-01-09 16:02:57 +00:00
version = "0.1.1";
2019-07-15 19:11:55 +01:00
2021-01-09 16:02:57 +00:00
buildInputs = [ libGL libX11 ];
src = fetchFromGitLab {
owner = "torkel104";
2019-07-15 19:11:55 +01:00
repo = pname;
2021-01-09 16:02:57 +00:00
rev = version;
sha256 = "135icr544w5ynlxfnxqgjn794bsm9i703rh9jfnracjb7jgnha4w";
2019-07-15 19:11:55 +01:00
};
makeFlags = [ "prefix=" "DESTDIR=$(out)" ];
patches = [ ./nixos.patch ];
postPatch = ''
substituteAllInPlace src/strangle.sh
2021-01-09 16:02:57 +00:00
substituteAllInPlace src/stranglevk.sh
2019-07-15 19:11:55 +01:00
'';
meta = with lib; {
2021-01-09 16:02:57 +00:00
homepage = "https://gitlab.com/torkel104/libstrangle";
2019-07-15 19:11:55 +01:00
description = "Frame rate limiter for Linux/OpenGL";
license = licenses.gpl3;
platforms = [ "x86_64-linux" ];
maintainers = with maintainers; [ aske ];
2021-04-27 18:45:51 +01:00
mainProgram = "strangle";
2019-07-15 19:11:55 +01:00
};
}