go-ios: fix build on darwin

Since e03feee6e0, the package applies
patches to replace paths for Linux utilities. However, these are not
available for Darwin.
This commit is contained in:
Pascal Jungblut
2025-09-20 12:09:26 +02:00
parent a74ebf3f35
commit 23cea282ba
+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"} "