From debf7bbcb0f0b3864d8338bcb77d9866bcc34363 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Sat, 25 Jul 2020 12:30:12 -0700 Subject: [PATCH] Add version flag to Open Policy Agent build --- pkgs/development/tools/open-policy-agent/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/open-policy-agent/default.nix b/pkgs/development/tools/open-policy-agent/default.nix index d1ecdd1efd96..48a3bf8e0a6d 100644 --- a/pkgs/development/tools/open-policy-agent/default.nix +++ b/pkgs/development/tools/open-policy-agent/default.nix @@ -13,6 +13,11 @@ buildGoPackage rec { }; goDeps = ./deps.nix; + buildFlagsArray = '' + -ldflags= + -X ${goPackagePath}/version.Version=${version} + ''; + meta = with lib; { description = "General-purpose policy engine"; homepage = "https://www.openpolicyagent.org";