From c28898dc70593ffc1057450790be1edb97311a64 Mon Sep 17 00:00:00 2001 From: Ben Ford Date: Tue, 21 Aug 2018 13:25:32 +0100 Subject: [PATCH] zerotierone: fix route handling on Linux (#45391) Add some substitutions for the ip calls in ManagedRoutes. Fixes #45022 --- pkgs/tools/networking/zerotierone/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/networking/zerotierone/default.nix b/pkgs/tools/networking/zerotierone/default.nix index ac7e01482283..2853c595e431 100644 --- a/pkgs/tools/networking/zerotierone/default.nix +++ b/pkgs/tools/networking/zerotierone/default.nix @@ -10,6 +10,12 @@ stdenv.mkDerivation rec { }; preConfigure = '' + substituteInPlace ./osdep/ManagedRoute.cpp \ + --replace '/usr/sbin/ip' '${iproute}/bin/ip' + + substituteInPlace ./osdep/ManagedRoute.cpp \ + --replace '/sbin/ip' '${iproute}/bin/ip' + substituteInPlace ./osdep/LinuxEthernetTap.cpp \ --replace 'execlp("ip",' 'execlp("${iproute}/bin/ip",'