c7e6337bd0
GitOrigin-RevId: 08e4dc3a907a6dfec8bb3bbf1540d8abbffea22b
39 lines
1 KiB
Nix
39 lines
1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, autoreconfHook, pkg-config, libnl, iptables }:
|
|
|
|
let
|
|
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "jool-cli";
|
|
version = sourceAttrs.version;
|
|
|
|
src = sourceAttrs.src;
|
|
|
|
patches = [ (fetchpatch {
|
|
url = "https://github.com/NICMx/Jool/commit/490ddb0933061cab3c2a7952dffc61789deed565.patch";
|
|
hash = "sha256-1dpMth0ocPHujlk+96St1a63RipcWiL/CdmSz4O87Lg=";
|
|
}) ];
|
|
|
|
outputs = [
|
|
"out"
|
|
"man"
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
|
buildInputs = [ libnl iptables ];
|
|
|
|
makeFlags = [ "-C" "src/usr" ];
|
|
|
|
prePatch = ''
|
|
sed -e 's%^XTABLES_SO_DIR = .*%XTABLES_SO_DIR = '"$out"'/lib/xtables%g' -i src/usr/iptables/Makefile
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.jool.mx/";
|
|
description = "Fairly compliant SIIT and Stateful NAT64 for Linux - CLI tools";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl2;
|
|
maintainers = with maintainers; [ fpletz ];
|
|
};
|
|
}
|