0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

Revert "wireguard-tools: allow system resolvconf implementation if available"

(cherry picked from commit 7727ce7c3b)
This commit is contained in:
Jason A. Donenfeld 2021-11-23 00:24:48 +01:00 committed by Bobby Rong
parent e3e553c5f5
commit a80357ba7d

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