From 8acd3c804d829d900d333f44917a14b3e6011f1b Mon Sep 17 00:00:00 2001 From: Shahrukh Khan Date: Thu, 20 Feb 2020 06:48:39 +0500 Subject: [PATCH] argocd: Fix build flags (#80545) --- pkgs/applications/networking/cluster/argocd/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/applications/networking/cluster/argocd/default.nix b/pkgs/applications/networking/cluster/argocd/default.nix index 4842f31c40d6..7f9ebda93c0a 100644 --- a/pkgs/applications/networking/cluster/argocd/default.nix +++ b/pkgs/applications/networking/cluster/argocd/default.nix @@ -3,6 +3,7 @@ buildGoModule rec { pname = "argocd"; version = "1.4.2"; + commit = "48cced9d925b5bc94f6aa9fa4a8a19b2a59e128a"; src = fetchFromGitHub { owner = "argoproj"; @@ -16,6 +17,14 @@ buildGoModule rec { nativeBuildInputs = [ packr ]; patches = [ ./use-go-module.patch ]; + + buildFlagsArray = '' + -ldflags= + -X github.com/argoproj/argo-cd/common.version=${version} + -X github.com/argoproj/argo-cd/common.buildDate=unknown + -X github.com/argoproj/argo-cd/common.gitCommit=${commit} + -X github.com/argoproj/argo-cd/common.gitTreeState=clean + ''; # run packr to embed assets preBuild = ''