2021-12-20 08:31:43 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, ncurses }:
|
2016-07-14 16:57:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "smemstat";
|
2024-01-11 20:39:05 +00:00
|
|
|
version = "0.02.13";
|
2021-12-20 08:31:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ColinIanKing";
|
|
|
|
repo = pname;
|
|
|
|
rev = "V${version}";
|
2024-01-11 20:39:05 +00:00
|
|
|
hash = "sha256-wxgw5tPdZAhhISbay8BwoL5zxZJV4WstDpOtv9umf54=";
|
2016-07-14 16:57:38 +00:00
|
|
|
};
|
2021-12-20 08:31:43 +00:00
|
|
|
|
2017-01-26 02:48:56 +00:00
|
|
|
buildInputs = [ ncurses ];
|
2021-12-20 08:31:43 +00:00
|
|
|
installFlags = [
|
|
|
|
"BINDIR=${placeholder "out"}/bin"
|
|
|
|
"MANDIR=${placeholder "out"}/share/man/man8"
|
|
|
|
"BASHDIR=${placeholder "out"}/share/bash-completion/completions"
|
|
|
|
];
|
|
|
|
|
2016-07-14 16:57:38 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Memory usage monitoring tool";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "smemstat";
|
2021-11-06 21:14:10 +00:00
|
|
|
homepage = "https://github.com/ColinIanKing/smemstat";
|
2024-05-26 12:16:07 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2016-07-14 16:57:38 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
};
|
|
|
|
}
|