3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/os-specific/linux/smemstat/default.nix
2019-12-24 11:27:15 -08:00

24 lines
674 B
Nix

{ stdenv, lib, fetchurl, ncurses }:
stdenv.mkDerivation rec {
pname = "smemstat";
version = "0.02.06";
src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz";
sha256 = "1069gwmc29vbw7zszqa5v5yxfvgaq7c41r0g456zdpm6msy5kb0w";
};
buildInputs = [ ncurses ];
installFlags = [ "DESTDIR=$(out)" ];
postInstall = ''
mv $out/usr/* $out
rm -r $out/usr
'';
meta = with lib; {
description = "Memory usage monitoring tool";
homepage = https://kernel.ubuntu.com/~cking/smemstat/;
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}