Provide NixOS module option to enable the paperless exporter. (#242084)
[NixPkgs.git] / pkgs / by-name / ip / iptstate / package.nix
blob32352002aa8f78fac7e5684308d827733441ed92
2   lib,
3   stdenv,
4   fetchurl,
5   libnetfilter_conntrack,
6   ncurses,
7 }:
9 stdenv.mkDerivation rec {
10   pname = "iptstate";
11   version = "2.2.7";
13   src = fetchurl {
14     url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${pname}-${version}.tar.bz2";
15     sha256 = "sha256-iW3wYCiFRWomMfeV1jT8ITEeUF+MkQNI5jEoYPIJeVU=";
16   };
18   buildInputs = [
19     libnetfilter_conntrack
20     ncurses
21   ];
23   meta = with lib; {
24     description = "Conntrack top like tool";
25     mainProgram = "iptstate";
26     homepage = "https://github.com/jaymzh/iptstate";
27     platforms = platforms.linux;
28     maintainers = with maintainers; [ trevorj ];
29     downloadPage = "https://github.com/jaymzh/iptstate/releases";
30     license = licenses.zlib;
31   };
33   installPhase = ''
34     install -m755 -D iptstate $out/bin/iptstate
35   '';