Skip to content

Commit

Permalink
ghcjs-*: Expose the version of GHC used
Browse files Browse the repository at this point in the history
This is more meaningful than the GHCJS version for most tasks.
  • Loading branch information
Ericson2314 committed Sep 28, 2018
1 parent 5ba8458 commit d892f1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/development/compilers/ghcjs-ng/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ let
targetPrefix = "";
inherit bootGhcjs;
inherit (bootGhcjs) version;
ghcVersion = bootPkgs.ghc.version;
isGhcjs = true;

enableShared = true;
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/compilers/ghcjs/base.nix
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ in mkDerivation (rec {
'';
passthru = {
inherit bootPkgs;
ghcVersion = ghc.version;
isCross = true;
isGhcjs = true;
inherit nodejs ghcjsBoot;
Expand Down

0 comments on commit d892f1a

Please sign in to comment.