Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.

Commit

Permalink
elvish: provide the compiled version
Browse files Browse the repository at this point in the history
Without this fix, `elvish -version` displays "unknown"
  • Loading branch information
zimbatm committed Oct 4, 2018
1 parent 3cb5b46 commit 9d49cf1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/shells/elvish/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ buildGoPackage rec {

goPackagePath = "github.com/elves/elvish";
excludedPackages = [ "website" ];
buildFlagsArray = ''
-ldflags=
-X ${goPackagePath}/buildinfo.Version=${version}
'';

src = fetchFromGitHub {
repo = "elvish";
Expand Down

0 comments on commit 9d49cf1

Please sign in to comment.