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

                         
                     
                    

                  
                                                                                                         
                                                                   



                                                   
                    
                                            
                                                    


                                                                 
                            






                                               
{ lib, stdenv, fetchurl, libnetfilter_conntrack, ncurses }:

stdenv.mkDerivation rec {
  pname = "iptstate";
  version = "2.2.7";

  src = fetchurl {
    url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${pname}-${version}.tar.bz2";
    sha256 = "sha256-iW3wYCiFRWomMfeV1jT8ITEeUF+MkQNI5jEoYPIJeVU=";
  };

  buildInputs = [ libnetfilter_conntrack ncurses ];

  meta = with lib; {
    description = "Conntrack top like tool";
    homepage = "https://github.com/jaymzh/iptstate";
    platforms = platforms.linux;
    maintainers = with maintainers; [ trevorj ];
    downloadPage = "https://github.com/jaymzh/iptstate/releases";
    license = licenses.zlib;
  };

  installPhase = ''
    install -m755 -D iptstate $out/bin/iptstate
  '';
}