go-ios: 1.0.121 -> 1.0.143 (#341383)

This commit is contained in:
Artturin 2024-09-13 22:56:31 +03:00 committed by GitHub
commit 04f6da1334
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,27 +2,34 @@
, buildGoModule , buildGoModule
, fetchFromGitHub , fetchFromGitHub
, nix-update-script , nix-update-script
, pkg-config
, libusb1
}: }:
buildGoModule rec { buildGoModule rec {
pname = "go-ios"; pname = "go-ios";
version = "1.0.121"; version = "1.0.143";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "danielpaulus"; owner = "danielpaulus";
repo = "go-ios"; repo = "go-ios";
rev = "v${version}"; 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 = [ excludedPackages = [
"restapi" "restapi"
]; ];
checkFlags = [ nativeBuildInputs = [
"-tags=fast" pkg-config
];
buildInputs = [
libusb1
]; ];
postInstall = '' postInstall = ''
@ -30,6 +37,16 @@ buildGoModule rec {
mv $out/bin/go-ios $out/bin/ios 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 { }; passthru.updateScript = nix-update-script { };
meta = with lib; { meta = with lib; {