nixpkgs/pkgs/os-specific/linux/cpustat/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
768 B
Nix
Raw Normal View History

2024-03-27 08:34:43 +00:00
{ lib
, stdenv
, fetchFromGitHub
, ncurses
}:
2019-09-14 21:54:15 +00:00
stdenv.mkDerivation rec {
pname = "cpustat";
2024-07-17 18:12:29 +00:00
version = "0.02.21";
src = fetchFromGitHub {
owner = "ColinIanKing";
2024-03-27 08:34:43 +00:00
repo ="cpustat";
rev = "refs/tags/V${version}";
2024-07-17 18:12:29 +00:00
hash = "sha256-Rxoj2pnQ/tEUzcsFT1F+rU960b4Th3hqZU2YR6YGwZQ=";
2019-09-14 21:54:15 +00:00
};
2024-03-27 08:34:43 +00:00
buildInputs = [
ncurses
];
2019-09-14 21:54:15 +00:00
installFlags = [
"BINDIR=${placeholder "out"}/bin"
"MANDIR=${placeholder "out"}/share/man/man8"
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
2019-09-14 21:54:15 +00:00
];
2019-09-14 21:54:15 +00:00
meta = with lib; {
description = "CPU usage monitoring tool";
homepage = "https://github.com/ColinIanKing/cpustat";
2024-03-27 08:34:43 +00:00
license = licenses.gpl2Plus;
2019-09-14 21:54:15 +00:00
platforms = platforms.linux;
maintainers = [ ];
2024-03-27 08:34:43 +00:00
mainProgram = "cpustat";
2019-09-14 21:54:15 +00:00
};
}