From bd384e382f0b511eab8f5dd166805a771ad85de3 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Thu, 12 Sep 2024 15:21:02 +0200 Subject: [PATCH] go-ios: 1.0.121 -> 1.0.143 --- pkgs/tools/misc/go-ios/default.nix | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/go-ios/default.nix b/pkgs/tools/misc/go-ios/default.nix index 0cf946ae43e5..f26665835bce 100644 --- a/pkgs/tools/misc/go-ios/default.nix +++ b/pkgs/tools/misc/go-ios/default.nix @@ -2,27 +2,34 @@ , buildGoModule , fetchFromGitHub , nix-update-script +, pkg-config +, libusb1 }: buildGoModule rec { pname = "go-ios"; - version = "1.0.121"; + version = "1.0.143"; src = fetchFromGitHub { owner = "danielpaulus"; repo = "go-ios"; rev = "v${version}"; - sha256 = "sha256-zWaEtfxrJYaROQ05nBQvM5fiIRSG+hCecU+BVnpIuck="; + sha256 = "sha256-6RiKyhV5y6lOrhfZezSB2m/l17T3bHYaYRhsMf04wT8="; }; - vendorHash = "sha256-0Wi9FCTaOD+kzO5cRjpqbXHqx5UAKSGu+hc9bpj+PWo="; + proxyVendor = true; + vendorHash = "sha256-GfVHAOlN2tL21ILQYPw/IaYQZccxitjHGQ09unfHcKg="; excludedPackages = [ "restapi" ]; - checkFlags = [ - "-tags=fast" + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + libusb1 ]; postInstall = '' @@ -30,6 +37,16 @@ buildGoModule rec { mv $out/bin/go-ios $out/bin/ios ''; + # skips all the integration tests (requires iOS device) (`-tags=fast`) + # as well as tests that requires networking + checkFlags = let + skippedTests = [ + "TestWorksWithoutProxy" + "TestUsesProxy" + ]; + in [ "-tags=fast" ] + ++ [ "-skip=^${builtins.concatStringsSep "$|^" skippedTests}$" ]; + passthru.updateScript = nix-update-script { }; meta = with lib; {