Restore writing the version info correctly

This commit is contained in:
Francesco Zanini 2019-02-15 09:51:34 +01:00
parent d0b0cf7cd9
commit 24277a2ec8

View file

@ -9,11 +9,11 @@ buildGoPackage rec {
goPackagePath = "sigs.k8s.io/kustomize";
goDeps = ./deps.nix;
buildFlagsArray = let t = "${goPackagePath}/pkg/commands"; in ''
buildFlagsArray = let t = "${goPackagePath}/pkg/commands/misc"; in ''
-ldflags=
-s -X ${t}.kustomizeVersion=${version}
-X ${t}.gitCommit=${rev}
-X ${t}.buildDate=unknow
-X ${t}.buildDate=unknown
'';
src = fetchFromGitHub {