2017-01-26 02:48:56 +00:00
|
|
|
{ stdenv, lib, fetchurl, ncurses }:
|
2016-07-14 16:57:38 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "smemstat-${version}";
|
2017-01-26 02:48:56 +00:00
|
|
|
version = "0.01.16";
|
2016-07-14 16:57:38 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.gz";
|
2017-01-26 02:48:56 +00:00
|
|
|
sha256 = "14n3s6ibm9bq58drvpiasqn11ci6mrwswfpcbpbsimx6fh2j4bi3";
|
2016-07-14 16:57:38 +00:00
|
|
|
};
|
2017-01-26 02:48:56 +00:00
|
|
|
buildInputs = [ ncurses ];
|
2016-07-14 16:57:38 +00:00
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/usr/* $out
|
|
|
|
rm -r $out/usr
|
|
|
|
'';
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Memory usage monitoring tool";
|
|
|
|
homepage = http://kernel.ubuntu.com/~cking/smemstat/;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ womfoo ];
|
|
|
|
};
|
|
|
|
}
|