1{ lib, stdenv, fetchurl, pkg-config, libmnl }:
2
3stdenv.mkDerivation rec {
4 pname = "ipset";
5 version = "7.19";
6
7 src = fetchurl {
8 url = "https://ipset.netfilter.org/${pname}-${version}.tar.bz2";
9 sha256 = "sha256-m8H7pI1leG4+C2Pca2aahmgj13hAxpkMDGsjB47CxNY=";
10 };
11
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ libmnl ];
14
15 configureFlags = [ "--with-kmod=no" ];
16
17 meta = with lib; {
18 homepage = "https://ipset.netfilter.org/";
19 description = "Administration tool for IP sets";
20 license = licenses.gpl2;
21 platforms = platforms.linux;
22 };
23}