1{ lib, stdenv, fetchurl, libnetfilter_conntrack, ncurses }:
2
3stdenv.mkDerivation rec {
4 pname = "iptstate";
5 version = "2.2.7";
6
7 src = fetchurl {
8 url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${pname}-${version}.tar.bz2";
9 sha256 = "sha256-iW3wYCiFRWomMfeV1jT8ITEeUF+MkQNI5jEoYPIJeVU=";
10 };
11
12 buildInputs = [ libnetfilter_conntrack ncurses ];
13
14 meta = with lib; {
15 description = "Conntrack top like tool";
16 mainProgram = "iptstate";
17 homepage = "https://github.com/jaymzh/iptstate";
18 platforms = platforms.linux;
19 maintainers = with maintainers; [ trevorj ];
20 downloadPage = "https://github.com/jaymzh/iptstate/releases";
21 license = licenses.zlib;
22 };
23
24 installPhase = ''
25 install -m755 -D iptstate $out/bin/iptstate
26 '';
27}
28