33 lines
806 B
Nix
33 lines
806 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "k8sgpt";
|
|
version = "0.3.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "k8sgpt-ai";
|
|
repo = "k8sgpt";
|
|
rev = "v${version}";
|
|
hash = "sha256-mWdSyP1Gcs1FC0HUX2p84PK0n1Xnd2LrD48luN4+OVs=";
|
|
};
|
|
|
|
vendorHash = "sha256-y+oF9sqYVEQSukLkfz0JXFpKtUKP/1DzHIivkL2wBwk=";
|
|
|
|
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 ];
|
|
};
|
|
}
|