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

24 lines
674 B
Nix
Raw Normal View History

2017-01-25 21:48:56 -05:00
{ stdenv, lib, fetchurl, ncurses }:
2016-07-14 12:57:38 -04:00
stdenv.mkDerivation rec {
pname = "smemstat";
2019-12-24 14:27:15 -05:00
version = "0.02.06";
2016-07-14 12:57:38 -04:00
src = fetchurl {
url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz";
2019-12-24 14:27:15 -05:00
sha256 = "1069gwmc29vbw7zszqa5v5yxfvgaq7c41r0g456zdpm6msy5kb0w";
2016-07-14 12:57:38 -04:00
};
2017-01-25 21:48:56 -05:00
buildInputs = [ ncurses ];
2016-07-14 12:57:38 -04:00
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/;
2016-07-14 12:57:38 -04:00
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ womfoo ];
};
}