forked from mirrors/nixpkgs
33 lines
763 B
Nix
33 lines
763 B
Nix
{ lib, stdenv, fetchFromGitLab, libGL, libX11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libstrangle";
|
|
version = "0.1.1";
|
|
|
|
buildInputs = [ libGL libX11 ];
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "torkel104";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "135icr544w5ynlxfnxqgjn794bsm9i703rh9jfnracjb7jgnha4w";
|
|
};
|
|
|
|
makeFlags = [ "prefix=" "DESTDIR=$(out)" ];
|
|
|
|
patches = [ ./nixos.patch ];
|
|
|
|
postPatch = ''
|
|
substituteAllInPlace src/strangle.sh
|
|
substituteAllInPlace src/stranglevk.sh
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.com/torkel104/libstrangle";
|
|
description = "Frame rate limiter for Linux/OpenGL";
|
|
license = licenses.gpl3;
|
|
platforms = [ "x86_64-linux" ];
|
|
maintainers = with maintainers; [ aske ];
|
|
};
|
|
}
|