1{ stdenv, lib, fetchurl, ncurses }:
2
3stdenv.mkDerivation rec {
4 name = "smemstat-${version}";
5 version = "0.01.18";
6 src = fetchurl {
7 url = "http://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.gz";
8 sha256 = "0g262gilj2jk365wj4yl93ifppgvc9rx7dmlw6ychbv72v2pbv6w";
9 };
10 buildInputs = [ ncurses ];
11 installFlags = [ "DESTDIR=$(out)" ];
12 postInstall = ''
13 mv $out/usr/* $out
14 rm -r $out/usr
15 '';
16 meta = with lib; {
17 description = "Memory usage monitoring tool";
18 homepage = http://kernel.ubuntu.com/~cking/smemstat/;
19 license = licenses.gpl2;
20 platforms = platforms.linux;
21 maintainers = with maintainers; [ womfoo ];
22 };
23}