mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
go-ios: 1.0.121 -> 1.0.143
This commit is contained in:
parent
04845b540e
commit
bd384e382f
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user