wireguard-tools: move iptables
to PATH suffix
The firewall package in the environment should take precedence.
This commit is contained in:
parent
c4bd20a686
commit
138d4389cc
|
@ -37,10 +37,11 @@ stdenv.mkDerivation rec {
|
||||||
--replace /usr/bin $out/bin
|
--replace /usr/bin $out/bin
|
||||||
'' + lib.optionalString stdenv.isLinux ''
|
'' + lib.optionalString stdenv.isLinux ''
|
||||||
for f in $out/bin/*; do
|
for f in $out/bin/*; do
|
||||||
# allow users to provide their own resolvconf implementation, e.g. the one provided by systemd-resolved
|
# Which firewall and resolvconf implementations to use should be determined by the
|
||||||
|
# environment, we provide the "default" ones as fallback.
|
||||||
wrapProgram $f \
|
wrapProgram $f \
|
||||||
--prefix PATH : ${lib.makeBinPath [ procps iproute2 iptables ]} \
|
--prefix PATH : ${lib.makeBinPath [ procps iproute2 ]} \
|
||||||
--suffix PATH : ${lib.makeBinPath [ openresolv ]}
|
--suffix PATH : ${lib.makeBinPath [ iptables openresolv ]}
|
||||||
done
|
done
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue