diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-09-17 07:27:14 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-17 07:27:14 -0400 |
commit | bd387439ea76d18d8839c6916c566298fbf91e56 (patch) | |
tree | e3d61a7f78ad04796c26e20e5e6d2a9c49e6c799 | |
parent | e589f08b3bcdbe38aabb3352607dc3e7b5240686 (diff) | |
parent | d0c6414938ee183e5df0f5136a1e66da5b4b148e (diff) |
Merge pull request #68917 from dtzWill/feature/cpustat
cpustat: init at 0.02.09
-rw-r--r-- | pkgs/os-specific/linux/cpustat/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/cpustat/default.nix b/pkgs/os-specific/linux/cpustat/default.nix new file mode 100644 index 000000000000..23ed2b07c966 --- /dev/null +++ b/pkgs/os-specific/linux/cpustat/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchurl, ncurses }: + +stdenv.mkDerivation rec { + pname = "cpustat"; + version = "0.02.09"; + + src = fetchurl { + url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.xz"; + sha256 = "12xahv65yrhs5r830clkl1qnwg3dnrk5qn3zsznzbv1iy2f3cj7y"; + }; + + buildInputs = [ ncurses ]; + + installFlags = [ + "BINDIR=${placeholder "out"}/bin" + "MANDIR=${placeholder "out"}/share/man/man8" + ]; + + meta = with lib; { + description = "CPU usage monitoring tool"; + homepage = "https://kernel.ubuntu.com/~cking/cpustat/"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ dtzWill ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 39a987903901..ae3687a0784a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15413,6 +15413,8 @@ in cifs-utils = callPackage ../os-specific/linux/cifs-utils { }; + cpustat = callPackage ../os-specific/linux/cpustat { }; + cockroachdb = callPackage ../servers/sql/cockroachdb { }; conky = callPackage ../os-specific/linux/conky ({ |