Commit e03feee6 authored by eyjhb's avatar eyjhb
Browse files

go-ios: patch paths

parent 686c4051
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
  ];