From 8722479fd45611b9827850965653c49ddfdc79e8 Mon Sep 17 00:00:00 2001 From: "Bryan A. S" Date: Mon, 13 Jun 2022 13:52:32 -0300 Subject: [PATCH] aws-iam-authenticator: fix ldflags - changed ldflags to reflect https://github.com/kubernetes-sigs/aws-iam-authenticator/commit/4c82478b1f79ccff1ff31dcfbbf558045ba43dfb --- pkgs/tools/security/aws-iam-authenticator/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/aws-iam-authenticator/default.nix b/pkgs/tools/security/aws-iam-authenticator/default.nix index 2d2c2630b9f..8a7bb408f22 100644 --- a/pkgs/tools/security/aws-iam-authenticator/default.nix +++ b/pkgs/tools/security/aws-iam-authenticator/default.nix @@ -15,7 +15,12 @@ buildGoModule rec { deleteVendor = true; vendorSha256 = null; - ldflags = [ "-s" "-w" "-X main.version=v${version}" ]; + ldflags = let PKG = "sigs.k8s.io/aws-iam-authenticator"; in [ + "-s" "-w" + "-X ${PKG}/pkg.Version=${version}" + "-X ${PKG}/pkg.BuildDate=1970-01-01T01:01:01Z" + "-X ${PKG}/pkg.CommitID=${version}" + ]; subPackages = [ "cmd/aws-iam-authenticator" ];