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

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

33 lines
806 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "k8sgpt";
2023-09-04 05:08:31 +00:00
version = "0.3.14";
src = fetchFromGitHub {
owner = "k8sgpt-ai";
repo = "k8sgpt";
rev = "v${version}";
2023-09-04 05:08:31 +00:00
hash = "sha256-n1bWAx3BQxgiuhDdTb2HU1DSEBQqOP/ek9bJBZlbWEM=";
};
2023-09-04 05:08:31 +00:00
vendorHash = "sha256-FUgIziVI99kL3dLJLqVFPEmQqLKXxAMie2q46sp0PeU=";
CGO_ENABLED = 0;
ldflags = [
"-s" "-w"
"-X main.version=v${version}"
"-X main.commit=${src.rev}"
"-X main.date=1970-01-01-00:00:01"
];
meta = with lib; {
description = "Giving Kubernetes Superpowers to everyone";
homepage = "https://k8sgpt.ai";
changelog = "https://github.com/k8sgpt-ai/k8sgpt/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ developer-guy kranurag7 ];
};
}