2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, ncurses
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cpustat";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.02.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ColinIanKing";
|
2024-04-21 15:54:59 +00:00
|
|
|
repo ="cpustat";
|
|
|
|
rev = "refs/tags/V${version}";
|
|
|
|
hash = "sha256-cdHoo2esm772q782kb7mwRwlPXGDNNLHJRbd2si5g7k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"BINDIR=${placeholder "out"}/bin"
|
|
|
|
"MANDIR=${placeholder "out"}/share/man/man8"
|
2021-12-21 02:18:32 +00:00
|
|
|
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CPU usage monitoring tool";
|
2021-12-21 02:18:32 +00:00
|
|
|
homepage = "https://github.com/ColinIanKing/cpustat";
|
2024-04-21 15:54:59 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "cpustat";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|