2019-07-06 08:41:41 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-07-26 03:56:44 +01:00
|
|
|
|
2019-07-06 08:41:41 +01:00
|
|
|
buildGoModule rec {
|
2019-08-02 07:24:32 +01:00
|
|
|
pname = "kustomize";
|
2019-08-01 20:31:22 +01:00
|
|
|
version = "3.1.0";
|
|
|
|
# rev is the 3.1.0 commit, mainly for kustomize version command output
|
|
|
|
rev = "95f3303493fdea243ae83b767978092396169baf";
|
2018-07-26 03:56:44 +01:00
|
|
|
|
2018-09-28 18:58:56 +01:00
|
|
|
goPackagePath = "sigs.k8s.io/kustomize";
|
2019-07-06 08:41:41 +01:00
|
|
|
subPackages = [ "cmd/kustomize" ];
|
2018-09-28 18:58:56 +01:00
|
|
|
|
2019-08-02 07:24:32 +01:00
|
|
|
buildFlagsArray = let t = "${goPackagePath}/v3/pkg/commands/misc"; in ''
|
2018-09-28 18:58:56 +01:00
|
|
|
-ldflags=
|
|
|
|
-s -X ${t}.kustomizeVersion=${version}
|
|
|
|
-X ${t}.gitCommit=${rev}
|
2019-02-15 08:51:34 +00:00
|
|
|
-X ${t}.buildDate=unknown
|
2018-09-28 18:58:56 +01:00
|
|
|
'';
|
2018-07-26 03:56:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-08-01 20:31:22 +01:00
|
|
|
sha256 = "0kigcirkjvnj3xi1p28p9yp3s0lff24q5qcvf8ahjwvpbwka14sh";
|
2018-07-26 03:56:44 +01:00
|
|
|
rev = "v${version}";
|
2019-08-02 07:24:32 +01:00
|
|
|
repo = pname;
|
2018-07-26 03:56:44 +01:00
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
};
|
|
|
|
|
2019-07-06 08:41:41 +01:00
|
|
|
modSha256 = "0w8sp73pmj2wqrg7x7z8diglyfq6c6gn9mmck0k1gk90nv7s8rf1";
|
|
|
|
|
2018-07-26 03:56:44 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Customization of kubernetes YAML configurations";
|
|
|
|
longDescription = ''
|
|
|
|
kustomize lets you customize raw, template-free YAML files for
|
|
|
|
multiple purposes, leaving the original YAML untouched and usable
|
|
|
|
as is.
|
|
|
|
'';
|
|
|
|
homepage = https://github.com/kubernetes-sigs/kustomize;
|
|
|
|
license = licenses.asl20;
|
2019-02-15 08:47:35 +00:00
|
|
|
maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime ];
|
2018-07-26 03:56:44 +01:00
|
|
|
};
|
|
|
|
}
|