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

40 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, bison, flex, pkgconfig, pruneLibtoolFiles
, libnetfilter_conntrack, libnftnl, libmnl, libpcap }:
stdenv.mkDerivation rec {
pname = "iptables";
version = "1.8.3";
src = fetchurl {
url = "https://www.netfilter.org/projects/${pname}/files/${pname}-${version}.tar.bz2";
sha256 = "106xkkg5crsscjlinxvqvprva23fwwqfgrzl8m2nn841841sqg52";
};
nativeBuildInputs = [ bison flex pkgconfig pruneLibtoolFiles ];
2016-01-01 02:54:56 +01:00
buildInputs = [ libnetfilter_conntrack libnftnl libmnl libpcap ];
2016-01-01 02:54:56 +01:00
preConfigure = ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lmnl -lnftnl"
'';
configureFlags = [
"--enable-devel"
"--enable-shared"
"--enable-bpf-compiler"
];
2017-01-22 02:20:00 +01:00
outputs = [ "out" "dev" ];
meta = with stdenv.lib; {
description = "A program to configure the Linux IP packet filtering ruleset";
homepage = https://www.netfilter.org/projects/iptables/index.html;
2017-01-22 02:20:00 +01:00
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];
2018-08-30 00:34:22 +02:00
license = licenses.gpl2;
downloadPage = "https://www.netfilter.org/projects/iptables/files/";
updateWalker = true;
inherit version;
};
}