nixpkgs/pkgs/applications/networking/cluster/kubecfg/default.nix

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

34 lines
919 B
Nix
Raw Normal View History

2022-05-02 17:25:17 +00:00
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2017-10-03 01:26:39 +00:00
2022-05-02 17:25:17 +00:00
buildGoModule rec {
2019-08-13 21:52:01 +00:00
pname = "kubecfg";
2022-08-28 19:28:33 +00:00
version = "0.27.0";
2017-10-03 01:26:39 +00:00
src = fetchFromGitHub {
2022-05-02 17:25:17 +00:00
owner = "kubecfg";
2017-10-03 01:26:39 +00:00
repo = "kubecfg";
rev = "v${version}";
2022-08-28 19:28:33 +00:00
sha256 = "sha256-IJ/QKqGhhJfqRBVKfmV4jTC2C53DmzmK5AECJg2xdmw=";
2017-10-03 01:26:39 +00:00
};
2022-08-28 19:28:33 +00:00
vendorSha256 = "sha256-kmUhcHZ6LcxtuuucOwcO6TNk2TsWL6lcppD6M6unY2M=";
2017-10-03 01:26:39 +00:00
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)
'';
2017-10-03 01:26:39 +00:00
meta = {
description = "A tool for managing Kubernetes resources as code";
2022-05-02 17:25:17 +00:00
homepage = "https://github.com/kubecfg/kubecfg";
2017-10-03 01:26:39 +00:00
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ benley ];
platforms = lib.platforms.unix;
};
}