2022-09-22 12:36:57 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, kapp }:
|
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kapp";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "0.63.3";
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-10-09 19:29:22 +00:00
|
|
|
owner = "carvel-dev";
|
|
|
|
repo = "kapp";
|
2020-12-29 15:07:52 +00:00
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-mOXjPdeDJKBEW7Jr0yMFpZ4WBciJBh0s2AEMtog6CIw=";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
vendorHash = null;
|
2020-12-29 15:07:52 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/kapp" ];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
CGO_ENABLED = 0;
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
ldflags = [
|
2024-05-15 15:35:15 +00:00
|
|
|
"-X carvel.dev/kapp/pkg/kapp/version.Version=${version}"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for shell in bash fish zsh; do
|
|
|
|
$out/bin/kapp completion $shell > kapp.$shell
|
|
|
|
installShellCompletion kapp.$shell
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = kapp;
|
|
|
|
};
|
|
|
|
|
2020-12-29 15:07:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "CLI tool that encourages Kubernetes users to manage bulk resources with an application abstraction for grouping";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://carvel.dev/kapp/";
|
2020-12-29 15:07:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ brodes ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "kapp";
|
2020-12-29 15:07:52 +00:00
|
|
|
};
|
|
|
|
}
|