2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libnetfilter_conntrack, ncurses }:
|
2017-06-27 17:27:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "iptstate";
|
2021-11-03 05:34:21 +00:00
|
|
|
version = "2.2.7";
|
2017-06-27 17:27:13 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 12:41:18 +00:00
|
|
|
url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${pname}-${version}.tar.bz2";
|
2021-11-03 05:34:21 +00:00
|
|
|
sha256 = "sha256-iW3wYCiFRWomMfeV1jT8ITEeUF+MkQNI5jEoYPIJeVU=";
|
2017-06-27 17:27:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libnetfilter_conntrack ncurses ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-06-27 17:27:13 +00:00
|
|
|
description = "Conntrack top like tool";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/jaymzh/iptstate";
|
2017-06-27 17:27:13 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ trevorj ];
|
|
|
|
downloadPage = "https://github.com/jaymzh/iptstate/releases";
|
2020-06-30 19:00:30 +00:00
|
|
|
license = licenses.zlib;
|
2017-06-27 17:27:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -m755 -D iptstate $out/bin/iptstate
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
|