nixpkgs/pkgs/os-specific/linux/smemstat/default.nix

24 lines
676 B
Nix
Raw Normal View History

2017-01-26 02:48:56 +00:00
{ stdenv, lib, fetchurl, ncurses }:
2016-07-14 17:57:38 +01:00
stdenv.mkDerivation rec {
pname = "smemstat";
2020-03-01 03:25:19 +00:00
version = "0.02.07";
2016-07-14 17:57:38 +01:00
src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz";
2020-03-01 03:25:19 +00:00
sha256 = "09i5n1zjw45qrfbc2vglh1xk1jwqnc91bgsq7bkp29d9dpfpzhdc";
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";
2020-03-01 03:25:19 +00: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 ];
};
}