2021-03-23 19:22:30 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, libGL, libX11 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libstrangle";
|
2021-03-23 19:22:30 +00:00
|
|
|
version = "0.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-23 19:22:30 +00:00
|
|
|
buildInputs = [ libGL libX11 ];
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "torkel104";
|
2020-04-24 23:36:52 +00:00
|
|
|
repo = pname;
|
2021-03-23 19:22:30 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "135icr544w5ynlxfnxqgjn794bsm9i703rh9jfnracjb7jgnha4w";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
makeFlags = [ "prefix=" "DESTDIR=$(out)" ];
|
|
|
|
|
|
|
|
patches = [ ./nixos.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteAllInPlace src/strangle.sh
|
2021-03-23 19:22:30 +00:00
|
|
|
substituteAllInPlace src/stranglevk.sh
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-03-23 19:22:30 +00:00
|
|
|
homepage = "https://gitlab.com/torkel104/libstrangle";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Frame rate limiter for Linux/OpenGL";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
maintainers = with maintainers; [ aske ];
|
2021-05-03 20:48:10 +00:00
|
|
|
mainProgram = "strangle";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|