From 7b87b70b1f3b547d556636ed32679bec824d24e1 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 28 Sep 2018 19:58:56 +0200 Subject: [PATCH] kustomize: 1.0.4 -> 1.0.8 (#47489) - change the GOPATH to `sigs.k8s.io/kustomize` - add some buildtags to get a better `kustomize version` Signed-off-by: Vincent Demeester --- pkgs/development/tools/kustomize/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/kustomize/default.nix b/pkgs/development/tools/kustomize/default.nix index 4f9512b22137..ce297df13c3a 100644 --- a/pkgs/development/tools/kustomize/default.nix +++ b/pkgs/development/tools/kustomize/default.nix @@ -3,12 +3,21 @@ buildGoPackage rec { name = "kustomize-${version}"; - version = "1.0.4"; + version = "1.0.8"; + # rev is the 1.0.8 commit, mainly for kustomize version command output + rev = "58492e2d83c59ed63881311f46ad6251f77dabc3"; - goPackagePath = "github.com/kubernetes-sigs/kustomize"; + goPackagePath = "sigs.k8s.io/kustomize"; + + buildFlagsArray = let t = "${goPackagePath}/pkg/commands"; in '' + -ldflags= + -s -X ${t}.kustomizeVersion=${version} + -X ${t}.gitCommit=${rev} + -X ${t}.buildDate=unknow + ''; src = fetchFromGitHub { - sha256 = "0lbf94wz34axaf8ps7h79qbj4dpihrpvnqa12zrawcmmgqallwhm"; + sha256 = "0y6dqwhm7lczjy0zk2fnc1i43lvnjhcvihvm7qknky05z9f0v8bx"; rev = "v${version}"; repo = "kustomize"; owner = "kubernetes-sigs"; @@ -23,6 +32,6 @@ buildGoPackage rec { ''; homepage = https://github.com/kubernetes-sigs/kustomize; license = licenses.asl20; - maintainers = [ maintainers.carlosdagos ]; + maintainers = [ maintainers.carlosdagos maintainers.vdemeester ]; }; }