summary refs log tree commit diff
path: root/pkgs/tools/networking/wireguard-tools/default.nix
diff options
context:
space:
mode:
authorNaïm Favier <n@monade.li>2022-12-26 13:00:47 +0100
committerNaïm Favier <n@monade.li>2022-12-26 13:00:47 +0100
commit138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7 (patch)
treeda34d45b1b05779914c3ceb1f62fcfc014908aed /pkgs/tools/networking/wireguard-tools/default.nix
parentc4bd20a68602c22ef8a872c7c14ad69c13d4f503 (diff)
downloadnixpkgs-138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7.tar
nixpkgs-138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7.tar.gz
nixpkgs-138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7.tar.bz2
nixpkgs-138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7.tar.lz
nixpkgs-138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7.tar.xz
nixpkgs-138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7.tar.zst
nixpkgs-138d4389cc1e2e22637ced70cf3a45c3eaa4f8f7.zip
wireguard-tools: move `iptables` to PATH suffix
The firewall package in the environment should take precedence.
Diffstat (limited to 'pkgs/tools/networking/wireguard-tools/default.nix')
-rw-r--r--pkgs/tools/networking/wireguard-tools/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/networking/wireguard-tools/default.nix b/pkgs/tools/networking/wireguard-tools/default.nix
index 6430eeeb0b7..b0bc3346526 100644
--- a/pkgs/tools/networking/wireguard-tools/default.nix
+++ b/pkgs/tools/networking/wireguard-tools/default.nix
@@ -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
   '';