mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 06:01:15 +00:00
zerotierone: fix route handling on Linux (#45391)
Add some substitutions for the ip calls in ManagedRoutes. Fixes #45022
This commit is contained in:
parent
f0957b9477
commit
c28898dc70
|
@ -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…
Reference in a new issue