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

39 lines
1.0 KiB
Nix
Raw Normal View History

2017-02-03 12:07:07 +00:00
{ stdenv, fetchurl, bison, flex, pkgconfig
2017-01-22 01:20:00 +00:00
, libnetfilter_conntrack, libnftnl, libmnl }:
stdenv.mkDerivation rec {
name = "iptables-${version}";
2018-02-04 00:47:00 +00:00
version = "1.6.2";
src = fetchurl {
url = "https://www.netfilter.org/projects/iptables/files/${name}.tar.bz2";
2018-02-04 00:47:00 +00:00
sha256 = "0crp0lvh5m2f15pr8cw97h8yb8zjj10x95zj06j46cr68vx2vl2m";
};
2017-02-03 12:07:07 +00:00
nativeBuildInputs = [ bison flex pkgconfig ];
2016-01-01 01:54:56 +00:00
2017-01-22 01:20:00 +00:00
buildInputs = [ libnetfilter_conntrack libnftnl libmnl ];
2016-01-01 01:54:56 +00:00
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl"
'';
configureFlags = [
"--enable-devel"
"--enable-shared"
];
2017-01-22 01:20:00 +00: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 01:20:00 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];
2018-08-29 23:34:22 +01:00
license = licenses.gpl2;
downloadPage = "http://www.netfilter.org/projects/iptables/files/";
updateWalker = true;
inherit version;
};
}