Merge pull request #8555 from fpletz/pkg/jool

jool: init at 3.3.2
This commit is contained in:
Arseniy Seroka 2015-07-12 22:20:18 +03:00
commit c01539790b
4 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{ stdenv, fetchzip, autoreconfHook, pkgconfig, libnl }:
let
sourceAttrs = (import ./source.nix) { inherit fetchzip; };
in
stdenv.mkDerivation {
name = "jool-cli-${sourceAttrs.version}";
src = sourceAttrs.src;
sourceRoot = "Jool-${sourceAttrs.version}.zip/usr";
buildInputs = [ autoreconfHook pkgconfig libnl ];
meta = with stdenv.lib; {
homepage = https://www.jool.mx/;
description = "Fairly compliant SIIT and Stateful NAT64 for Linux - CLI tools";
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];
};
}

View File

@ -0,0 +1,30 @@
{ stdenv, fetchzip, kernel }:
let
sourceAttrs = (import ./source.nix) { inherit fetchzip; };
in
stdenv.mkDerivation {
name = "jool-${sourceAttrs.version}-${kernel.version}";
src = sourceAttrs.src;
prePatch = ''
sed -e 's@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@' -i mod/*/Makefile
'';
buildPhase = ''
make -C mod
'';
installPhase = ''
make -C mod modules_install INSTALL_MOD_PATH=$out
'';
meta = with stdenv.lib; {
homepage = https://www.jool.mx/;
description = "Fairly compliant SIIT and Stateful NAT64 for Linux - kernel modules";
platforms = platforms.linux;
maintainers = with maintainers; [ fpletz ];
};
}

View File

@ -0,0 +1,9 @@
{ fetchzip }:
rec {
version = "3.3.2";
src = fetchzip {
url = "https://www.jool.mx/download/Jool-${version}.zip";
sha256 = "0hc6vlxzmjrgf7vjcwprdqcbx3biq8kphks5k725mrd9rb84drgw";
};
}

View File

@ -9549,6 +9549,8 @@ let
jfbview = callPackage ../os-specific/linux/jfbview { };
jool-cli = callPackage ../os-specific/linux/jool/cli.nix { };
jujuutils = callPackage ../os-specific/linux/jujuutils { };
kbd = callPackage ../os-specific/linux/kbd { };
@ -9791,6 +9793,7 @@ let
klibcShrunk = lowPrio (callPackage ../os-specific/linux/klibc/shrunk.nix { });
jool = callPackage ../os-specific/linux/jool { };
/* compiles but has to be integrated into the kernel somehow
Let's have it uncommented and finish it..