38 lines
994 B
Nix
Raw Normal View History

2017-01-22 02:20:00 +01:00
{ stdenv, fetchurl, bison, flex
, libnetfilter_conntrack, libnftnl, libmnl }:
stdenv.mkDerivation rec {
name = "iptables-${version}";
2016-01-01 02:54:56 +01:00
version = "1.6.0";
src = fetchurl {
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
2016-01-01 02:54:56 +01:00
sha256 = "0q0w1x4aijid8wj7dg1ny9fqwll483f1sqw7kvkskd8q1c52mdsb";
};
2017-01-22 02:20:00 +01:00
nativeBuildInputs = [ bison flex ];
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"
'';
configureFlags = ''
--enable-devel
--enable-shared
'';
2017-01-22 02:20:00 +01:00
outputs = [ "out" "dev" ];
meta = with stdenv.lib; {
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 ];
downloadPage = "http://www.netfilter.org/projects/iptables/files/";
updateWalker = true;
inherit version;
};
}