Add version flag to Open Policy Agent build

This commit is contained in:
Luc Perkins 2020-07-25 12:30:12 -07:00
parent 883af843c3
commit debf7bbcb0
No known key found for this signature in database
GPG key ID: 9AF8ADA503D89A4F

View file

@ -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";