nixpkgs/pkgs/os-specific/linux/iptstate/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
762 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, libnetfilter_conntrack, ncurses }:
stdenv.mkDerivation rec {
pname = "iptstate";
2021-11-03 06:34:21 +01:00
version = "2.2.7";
src = fetchurl {
url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${pname}-${version}.tar.bz2";
2021-11-03 06:34:21 +01:00
sha256 = "sha256-iW3wYCiFRWomMfeV1jT8ITEeUF+MkQNI5jEoYPIJeVU=";
};
buildInputs = [ libnetfilter_conntrack ncurses ];
meta = with lib; {
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-06-30 21:00:30 +02:00
license = licenses.zlib;
};
installPhase = ''
install -m755 -D iptstate $out/bin/iptstate
'';
}