Philip Taron 22b88ba79d
treewide: adjust meta descriptions to avoid definite or indefinite articles
This patch was produced in Vim by me, a human being. All errors are the fault of the operator. I did try to be careful.

Co-authored-by: Peder Bergebakken Sundt <pbsds@hotmail.com>
Co-authored-by: dotlambda <nix@dotlambda.de>
2025-06-05 11:04:25 -07:00

89 lines
1.9 KiB
Nix

{
lib,
buildGo123Module,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
installShellFiles,
versionCheckHook,
}:
let
version = "0.25.0";
gitSrc = fetchFromGitHub {
owner = "glasskube";
repo = "glasskube";
tag = "v${version}";
hash = "sha256-456kMO7KappYI2FuHA8g+uhkJNCGCxb/9zmleZqu6SQ=";
};
web-bundle = buildNpmPackage {
inherit version;
pname = "glasskube-web-bundle";
src = gitSrc;
npmDepsHash = "sha256-XKPFT8eyZmDhNbuCpTzGYeg5QdhgpVhHkj8AGSlh6WU=";
dontNpmInstall = true;
installPhase = ''
runHook preInstall
mkdir $out
mv internal/web/root/static/bundle $out
runHook postInstall
'';
};
in
buildGo123Module rec {
inherit version;
pname = "glasskube";
src = gitSrc;
vendorHash = "sha256-oly6SLgXVyvKQQuPrb76LYngoDPNLjTAs4gWCT3/kew=";
env.CGO_ENABLED = 0;
ldflags = [
"-s"
"-w"
"-X github.com/glasskube/glasskube/internal/config.Version=${version}"
"-X github.com/glasskube/glasskube/internal/config.Commit=${src.rev}"
];
subPackages = [
"cmd/glasskube"
"cmd/package-operator"
];
nativeBuildInputs = [ installShellFiles ];
nativeCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
preBuild = ''
cp -r ${web-bundle}/bundle internal/web/root/static/bundle
'';
postInstall = ''
# Completions
installShellCompletion --cmd glasskube \
--bash <($out/bin/glasskube completion bash) \
--fish <($out/bin/glasskube completion fish) \
--zsh <($out/bin/glasskube completion zsh)
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Missing Package Manager for Kubernetes featuring a GUI and a CLI";
homepage = "https://github.com/glasskube/glasskube";
changelog = "https://github.com/glasskube/glasskube/releases/tag/v${version}";
maintainers = with lib.maintainers; [ jakuzure ];
license = lib.licenses.asl20;
mainProgram = "glasskube";
};
}