mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
commit
c01539790b
4 changed files with 64 additions and 0 deletions
22
pkgs/os-specific/linux/jool/cli.nix
Normal file
22
pkgs/os-specific/linux/jool/cli.nix
Normal 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 ];
|
||||
};
|
||||
}
|
30
pkgs/os-specific/linux/jool/default.nix
Normal file
30
pkgs/os-specific/linux/jool/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
9
pkgs/os-specific/linux/jool/source.nix
Normal file
9
pkgs/os-specific/linux/jool/source.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ fetchzip }:
|
||||
|
||||
rec {
|
||||
version = "3.3.2";
|
||||
src = fetchzip {
|
||||
url = "https://www.jool.mx/download/Jool-${version}.zip";
|
||||
sha256 = "0hc6vlxzmjrgf7vjcwprdqcbx3biq8kphks5k725mrd9rb84drgw";
|
||||
};
|
||||
}
|
|
@ -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..
|
||||
|
|
Loading…
Reference in a new issue