nixpkgs-suyu/pkgs/applications/networking/cluster/sonobuoy/default.nix

48 lines
1.3 KiB
Nix
Raw Normal View History

2020-10-07 23:39:43 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
2019-07-01 03:19:38 +02:00
# SHA of ${version} for the tool's help output
2020-10-07 23:39:43 +02:00
let rev = "e03f9ee353717ccc5f58c902633553e34b2fe46a";
2019-07-01 03:19:38 +02:00
in
2020-10-07 23:39:43 +02:00
buildGoModule rec {
2019-07-01 03:19:38 +02:00
pname = "sonobuoy";
2020-10-07 23:39:43 +02:00
version = "0.19.0";
2019-07-01 03:19:38 +02:00
2020-10-07 23:39:43 +02:00
goPackagePath = "github.com/vmware-tanzu/sonobuoy";
2019-07-01 03:19:38 +02:00
buildFlagsArray =
2019-09-09 01:38:31 +02:00
let t = goPackagePath;
2019-07-01 03:19:38 +02:00
in ''
-ldflags=
-s -X ${t}/pkg/buildinfo.Version=v${version}
2019-07-01 03:19:38 +02:00
-X ${t}/pkg/buildinfo.GitSHA=${rev}
-X ${t}/pkg/buildDate=unknown
'';
src = fetchFromGitHub {
2020-10-07 23:39:43 +02:00
sha256 = "1gw58a30akidk15wk8kk7f8lsyqr1q180j6fzr4462ahwxdbjgkr";
2019-07-01 03:19:38 +02:00
rev = "v${version}";
repo = "sonobuoy";
owner = "vmware-tanzu";
2019-07-01 03:19:38 +02:00
};
2020-10-07 23:39:43 +02:00
vendorSha256 = "1kxzd4czv8992y7y47la5jjrbhk76sxcj3v5sx0k4xplgki7np6i";
subPackages = [ "." ];
2019-07-01 03:19:38 +02:00
meta = with lib; {
description = ''
Diagnostic tool that makes it easier to understand the
state of a Kubernetes cluster.
'';
longDescription = ''
Sonobuoy is a diagnostic tool that makes it easier to understand the state of
a Kubernetes cluster by running a set of Kubernetes conformance tests in an
accessible and non-destructive manner.
'';
homepage = "https://sonobuoy.io";
2019-07-01 03:19:38 +02:00
license = licenses.asl20;
2020-10-07 23:39:43 +02:00
maintainers = with maintainers; [ carlosdagos saschagrunert wilsonehusin ];
2019-07-01 03:19:38 +02:00
};
}