Skip to content

Commit

Permalink
ghc.withPackages: amend the derviation name
Browse files Browse the repository at this point in the history
Provide a clear difference between the compiler itself and link farms containing
additional packages.
  • Loading branch information
Profpatsch committed Nov 17, 2016
1 parent a24728f commit 499e4e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/haskell-modules/with-packages-wrapper.nix
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ let
in
if paths == [] && !withLLVM then ghc else
buildEnv {
inherit (ghc) name;
# this makes computing paths from the name attribute impossible;
# if such a feature is needed, the real compiler name should be saved
# as a dedicated drv attribute, like `compiler-name`
name = ghc.name + "-with-packages";
paths = paths ++ [ghc];
inherit ignoreCollisions;
postBuild = ''
Expand Down

0 comments on commit 499e4e6

Please sign in to comment.