at 16.09-beta 33 lines 903 B view raw
1{stdenv, fetchurl, bison, flex, libnetfilter_conntrack, libnftnl, libmnl}: 2 3stdenv.mkDerivation rec { 4 name = "iptables-${version}"; 5 version = "1.6.0"; 6 7 src = fetchurl { 8 url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2"; 9 sha256 = "0q0w1x4aijid8wj7dg1ny9fqwll483f1sqw7kvkskd8q1c52mdsb"; 10 }; 11 12 nativeBuildInputs = [bison flex]; 13 14 buildInputs = [libnetfilter_conntrack libnftnl libmnl]; 15 16 preConfigure = '' 17 export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl" 18 ''; 19 20 configureFlags = '' 21 --enable-devel 22 --enable-shared 23 ''; 24 25 meta = { 26 description = "A program to configure the Linux IP packet filtering ruleset"; 27 homepage = http://www.netfilter.org/projects/iptables/index.html; 28 platforms = stdenv.lib.platforms.linux; 29 downloadPage = "http://www.netfilter.org/projects/iptables/files/"; 30 updateWalker = true; 31 inherit version; 32 }; 33}