Skip to content

Commit

Permalink
expose env ghc and pkgs at legacyPackages.env.*
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Sep 16, 2023
1 parent d3ac953 commit 725e097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ let

scopedEnvDerivations = envs: genAttrs envs envDerivations;

envsApi = envs: { env = mapAttrs (n: e: { inherit (e.ghc) pkgs ghc; } // envDerivations n) envs; };

in {
inherit prefixedEnvDerivations scopedEnvDerivations devOutputs;
inherit prefixedEnvDerivations scopedEnvDerivations devOutputs envsApi;
}
2 changes: 1 addition & 1 deletion modules/output.nix
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ in {
config.envs.dev.derivations //
optionalAttrs config.compat.enable (libOutput.prefixedEnvDerivations config.compat.versions);

legacyPackages = libOutput.scopedEnvDerivations config.ghcVersions // {
legacyPackages = libOutput.scopedEnvDerivations config.ghcVersions // libOutput.envsApi config.envs // {
inherit config;
inherit (config.envs.dev.ghc) pkgs ghc;
show-config = show-config.shell;
Expand Down

0 comments on commit 725e097

Please sign in to comment.