nixpkgs/pkgs/tools/networking/kapp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles, testers, kapp }:
buildGoModule rec {
pname = "kapp";
2024-07-27 23:24:02 +01:00
version = "0.63.2";
src = fetchFromGitHub {
2023-09-26 23:42:43 +01:00
owner = "carvel-dev";
repo = "kapp";
rev = "v${version}";
2024-07-27 23:24:02 +01:00
hash = "sha256-YmaIGC/4+yhb9D9QNqT3EW6RHbsbSebbImuJZdRhvJ0=";
};
2023-04-17 20:19:14 +01:00
vendorHash = null;
subPackages = [ "cmd/kapp" ];
2023-09-26 23:42:43 +01:00
CGO_ENABLED = 0;
2021-11-03 06:43:23 +00:00
ldflags = [
2024-04-22 15:09:47 +01:00
"-X carvel.dev/kapp/pkg/kapp/version.Version=${version}"
2021-11-03 06:43:23 +00:00
];
2021-03-18 08:58:03 +00:00
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
for shell in bash fish zsh; do
$out/bin/kapp completion $shell > kapp.$shell
installShellCompletion kapp.$shell
done
'';
passthru.tests.version = testers.testVersion {
package = kapp;
};
meta = with lib; {
description = "CLI tool that encourages Kubernetes users to manage bulk resources with an application abstraction for grouping";
2023-09-26 23:42:43 +01:00
homepage = "https://carvel.dev/kapp/";
license = licenses.asl20;
maintainers = with maintainers; [ brodes ];
2024-02-11 02:19:15 +00:00
mainProgram = "kapp";
};
}