kustomize: fix variable interpolation for version info
This commit is contained in:
parent
2fb5993fe7
commit
82d9988eb8
@ -1,7 +1,7 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
|
||||
buildGoModule rec {
|
||||
name = "kustomize-${version}";
|
||||
pname = "kustomize";
|
||||
version = "3.1.0";
|
||||
# rev is the 3.1.0 commit, mainly for kustomize version command output
|
||||
rev = "95f3303493fdea243ae83b767978092396169baf";
|
||||
@ -9,7 +9,7 @@ buildGoModule rec {
|
||||
goPackagePath = "sigs.k8s.io/kustomize";
|
||||
subPackages = [ "cmd/kustomize" ];
|
||||
|
||||
buildFlagsArray = let t = "${goPackagePath}/pkg/commands/misc"; in ''
|
||||
buildFlagsArray = let t = "${goPackagePath}/v3/pkg/commands/misc"; in ''
|
||||
-ldflags=
|
||||
-s -X ${t}.kustomizeVersion=${version}
|
||||
-X ${t}.gitCommit=${rev}
|
||||
@ -19,7 +19,7 @@ buildGoModule rec {
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "0kigcirkjvnj3xi1p28p9yp3s0lff24q5qcvf8ahjwvpbwka14sh";
|
||||
rev = "v${version}";
|
||||
repo = "kustomize";
|
||||
repo = pname;
|
||||
owner = "kubernetes-sigs";
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user