go-ios: 1.0.121 -> 1.0.143

This commit is contained in:
eyjhb 2024-09-12 15:21:02 +02:00
parent 04845b540e
commit bd384e382f
No known key found for this signature in database
GPG Key ID: 609F508E3239F920

View File

@ -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; {