3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/cpustat/default.nix

27 lines
681 B
Nix
Raw Normal View History

2019-09-14 22:54:15 +01:00
{ stdenv, lib, fetchurl, ncurses }:
stdenv.mkDerivation rec {
pname = "cpustat";
version = "0.02.09";
2019-09-14 22:54:15 +01:00
src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/${pname}/${pname}-${version}.tar.xz";
sha256 = "12xahv65yrhs5r830clkl1qnwg3dnrk5qn3zsznzbv1iy2f3cj7y";
};
2019-09-14 22:54:15 +01:00
buildInputs = [ ncurses ];
2019-09-14 22:54:15 +01:00
installFlags = [
"BINDIR=${placeholder "out"}/bin"
"MANDIR=${placeholder "out"}/share/man/man8"
];
2019-09-14 22:54:15 +01:00
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 ];
};
}