Unverified Commit 08304afd authored by Weijia Wang's avatar Weijia Wang Committed by GitHub
Browse files

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

parents d6ade56e 23cea282
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
{
  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"} "