elvish: provide the compiled version
Without this fix, `elvish -version` displays "unknown"
This commit is contained in:
parent
3cb5b46e02
commit
9d49cf1808
@ -6,6 +6,10 @@ buildGoPackage rec {
|
|||||||
|
|
||||||
goPackagePath = "github.com/elves/elvish";
|
goPackagePath = "github.com/elves/elvish";
|
||||||
excludedPackages = [ "website" ];
|
excludedPackages = [ "website" ];
|
||||||
|
buildFlagsArray = ''
|
||||||
|
-ldflags=
|
||||||
|
-X ${goPackagePath}/buildinfo.Version=${version}
|
||||||
|
'';
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
repo = "elvish";
|
repo = "elvish";
|
||||||
|
Loading…
Reference in New Issue
Block a user