2019-06-16 21:59:06 +02:00
|
|
|
{ lib, buildGoPackage, fetchFromGitHub }:
|
2018-07-26 04:56:44 +02:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
name = "kustomize-${version}";
|
2019-03-08 22:04:56 +01:00
|
|
|
version = "2.0.3";
|
|
|
|
# rev is the 2.0.3 commit, mainly for kustomize version command output
|
|
|
|
rev = "a6f65144121d1955266b0cd836ce954c04122dc8";
|
2018-07-26 04:56:44 +02:00
|
|
|
|
2018-09-28 19:58:56 +02:00
|
|
|
goPackagePath = "sigs.k8s.io/kustomize";
|
|
|
|
|
2019-02-15 09:51:34 +01:00
|
|
|
buildFlagsArray = let t = "${goPackagePath}/pkg/commands/misc"; in ''
|
2018-09-28 19:58:56 +02:00
|
|
|
-ldflags=
|
|
|
|
-s -X ${t}.kustomizeVersion=${version}
|
|
|
|
-X ${t}.gitCommit=${rev}
|
2019-02-15 09:51:34 +01:00
|
|
|
-X ${t}.buildDate=unknown
|
2018-09-28 19:58:56 +02:00
|
|
|
'';
|
2018-07-26 04:56:44 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2019-03-08 22:04:56 +01:00
|
|
|
sha256 = "1dfkpx9rllj1bzm5f52bx404kdds3zx1h38yqri9ha3p3pcb1bbb";
|
2018-07-26 04:56:44 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "kustomize";
|
|
|
|
owner = "kubernetes-sigs";
|
|
|
|
};
|
|
|
|
|
|
|
|
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 09:47:35 +01:00
|
|
|
maintainers = with maintainers; [ carlosdagos vdemeester periklis zaninime ];
|
2018-07-26 04:56:44 +02:00
|
|
|
};
|
|
|
|
}
|