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 homepage = "https://github.com/jaymzh/iptstate";
17 platforms = platforms.linux;
18 maintainers = with maintainers; [ trevorj ];
19 downloadPage = "https://github.com/jaymzh/iptstate/releases";
20 license = licenses.zlib;
21 };
22
23 installPhase = ''
24 install -m755 -D iptstate $out/bin/iptstate
25 '';
26}
27