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