diff --git a/pkgs/development/tools/kustomize/default.nix b/pkgs/development/tools/kustomize/default.nix index 3f1bf29773ba..07d2357a50b6 100644 --- a/pkgs/development/tools/kustomize/default.nix +++ b/pkgs/development/tools/kustomize/default.nix @@ -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"; };