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