summary refs log blame commit diff
path: root/pkgs/os-specific/linux/smemstat/default.nix
blob: 64525052af2067058ed4bf09aee15c21bc0524be (plain) (tree)
1
2
3
4
5
6
7
8
9
                                   

                         
                     
                      
                  
                                                                                          
                                                                    
    
                            






                                                 
                                                            




                                               
{ stdenv, lib, fetchurl, ncurses }:

stdenv.mkDerivation rec {
  pname = "smemstat";
  version = "0.02.08";
  src = fetchurl {
    url = "https://kernel.ubuntu.com/~cking/tarballs/smemstat/smemstat-${version}.tar.xz";
    sha256 = "1agigvkv1868cskivzrwyiixl658x5bv7xpz4xjc8mlii4maivpp";
  };
  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 ];
  };
}