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