2020-07-17 06:00:49 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kpt";
|
2021-12-10 07:04:01 +00:00
|
|
|
version = "0.39.2";
|
2020-07-17 06:00:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleContainerTools";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-12-10 07:04:01 +00:00
|
|
|
sha256 = "sha256-PG4SzycXRguKyaQ7LDnTtxF3EgqcjfjeEWD5rROXBPI=";
|
2020-07-17 06:00:49 +00:00
|
|
|
};
|
|
|
|
|
2021-12-10 07:04:01 +00:00
|
|
|
vendorSha256 = "sha256-CoXlUX9hkP8gijA/vg19AS9030w95A2oKGD1wjzO8ak=";
|
2020-07-17 06:00:49 +00:00
|
|
|
|
2020-08-22 05:50:07 +00:00
|
|
|
subPackages = [ "." ];
|
2020-07-17 06:00:49 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/GoogleContainerTools/kpt/run.version=${version}" ];
|
2020-10-01 04:20:00 +00:00
|
|
|
|
2020-07-17 06:00:49 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|