diff options
author | Ben Ford <ben@perurbis.com> | 2018-08-21 13:25:32 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2018-08-21 13:25:32 +0100 |
commit | c28898dc70593ffc1057450790be1edb97311a64 (patch) | |
tree | 36010bc003b39d2b17b2613012154721b01f08c9 /pkgs | |
parent | f0957b9477822fde2403324ffb4b4780d7b353ae (diff) | |
download | nixlib-c28898dc70593ffc1057450790be1edb97311a64.tar nixlib-c28898dc70593ffc1057450790be1edb97311a64.tar.gz nixlib-c28898dc70593ffc1057450790be1edb97311a64.tar.bz2 nixlib-c28898dc70593ffc1057450790be1edb97311a64.tar.lz nixlib-c28898dc70593ffc1057450790be1edb97311a64.tar.xz nixlib-c28898dc70593ffc1057450790be1edb97311a64.tar.zst nixlib-c28898dc70593ffc1057450790be1edb97311a64.zip |
zerotierone: fix route handling on Linux (#45391)
Add some substitutions for the ip calls in ManagedRoutes. Fixes #45022
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/networking/zerotierone/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
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",' |