go-ios: fix build on darwin (#444589)

This commit is contained in:
Weijia Wang
2025-09-20 15:51:10 +00:00
committed by GitHub
+2 -1
View File
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
nix-update-script,
@@ -27,7 +28,7 @@ buildGoModule rec {
"restapi"
];
postPatch = ''
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace ncm/linux_commands.go \
--replace-fail "ip " "${lib.getExe' iproute2 "ip"} "