From 23cea282babbe60caf9bfd08464932b5e8b2207d Mon Sep 17 00:00:00 2001 From: Pascal Jungblut Date: Sat, 20 Sep 2025 12:09:26 +0200 Subject: [PATCH] go-ios: fix build on darwin Since e03feee6e00e6867b243a1138565a4d841e1c2cf, the package applies patches to replace paths for Linux utilities. However, these are not available for Darwin. --- pkgs/by-name/go/go-ios/package.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/go/go-ios/package.nix b/pkgs/by-name/go/go-ios/package.nix index 7c23051c394a..65e818f74680 100644 --- a/pkgs/by-name/go/go-ios/package.nix +++ b/pkgs/by-name/go/go-ios/package.nix @@ -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"} "