Merge pull request #59920 from liclac/update/jool-v4.0.0
jool: unstable-20180706 -> 4.0.0
This commit is contained in:
commit
afe0d73e09
3 changed files with 12 additions and 16 deletions
|
@ -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; {
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
{ stdenv, fetchFromGitHub, kernel }:
|
||||
|
||||
assert stdenv.lib.versionOlder kernel.version "4.18";
|
||||
|
||||
let
|
||||
sourceAttrs = (import ./source.nix) { inherit fetchFromGitHub; };
|
||||
in
|
||||
|
@ -15,15 +13,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; {
|
||||
|
|
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue