mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
29 lines
792 B
Nix
29 lines
792 B
Nix
{ lib, stdenv, fetchurl, libnetfilter_conntrack, ncurses }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "iptstate";
|
|
version = "2.2.7";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/jaymzh/iptstate/releases/download/v${version}/${pname}-${version}.tar.bz2";
|
|
sha256 = "sha256-iW3wYCiFRWomMfeV1jT8ITEeUF+MkQNI5jEoYPIJeVU=";
|
|
};
|
|
|
|
buildInputs = [ libnetfilter_conntrack ncurses ];
|
|
|
|
meta = with lib; {
|
|
description = "Conntrack top like tool";
|
|
mainProgram = "iptstate";
|
|
homepage = "https://github.com/jaymzh/iptstate";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ trevorj ];
|
|
downloadPage = "https://github.com/jaymzh/iptstate/releases";
|
|
license = licenses.zlib;
|
|
};
|
|
|
|
installPhase = ''
|
|
install -m755 -D iptstate $out/bin/iptstate
|
|
'';
|
|
}
|
|
|