zerotierone: fix route handling on Linux (#45391)

Add some substitutions for the ip calls in ManagedRoutes. Fixes #45022
wip/yesman
Ben Ford 6 years ago committed by zimbatm
parent f0957b9477
commit c28898dc70
  1. 6
      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",'

Loading…
Cancel
Save