Merge pull request #147062 from zx2c4-forks/revert-139530-wireguard-tools

This commit is contained in:
Sandro 2021-11-23 01:31:48 +01:00 committed by GitHub
commit 2b7d568a8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,11 +37,8 @@ stdenv.mkDerivation rec {
substituteInPlace $out/lib/systemd/system/wg-quick@.service \
--replace /usr/bin $out/bin
'' + lib.optionalString stdenv.isLinux ''
# we want to allow users to provide their own resolvconf implementation, i.e. the one provided by systemd-resolved
for f in $out/bin/*; do
wrapProgram $f \
--prefix PATH : ${lib.makeBinPath [ procps iproute2 iptables ]} \
--suffix PATH : ${lib.makeBinPath [ openresolv ]}
wrapProgram $f --prefix PATH : ${lib.makeBinPath [ procps iproute2 iptables openresolv ]}
done
'' + lib.optionalString stdenv.isDarwin ''
for f in $out/bin/*; do