2020-08-20 17:08:02 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kustomize";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "4.1.3";
|
2021-03-12 07:09:13 +00:00
|
|
|
# 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-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-NPWKInDHOoelWqDrUn/AlRItI4e8J6dbBxgLW078ecs=";
|
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-05-28 09:39:13 +00:00
|
|
|
vendorSha256 = "sha256-6maEpEPEV436NrVnVlvWV1q6YywGVILXbxn8Z8Ku/hs=";
|
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
|
|
|
}
|