go-ios: patch paths (#429776)
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
nix-update-script,
|
||||
pkg-config,
|
||||
libusb1,
|
||||
iproute2,
|
||||
net-tools,
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
@@ -25,6 +27,14 @@ buildGoModule rec {
|
||||
"restapi"
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace ncm/linux_commands.go \
|
||||
--replace-fail "ip " "${lib.getExe' iproute2 "ip"} "
|
||||
|
||||
substituteInPlace ios/tunnel/tunnel.go \
|
||||
--replace-fail "ifconfig" "${lib.getExe' net-tools "ifconfig"}"
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user