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