2020-08-20 17:08:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kustomize";
|
2021-03-12 07:09:13 +00:00
|
|
|
version = "4.0.5";
|
|
|
|
# rev is the commit of the tag, mainly for kustomize version command output
|
|
|
|
rev = "9e8e7a7fe99ec9fbf801463e8607928322fc5245";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
buildFlagsArray = let t = "sigs.k8s.io/kustomize/api/provenance"; in
|
|
|
|
''
|
|
|
|
-ldflags=
|
|
|
|
-s -X ${t}.version=${version}
|
|
|
|
-X ${t}.gitCommit=${rev}
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
repo = pname;
|
2020-08-20 17:08:02 +00:00
|
|
|
rev = "kustomize/v${version}";
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "sha256-rv65sDr6V6hEYgIRxS1OSu9txmW75F7/YGAy/zRXGyY=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
# TODO: Remove once https://github.com/kubernetes-sigs/kustomize/pull/3708 got merged.
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# avoid finding test and development commands
|
|
|
|
sourceRoot = "source/kustomize";
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
vendorSha256 = "sha256-lLUi0vD7uyfDR4HjDiosoTU0NbfQTY7ewZGm38ZT9nU=";
|
2020-04-24 23:36:52 +00: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;
|
2021-02-13 14:23:35 +00:00
|
|
|
maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime Chili-Man saschagrunert ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
}
|