Files
nixpkgs/pkgs/by-name/k8/k8sgpt/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

45 lines
1004 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "k8sgpt";
version = "0.4.8";
src = fetchFromGitHub {
owner = "k8sgpt-ai";
repo = "k8sgpt";
rev = "v${version}";
hash = "sha256-TaJBGU+nLMVOL1uiHPan8p2DfuAWTr57Lt2BtfNq6dA=";
};
vendorHash = "sha256-960gfOCpqY2gCbHR+fYFeV9UjztWMRVQKHIg/n3ELxk=";
# https://nixos.org/manual/nixpkgs/stable/#var-go-CGO_ENABLED
env.CGO_ENABLED = 0;
# https://nixos.org/manual/nixpkgs/stable/#ssec-skip-go-tests
ldflags = [
"-s"
"-w"
"-X main.version=v${version}"
"-X main.commit=${src.rev}"
"-X main.date=1970-01-01-00:00:01"
];
meta = {
description = "Giving Kubernetes Superpowers to everyone";
mainProgram = "k8sgpt";
homepage = "https://k8sgpt.ai";
changelog = "https://github.com/k8sgpt-ai/k8sgpt/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [
developer-guy
kranurag7
mrgiles
];
};
}