1
0
Fork 1
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:
Ben Ford 2018-08-21 13:25:32 +01:00 committed by zimbatm
parent f0957b9477
commit c28898dc70

View file

@ -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",'