Commit 23cea282 authored by Pascal Jungblut's avatar Pascal Jungblut
Browse files

go-ios: fix build on darwin

Since e03feee6, the package applies
patches to replace paths for Linux utilities. However, these are not
available for Darwin.
parent a74ebf3f
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"} "