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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
1.3 KiB
Nix
Raw Normal View History

2020-10-07 21:39:43 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
2019-07-01 01:19:38 +00:00
# SHA of ${version} for the tool's help output. Unfortunately this is needed in build flags.
let rev = "551bf68c694927839c3add25a2512f880902ee9b";
2019-07-01 01:19:38 +00:00
in
2020-10-07 21:39:43 +00:00
buildGoModule rec {
2019-07-01 01:19:38 +00:00
pname = "sonobuoy";
2022-08-19 17:57:52 +00:00
version = "0.56.10"; # Do not forget to update `rev` above
2019-07-01 01:19:38 +00:00
2021-08-26 06:45:51 +00:00
ldflags =
2020-12-16 19:43:47 +00:00
let t = "github.com/vmware-tanzu/sonobuoy";
2021-08-26 06:45:51 +00:00
in [
"-s"
"-X ${t}/pkg/buildinfo.Version=v${version}"
"-X ${t}/pkg/buildinfo.GitSHA=${rev}"
"-X ${t}/pkg/buildDate=unknown"
];
2019-07-01 01:19:38 +00:00
src = fetchFromGitHub {
owner = "vmware-tanzu";
2021-10-28 16:24:01 +00:00
repo = "sonobuoy";
rev = "v${version}";
2022-08-19 17:57:52 +00:00
sha256 = "sha256-Hykm8h0kJzTL6XbaBe3vtoghmP4LmvPfBhrTgCmNyRE=";
2019-07-01 01:19:38 +00:00
};
2022-08-19 17:57:52 +00:00
vendorSha256 = "sha256-jBm3t/kvijAv5KOLhDJ1kGLdzpFJiBs/Vtu2mO2lnPM=";
2020-10-07 21:39:43 +00:00
subPackages = [ "." ];
2019-07-01 01:19:38 +00: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 01:19:38 +00:00
license = licenses.asl20;
2020-10-07 21:39:43 +00:00
maintainers = with maintainers; [ carlosdagos saschagrunert wilsonehusin ];
2019-07-01 01:19:38 +00:00
};
}