10 sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
14 name = "jool-${sourceAttrs.version}-${kernel.version}";
16 src = sourceAttrs.src;
18 nativeBuildInputs = kernel.moduleBuildDependencies;
19 hardeningDisable = [ "pic" ];
22 sed -e 's@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@' -i src/mod/*/Makefile
25 makeFlags = kernel.makeFlags ++ [
27 "INSTALL_MOD_PATH=${placeholder "out"}"
30 installTargets = "modules_install";
33 inherit (nixosTests) jool;
37 homepage = "https://www.jool.mx/";
38 description = "Fairly compliant SIIT and Stateful NAT64 for Linux - kernel modules";
39 platforms = lib.platforms.linux;
40 license = lib.licenses.gpl2Only;
41 maintainers = with lib.maintainers; [ fpletz ];