wireguard-tools: move iptables to PATH suffix

The firewall package in the environment should take precedence.
This commit is contained in:
Naïm Favier 2022-12-26 13:00:47 +01:00
parent c4bd20a686
commit 138d4389cc
No known key found for this signature in database
GPG key ID: 95AFCE8211908325

View file

@ -37,10 +37,11 @@ stdenv.mkDerivation rec {
--replace /usr/bin $out/bin
'' + lib.optionalString stdenv.isLinux ''
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 \
--prefix PATH : ${lib.makeBinPath [ procps iproute2 iptables ]} \
--suffix PATH : ${lib.makeBinPath [ openresolv ]}
--prefix PATH : ${lib.makeBinPath [ procps iproute2 ]} \
--suffix PATH : ${lib.makeBinPath [ iptables openresolv ]}
done
'';