mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 09:02:46 +00:00
34 lines
793 B
Nix
34 lines
793 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 ];
|
|
mainProgram = "strangle";
|
|
};
|
|
}
|