kubectl-ai: init at v0.0.9

This commit is contained in:
pilz0
2025-06-04 18:37:23 +05:30
committed by Masum Reza
parent ce64a90468
commit c12759a884
+43
View File
@@ -0,0 +1,43 @@
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "kubectl-ai";
version = "0.0.9";
src = fetchFromGitHub {
owner = "GoogleCloudPlatform";
repo = "kubectl-ai";
rev = "v${finalAttrs.version}";
hash = "sha256-zsqHRXUyRguDbY3yPCWJ9KLzF6VR/y7juzI9uaVPSAE=";
};
vendorHash = "sha256-VpTAq9rXDPBOdaZIXm7h4AP1YFOk7HzLiUxYaCOP/w8=";
# Build the main command
subPackages = [ "cmd" ];
postInstall = ''
mv $out/bin/{cmd,kubectl-ai}
'';
ldflags = [
"-s"
"-w"
"-X main.version=${finalAttrs.version}"
];
# Disable the automatic subpackage detection
doCheck = false;
meta = {
description = "AI powered Kubernetes Assistant";
homepage = "https://github.com/GoogleCloudPlatform/kubectl-ai";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ pilz ];
mainProgram = "kubectl-ai";
};
})