ghcjs-*: Expose the version of GHC used

This is more meaningful than the GHCJS version for most tasks.
This commit is contained in:
John Ericson 2018-09-28 12:06:31 -04:00
parent 5ba8458ebd
commit d892f1aa90
2 changed files with 2 additions and 0 deletions

View File

@ -42,6 +42,7 @@ let
targetPrefix = ""; targetPrefix = "";
inherit bootGhcjs; inherit bootGhcjs;
inherit (bootGhcjs) version; inherit (bootGhcjs) version;
ghcVersion = bootPkgs.ghc.version;
isGhcjs = true; isGhcjs = true;
enableShared = true; enableShared = true;

View File

@ -133,6 +133,7 @@ in mkDerivation (rec {
''; '';
passthru = { passthru = {
inherit bootPkgs; inherit bootPkgs;
ghcVersion = ghc.version;
isCross = true; isCross = true;
isGhcjs = true; isGhcjs = true;
inherit nodejs ghcjsBoot; inherit nodejs ghcjsBoot;