1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

Merge pull request #20463 from Profpatsch/with-packages-drv-naming

ghc.withPackages: amend the derviation name
This commit is contained in:
Peter Simons 2016-11-17 17:09:28 +01:00 committed by GitHub
commit 0816860785

View file

@ -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 = ''