From 834de6ebaaa0af9044ae79bd2e8e3e18d0eb55c3 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Fri, 17 Feb 2017 12:08:54 +0100 Subject: [PATCH] glide: output correct version (#22896) It currently displays `0.12.0-dev` instead of the specified version. Signed-off-by: Vincent Demeester --- pkgs/development/tools/glide/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/glide/default.nix b/pkgs/development/tools/glide/default.nix index 4f853e900b39..bd83a63e5d66 100644 --- a/pkgs/development/tools/glide/default.nix +++ b/pkgs/development/tools/glide/default.nix @@ -6,6 +6,11 @@ buildGoPackage rec { goPackagePath = "github.com/Masterminds/glide"; + buildFlagsArray = '' + -ldflags= + -X main.version=${version} + ''; + src = fetchFromGitHub { rev = "v${version}"; owner = "Masterminds";