37 lines
1,015 B
Nix
37 lines
1,015 B
Nix
{ stdenv, fetchurl, bison, flex, pkgconfig
|
|
, libnetfilter_conntrack, libnftnl, libmnl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "iptables-${version}";
|
|
version = "1.6.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
|
|
sha256 = "1x8c9y340x79djsq54bc1674ryv59jfphrk4f88i7qbvbnyxghhg";
|
|
};
|
|
|
|
nativeBuildInputs = [ bison flex pkgconfig ];
|
|
|
|
buildInputs = [ libnetfilter_conntrack libnftnl libmnl ];
|
|
|
|
preConfigure = ''
|
|
export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl"
|
|
'';
|
|
|
|
configureFlags = ''
|
|
--enable-devel
|
|
--enable-shared
|
|
'';
|
|
|
|
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;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
downloadPage = "http://www.netfilter.org/projects/iptables/files/";
|
|
updateWalker = true;
|
|
inherit version;
|
|
};
|
|
}
|