1{ stdenv, fetchurl, libnetfilter_conntrack, ncurses }:
2
3stdenv.mkDerivation rec {
4 name = "iptstate-${version}";
5 version = "2.2.6";
6
7 src = fetchurl {
8 url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${name}.tar.bz2";
9 sha256 = "bef8eb67a4533e53079f397b71e91dd34da23f8cbd65cb2d5b67cb907b00c068";
10 };
11
12 buildInputs = [ libnetfilter_conntrack ncurses ];
13
14 meta = with stdenv.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 };
21
22 installPhase = ''
23 install -m755 -D iptstate $out/bin/iptstate
24 '';
25}
26