2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchurl, ncurses }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "smemstat";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.02.08";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz";
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "1agigvkv1868cskivzrwyiixl658x5bv7xpz4xjc8mlii4maivpp";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rm -r $out/usr
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Memory usage monitoring tool";
|
|
|
|
homepage = "https://kernel.ubuntu.com/~cking/smemstat/";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
};
|
|
|
|
}
|