2016-01-01 01:54:56 +00:00
|
|
|
{stdenv, fetchurl, bison, flex, libnetfilter_conntrack, libnftnl, libmnl}:
|
2008-08-15 10:49:43 +01:00
|
|
|
|
2009-07-23 19:16:24 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2014-12-12 22:16:48 +00:00
|
|
|
name = "iptables-${version}";
|
2016-01-01 01:54:56 +00:00
|
|
|
version = "1.6.0";
|
2008-08-15 10:49:43 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2009-07-23 19:16:24 +01:00
|
|
|
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
|
2016-01-01 01:54:56 +00:00
|
|
|
sha256 = "0q0w1x4aijid8wj7dg1ny9fqwll483f1sqw7kvkskd8q1c52mdsb";
|
2008-08-15 10:49:43 +01:00
|
|
|
};
|
|
|
|
|
2016-01-01 01:54:56 +00:00
|
|
|
nativeBuildInputs = [bison flex];
|
|
|
|
|
|
|
|
buildInputs = [libnetfilter_conntrack libnftnl libmnl];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl"
|
|
|
|
'';
|
|
|
|
|
2013-11-20 18:33:26 +00:00
|
|
|
configureFlags = ''
|
|
|
|
--enable-devel
|
|
|
|
--enable-shared
|
|
|
|
'';
|
2010-05-20 23:11:44 +01:00
|
|
|
|
2008-08-15 10:49:43 +01:00
|
|
|
meta = {
|
|
|
|
description = "A program to configure the Linux IP packet filtering ruleset";
|
|
|
|
homepage = http://www.netfilter.org/projects/iptables/index.html;
|
2010-08-14 00:11:58 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-12-12 22:16:48 +00:00
|
|
|
downloadPage = "http://www.netfilter.org/projects/iptables/files/";
|
|
|
|
updateWalker = true;
|
|
|
|
inherit version;
|
2008-08-15 10:49:43 +01:00
|
|
|
};
|
|
|
|
}
|