jool: unstable-20180706 -> 4.0.0

This commit is contained in:
embr 2019-04-20 09:42:48 +01:00
parent d956f2279b
commit 68b4cf39a9
3 changed files with 13 additions and 15 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libnl }:
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libnl, iptables }:
let
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
@ -9,15 +9,13 @@ stdenv.mkDerivation {
src = sourceAttrs.src;
setSourceRoot = ''
sourceRoot=$(echo */usr)
'';
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [ libnl ];
buildInputs = [ libnl iptables ];
postPatch = ''
chmod u+w -R ../common
makeFlags = "-C src/usr";
prePatch = ''
sed -e 's%^XTABLES_SO_DIR = .*%XTABLES_SO_DIR = '"$out"'/lib/xtables%g' -i src/usr/iptables/Makefile
'';
meta = with stdenv.lib; {

View File

@ -1,6 +1,6 @@
{ stdenv, fetchFromGitHub, kernel }:
assert stdenv.lib.versionOlder kernel.version "4.18";
assert stdenv.lib.versionOlder kernel.version "4.20";
let
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
@ -15,15 +15,15 @@ stdenv.mkDerivation {
hardeningDisable = [ "pic" ];
prePatch = ''
sed -e 's@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@' -i mod/*/Makefile
sed -e 's@/lib/modules/\$(.*)@${kernel.dev}/lib/modules/${kernel.modDirVersion}@' -i src/mod/*/Makefile
'';
buildPhase = ''
make -C mod
make -C src/mod
'';
installPhase = ''
make -C mod modules_install INSTALL_MOD_PATH=$out
make -C src/mod modules_install INSTALL_MOD_PATH=$out
'';
meta = with stdenv.lib; {

View File

@ -1,11 +1,11 @@
{ fetchFromGitHub }:
rec {
version = "unstable-20180706";
version = "4.0.0";
src = fetchFromGitHub {
owner = "NICMx";
repo = "Jool";
rev = "de791931d94e972c36bb3c102a9cadab5230c285";
sha256 = "09mr7lc9k17znpslsfmndx4vgl240llcgblxm92fizmwz23y1d6c";
rev = "v${version}";
sha256 = "1ivnx7ijqf41kxmi2bmsf9qfcv6b1rvag35754ddlndry3sgvimr";
};
}