2017-02-03 04:07:07 -08:00
|
|
|
{ stdenv, fetchurl, bison, flex, pkgconfig
|
2017-01-21 17:20:00 -08:00
|
|
|
, libnetfilter_conntrack, libnftnl, libmnl }:
|
2008-08-15 02:49:43 -07:00
|
|
|
|
2009-07-23 11:16:24 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2014-12-12 14:16:48 -08:00
|
|
|
name = "iptables-${version}";
|
2018-02-03 16:47:00 -08:00
|
|
|
version = "1.6.2";
|
2008-08-15 02:49:43 -07:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 11:43:35 -07:00
|
|
|
url = "https://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
|
2018-02-03 16:47:00 -08:00
|
|
|
sha256 = "0crp0lvh5m2f15pr8cw97h8yb8zjj10x95zj06j46cr68vx2vl2m";
|
2008-08-15 02:49:43 -07:00
|
|
|
};
|
|
|
|
|
2017-02-03 04:07:07 -08:00
|
|
|
nativeBuildInputs = [ bison flex pkgconfig ];
|
2015-12-31 17:54:56 -08:00
|
|
|
|
2017-01-21 17:20:00 -08:00
|
|
|
buildInputs = [ libnetfilter_conntrack libnftnl libmnl ];
|
2015-12-31 17:54:56 -08:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl"
|
|
|
|
'';
|
|
|
|
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-devel"
|
|
|
|
"--enable-shared"
|
|
|
|
];
|
2010-05-20 15:11:44 -07:00
|
|
|
|
2017-01-21 17:20:00 -08:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2008-08-15 02:49:43 -07:00
|
|
|
description = "A program to configure the Linux IP packet filtering ruleset";
|
|
|
|
homepage = http://www.netfilter.org/projects/iptables/index.html;
|
2017-01-21 17:20:00 -08:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2018-08-29 15:34:22 -07:00
|
|
|
license = licenses.gpl2;
|
2014-12-12 14:16:48 -08:00
|
|
|
downloadPage = "http://www.netfilter.org/projects/iptables/files/";
|
|
|
|
updateWalker = true;
|
|
|
|
inherit version;
|
2008-08-15 02:49:43 -07:00
|
|
|
};
|
|
|
|
}
|