limitcpu: init at 2.7

Renamed from cpulimit.
This commit is contained in:
John Soo 2022-06-03 11:15:12 -07:00
parent d0cdd897c3
commit 44a2177997
No known key found for this signature in database
GPG Key ID: D8A148F8CE4DDBC2
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
{lib, stdenv, fetchurl}:
stdenv.mkDerivation rec {
pname = "limitcpu";
version = "2.7";
src = fetchurl {
url = "mirror://sourceforge/limitcpu/cpulimit-${version}.tar.gz";
sha256 = "sha256-HeBApPikDf6MegJf6YB1ZzRo+8P8zMvCMbx0AvYuxKA=";
};
buildFlags = with stdenv; [ (
if isDarwin then "osx"
else if isFreeBSD then "freebsd"
else "cpulimit"
) ];
installFlags = [ "PREFIX=$(out)" ];
meta = with lib; {
homepage = "http://limitcpu.sourceforge.net/";
description = "A tool to throttle the CPU usage of programs";
platforms = with platforms; linux ++ freebsd;
license = licenses.gpl2;
maintainers = [maintainers.rycee];
};
}

View File

@ -3941,6 +3941,8 @@ with pkgs;
lifeograph = callPackage ../applications/editors/lifeograph { };
limitcpu = callPackage ../tools/misc/limitcpu { };
link-grammar = callPackage ../tools/text/link-grammar { };
linuxptp = callPackage ../os-specific/linux/linuxptp { };