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

30 lines
789 B
Nix
Raw Normal View History

2020-07-17 07:00:49 +01:00
{ buildGoModule, fetchFromGitHub, lib }:
buildGoModule rec {
pname = "kpt";
2020-08-02 05:33:20 +01:00
version = "0.32.0";
2020-07-17 07:00:49 +01:00
src = fetchFromGitHub {
owner = "GoogleContainerTools";
repo = pname;
rev = "v${version}";
2020-08-02 05:33:20 +01:00
sha256 = "1pgv15zgv30dpv148bn6x0anv9q6x78y6ldmzarb9fbjpk6j0wxl";
2020-07-17 07:00:49 +01:00
};
2020-08-02 05:33:20 +01:00
vendorSha256 = "0l8xdnv2m6byd5dwvs3zgcj1lsci7ax4xvx178a8a78sgkqalvmq";
2020-07-17 07:00:49 +01:00
doCheck = false;
2020-07-17 07:00:49 +01:00
postInstall = ''
rm $out/bin/{mdtogo,formula}
'';
meta = with lib; {
description = "A toolkit to help you manage, manipulate, customize, and apply Kubernetes Resource configuration data files";
homepage = "https://googlecontainertools.github.io/kpt/";
license = licenses.asl20;
maintainers = with maintainers; [ mikefaille ];
platforms = platforms.linux ++ platforms.darwin;
};
}