mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-15 17:34:04 +00:00
ff67dad571
* kubecfg: 0.32.0 -> 0.33.0 * kubecfg: add qjoly as maintainer
42 lines
983 B
Nix
42 lines
983 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, installShellFiles
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubecfg";
|
|
version = "0.33.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kubecfg";
|
|
repo = "kubecfg";
|
|
rev = "v${version}";
|
|
hash = "sha256-a/2qKiqn9en67uJD/jzU3G1k6gT73DTzjY32mi51xSQ=";
|
|
};
|
|
|
|
vendorHash = "sha256-mSYc12pjx34PhMx7jbKD/nPhPaK7jINmUSWxomikx7U=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.version=v${version}"
|
|
];
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd kubecfg \
|
|
--bash <($out/bin/kubecfg completion --shell=bash) \
|
|
--zsh <($out/bin/kubecfg completion --shell=zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A tool for managing Kubernetes resources as code";
|
|
homepage = "https://github.com/kubecfg/kubecfg";
|
|
changelog = "https://github.com/kubecfg/kubecfg/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ benley qjoly ];
|
|
};
|
|
}
|