2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, libnetfilter_conntrack, ncurses }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "iptstate";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "2.2.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${pname}-${version}.tar.bz2";
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-iW3wYCiFRWomMfeV1jT8ITEeUF+MkQNI5jEoYPIJeVU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libnetfilter_conntrack ncurses ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.zlib;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D iptstate $out/bin/iptstate
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|