1 {lib, stdenv, fetchurl}:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/limitcpu/cpulimit-${version}.tar.gz";
9 sha256 = "sha256-HeBApPikDf6MegJf6YB1ZzRo+8P8zMvCMbx0AvYuxKA=";
12 buildFlags = with stdenv; [ (
13 if isDarwin then "osx"
14 else if isFreeBSD then "freebsd"
18 installFlags = [ "PREFIX=$(out)" ];
21 homepage = "http://limitcpu.sourceforge.net/";
22 description = "A tool to throttle the CPU usage of programs";
23 platforms = with platforms; linux ++ freebsd;
24 license = licenses.gpl2;
25 maintainers = [maintainers.rycee];