2020-07-08 01:56:05 -07:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-07-25 19:56:44 -07:00
|
|
|
|
2019-07-06 00:41:41 -07:00
|
|
|
buildGoModule rec {
|
2019-08-01 23:24:32 -07:00
|
|
|
pname = "kustomize";
|
2021-03-09 00:54:53 -08:00
|
|
|
version = "4.0.5";
|
|
|
|
# rev is the commit of the tag, mainly for kustomize version command output
|
|
|
|
rev = "9e8e7a7fe99ec9fbf801463e8607928322fc5245";
|
2018-07-25 19:56:44 -07:00
|
|
|
|
2020-07-08 01:56:05 -07:00
|
|
|
buildFlagsArray = let t = "sigs.k8s.io/kustomize/api/provenance"; in
|
|
|
|
''
|
|
|
|
-ldflags=
|
|
|
|
-s -X ${t}.version=${version}
|
|
|
|
-X ${t}.gitCommit=${rev}
|
|
|
|
'';
|
2018-07-25 19:56:44 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kubernetes-sigs";
|
2019-10-20 09:50:27 -07:00
|
|
|
repo = pname;
|
2020-07-08 01:56:05 -07:00
|
|
|
rev = "kustomize/v${version}";
|
2021-03-09 00:54:53 -08:00
|
|
|
sha256 = "sha256-rv65sDr6V6hEYgIRxS1OSu9txmW75F7/YGAy/zRXGyY=";
|
2018-07-25 19:56:44 -07:00
|
|
|
};
|
|
|
|
|
2021-03-09 00:54:53 -08:00
|
|
|
# TODO: Remove once https://github.com/kubernetes-sigs/kustomize/pull/3708 got merged.
|
|
|
|
doCheck = false;
|
|
|
|
|
2019-10-20 09:50:27 -07:00
|
|
|
# avoid finding test and development commands
|
|
|
|
sourceRoot = "source/kustomize";
|
|
|
|
|
2021-03-09 00:54:53 -08:00
|
|
|
vendorSha256 = "sha256-lLUi0vD7uyfDR4HjDiosoTU0NbfQTY7ewZGm38ZT9nU=";
|
2019-07-06 00:41:41 -07:00
|
|
|
|
2020-03-27 00:33:21 -07:00
|
|
|
meta = with lib; {
|
2018-07-25 19:56:44 -07:00
|
|
|
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.
|
|
|
|
'';
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/kubernetes-sigs/kustomize";
|
2018-07-25 19:56:44 -07:00
|
|
|
license = licenses.asl20;
|
2021-02-10 00:19:03 -08:00
|
|
|
maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime Chili-Man saschagrunert ];
|
2018-07-25 19:56:44 -07:00
|
|
|
};
|
2020-07-08 01:56:05 -07:00
|
|
|
}
|