git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #8555 from fpletz/pkg/jool

jool: init at 3.3.2

commitc01539790b3782372a67f0ff31e4de3d31ff218c authorArseniy Seroka <jagajaga@users.noreply.github.com> dateSun 12 Jul 2015, 22:20 (11 years ago) parent5d9f0e6a21ead3
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
@@ -9549,6 +9549,8 @@ let
95499549
95509550 jfbview = callPackage ../os-specific/linux/jfbview { };
95519551
9552+ jool-cli = callPackage ../os-specific/linux/jool/cli.nix { };
9553+
95529554 jujuutils = callPackage ../os-specific/linux/jujuutils { };
95539555
95549556 kbd = callPackage ../os-specific/linux/kbd { };
@@ -9791,6 +9793,7 @@ let
97919793
97929794 klibcShrunk = lowPrio (callPackage ../os-specific/linux/klibc/shrunk.nix { });
97939795
9796+ jool = callPackage ../os-specific/linux/jool { };
97949797
97959798 /* compiles but has to be integrated into the kernel somehow
97969799 Let's have it uncommented and finish it..