elvish: provide the compiled version

Without this fix, `elvish -version` displays "unknown"
This commit is contained in:
zimbatm 2018-10-04 16:10:47 +02:00
parent 3cb5b46e02
commit 9d49cf1808

View File

@ -6,6 +6,10 @@ buildGoPackage rec {
goPackagePath = "github.com/elves/elvish";
excludedPackages = [ "website" ];
buildFlagsArray = ''
-ldflags=
-X ${goPackagePath}/buildinfo.Version=${version}
'';
src = fetchFromGitHub {
repo = "elvish";