2017-01-26 02:48:56 +00:00
|
|
|
{ stdenv, lib, fetchurl, ncurses }:
|
2016-07-14 17:57:38 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "smemstat";
|
2019-12-24 19:27:15 +00:00
|
|
|
version = "0.02.06";
|
2016-07-14 17:57:38 +01:00
|
|
|
src = fetchurl {
|
2019-04-22 09:14:28 +01:00
|
|
|
url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz";
|
2019-12-24 19:27:15 +00:00
|
|
|
sha256 = "1069gwmc29vbw7zszqa5v5yxfvgaq7c41r0g456zdpm6msy5kb0w";
|
2016-07-14 17:57:38 +01:00
|
|
|
};
|
2017-01-26 02:48:56 +00:00
|
|
|
buildInputs = [ ncurses ];
|
2016-07-14 17:57:38 +01:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rm -r $out/usr
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Memory usage monitoring tool";
|
2019-04-22 09:14:28 +01:00
|
|
|
homepage = https://kernel.ubuntu.com/~cking/smemstat/;
|
2016-07-14 17:57:38 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
};
|
|
|
|
}
|