nixpkgs/pkgs/os-specific/linux/iptables/default.nix

38 lines
1015 B
Nix
Raw Normal View History

2017-02-03 04:07:07 -08:00
{ stdenv, fetchurl, bison, flex, pkgconfig
2017-01-21 17:20:00 -08:00
, libnetfilter_conntrack, libnftnl, libmnl }:
stdenv.mkDerivation rec {
name = "iptables-${version}";
2017-02-03 04:07:07 -08:00
version = "1.6.1";
src = fetchurl {
url = "http://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
2017-02-03 04:07:07 -08:00
sha256 = "1x8c9y340x79djsq54bc1674ryv59jfphrk4f88i7qbvbnyxghhg";
};
2017-02-03 04:07:07 -08:00
nativeBuildInputs = [ bison flex pkgconfig ];
2015-12-31 17:54:56 -08:00
2017-01-21 17:20:00 -08:00
buildInputs = [ libnetfilter_conntrack libnftnl libmnl ];
2015-12-31 17:54:56 -08:00
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl"
'';
configureFlags = ''
--enable-devel
--enable-shared
'';
2017-01-21 17:20:00 -08: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-21 17:20:00 -08:00
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];
downloadPage = "http://www.netfilter.org/projects/iptables/files/";
updateWalker = true;
inherit version;
};
}