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

48 lines
1.3 KiB
Nix
Raw Normal View History

2020-10-07 22:39:43 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
2019-07-01 02:19:38 +01:00
# SHA of ${version} for the tool's help output
2020-10-07 22:39:43 +01:00
let rev = "e03f9ee353717ccc5f58c902633553e34b2fe46a";
2019-07-01 02:19:38 +01:00
in
2020-10-07 22:39:43 +01:00
buildGoModule rec {
2019-07-01 02:19:38 +01:00
pname = "sonobuoy";
2020-10-07 22:39:43 +01:00
version = "0.19.0";
2019-07-01 02:19:38 +01:00
2020-10-07 22:39:43 +01:00
goPackagePath = "github.com/vmware-tanzu/sonobuoy";
2019-07-01 02:19:38 +01:00
buildFlagsArray =
2019-09-09 00:38:31 +01:00
let t = goPackagePath;
2019-07-01 02:19:38 +01:00
in ''
-ldflags=
-s -X ${t}/pkg/buildinfo.Version=v${version}
2019-07-01 02:19:38 +01:00
-X ${t}/pkg/buildinfo.GitSHA=${rev}
-X ${t}/pkg/buildDate=unknown
'';
src = fetchFromGitHub {
2020-10-07 22:39:43 +01:00
sha256 = "1gw58a30akidk15wk8kk7f8lsyqr1q180j6fzr4462ahwxdbjgkr";
2019-07-01 02:19:38 +01:00
rev = "v${version}";
repo = "sonobuoy";
owner = "vmware-tanzu";
2019-07-01 02:19:38 +01:00
};
2020-10-07 22:39:43 +01:00
vendorSha256 = "1kxzd4czv8992y7y47la5jjrbhk76sxcj3v5sx0k4xplgki7np6i";
subPackages = [ "." ];
2019-07-01 02:19:38 +01: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 02:19:38 +01:00
license = licenses.asl20;
2020-10-07 22:39:43 +01:00
maintainers = with maintainers; [ carlosdagos saschagrunert wilsonehusin ];
2019-07-01 02:19:38 +01:00
};
}