mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-21 12:38:41 +03:00
limitcpu: init at 2.7
Renamed from cpulimit.
This commit is contained in:
parent
d0cdd897c3
commit
44a2177997
27
pkgs/tools/misc/limitcpu/default.nix
Normal file
27
pkgs/tools/misc/limitcpu/default.nix
Normal 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];
|
||||||
|
};
|
||||||
|
}
|
@ -3941,6 +3941,8 @@ with pkgs;
|
|||||||
|
|
||||||
lifeograph = callPackage ../applications/editors/lifeograph { };
|
lifeograph = callPackage ../applications/editors/lifeograph { };
|
||||||
|
|
||||||
|
limitcpu = callPackage ../tools/misc/limitcpu { };
|
||||||
|
|
||||||
link-grammar = callPackage ../tools/text/link-grammar { };
|
link-grammar = callPackage ../tools/text/link-grammar { };
|
||||||
|
|
||||||
linuxptp = callPackage ../os-specific/linux/linuxptp { };
|
linuxptp = callPackage ../os-specific/linux/linuxptp { };
|
||||||
|
Loading…
Reference in New Issue
Block a user