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

Changed files
+2 -1
pkgs
by-name
go
go-ios
+2 -1
pkgs/by-name/go/go-ios/package.nix
···
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
···
"restapi"
];
-
postPatch = ''
substituteInPlace ncm/linux_commands.go \
--replace-fail "ip " "${lib.getExe' iproute2 "ip"} "
···
{
lib,
+
stdenv,
buildGoModule,
fetchFromGitHub,
nix-update-script,
···
"restapi"
];
+
postPatch = lib.optionalString stdenv.hostPlatform.isLinux ''
substituteInPlace ncm/linux_commands.go \
--replace-fail "ip " "${lib.getExe' iproute2 "ip"} "