mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
33 lines
806 B
Nix
33 lines
806 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "k8sgpt";
|
|
version = "0.3.14";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "k8sgpt-ai";
|
|
repo = "k8sgpt";
|
|
rev = "v${version}";
|
|
hash = "sha256-n1bWAx3BQxgiuhDdTb2HU1DSEBQqOP/ek9bJBZlbWEM=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|