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
+6 -8
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; {