git.iko.soy/typeable/nixpkgs
on master help sign in
jool: init at 3.3.2

Jool is a SIIT and a NAT64 implementation for Linux.

commita21ead3d62069ddaa5b4f7f6c618a39a412967e5 authorFranz Pletz <fpletz@fnordicwalking.de> dateMon 29 Jun 2015, 12:58 (11 years ago) parentb59685d
4 files changed+64
pkgs/os-specific/linux/jool/cli.nix+22 pkgs/os-specific/linux/jool/default.nix+30 pkgs/os-specific/linux/jool/source.nix+9 pkgs/top-level/all-packages.nix+3
pkgs/os-specific/linux/jool/cli.nixnew file+22
@@ -0,0 +1,22 @@
1+{ stdenv, fetchzip, autoreconfHook, pkgconfig, libnl }:
2+
3+let
4+ sourceAttrs = (import ./source.nix) { inherit fetchzip; };
5+in
6+
7+stdenv.mkDerivation {
8+ name = "jool-cli-${sourceAttrs.version}";
9+
10+ src = sourceAttrs.src;
11+
12+ sourceRoot = "Jool-${sourceAttrs.version}.zip/usr";
13+
14+ buildInputs = [ autoreconfHook pkgconfig libnl ];
15+
16+ meta = with stdenv.lib; {
17+ homepage = https://www.jool.mx/;
18+ description = "Fairly compliant SIIT and Stateful NAT64 for Linux - CLI tools";
19+ platforms = platforms.linux;
20+ maintainers = with maintainers; [ fpletz ];
21+ };
22+}
pkgs/os-specific/linux/jool/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchzip, kernel }:
2+
3+let
4+ sourceAttrs = (import ./source.nix) { inherit fetchzip; };
5+in
6+
7+stdenv.mkDerivation {
8+ name = "jool-${sourceAttrs.version}-${kernel.version}";
9+
10+ src = sourceAttrs.src;
11+
12+ prePatch = ''
13+ sed -e 's@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@' -i mod/*/Makefile
14+ '';
15+
16+ buildPhase = ''
17+ make -C mod
18+ '';
19+
20+ installPhase = ''
21+ make -C mod modules_install INSTALL_MOD_PATH=$out
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ homepage = https://www.jool.mx/;
26+ description = "Fairly compliant SIIT and Stateful NAT64 for Linux - kernel modules";
27+ platforms = platforms.linux;
28+ maintainers = with maintainers; [ fpletz ];
29+ };
30+}
pkgs/os-specific/linux/jool/source.nixnew file+9
@@ -0,0 +1,9 @@
1+{ fetchzip }:
2+
3+rec {
4+ version = "3.3.2";
5+ src = fetchzip {
6+ url = "https://www.jool.mx/download/Jool-${version}.zip";
7+ sha256 = "0hc6vlxzmjrgf7vjcwprdqcbx3biq8kphks5k725mrd9rb84drgw";
8+ };
9+}
pkgs/top-level/all-packages.nix+3
@@ -9550,6 +9550,8 @@ let
95509550
95519551 jfbview = callPackage ../os-specific/linux/jfbview { };
95529552
9553+ jool-cli = callPackage ../os-specific/linux/jool/cli.nix { };
9554+
95539555 jujuutils = callPackage ../os-specific/linux/jujuutils { };
95549556
95559557 kbd = callPackage ../os-specific/linux/kbd { };
@@ -9792,6 +9794,7 @@ let
97929794
97939795 klibcShrunk = lowPrio (callPackage ../os-specific/linux/klibc/shrunk.nix { });
97949796
9797+ jool = callPackage ../os-specific/linux/jool { };
97959798
97969799 /* compiles but has to be integrated into the kernel somehow
97979800 Let's have it uncommented and finish it..