nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 stdenv,
6 nix-update-script,
7}:
8
9buildGoModule rec {
10 pname = "abctl";
11 version = "0.30.3";
12
13 src = fetchFromGitHub {
14 owner = "airbytehq";
15 repo = "abctl";
16 tag = "v${version}";
17 hash = "sha256-pQvLFfj7/uZQUqtWAsTcw2RQ3KHFuoQCBP3lBvb2LTs=";
18 };
19
20 checkFlags =
21 let
22 skippedTests = [
23 # network access
24 "TestResolveChartReference"
25 # docker
26 "TestValues_BadYaml"
27 "TestInvalidHostFlag_IpAddr"
28 "TestInvalidHostFlag_IpAddrWithPort"
29 "TestNewWithOptions_InitErr"
30 ];
31 in
32 [ "-skip=^${lib.concatStringsSep "$|^" skippedTests}$" ];
33
34 vendorHash = "sha256-ZJbZDfVB6gxToinuUNLsjBEB+7+OgC19Cc2Q8Ej7kfo=";
35
36 passthru.updateScript = nix-update-script { };
37
38 meta = {
39 description = "Airbyte's CLI for managing local Airbyte installations";
40 homepage = "https://airbyte.com/";
41 changelog = "https://github.com/airbytehq/abctl/releases/tag/v${version}";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ xelden ];
44 mainProgram = "abctl";
45 broken = stdenv.hostPlatform.isDarwin;
46 };
47}