Unverified Commit a0aa3f24 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

go-ios: patch paths (#429776)

parents cedae5a2 e03feee6
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -5,6 +5,8 @@
  nix-update-script,
  pkg-config,
  libusb1,
  iproute2,
  net-tools,
}:

buildGoModule rec {
@@ -25,6 +27,14 @@ buildGoModule rec {
    "restapi"
  ];

  postPatch = ''
    substituteInPlace ncm/linux_commands.go \
      --replace-fail "ip " "${lib.getExe' iproute2 "ip"} "

    substituteInPlace ios/tunnel/tunnel.go \
      --replace-fail "ifconfig" "${lib.getExe' net-tools "ifconfig"}"
  '';

  nativeBuildInputs = [
    pkg-config
  ];