mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-23 13:45:49 +02:00
ghc.withPackages: amend the derviation name
Provide a clear difference between the compiler itself and link farms containing additional packages.
This commit is contained in:
parent
a24728fe29
commit
499e4e6393
|
@ -47,7 +47,10 @@ let
|
||||||
in
|
in
|
||||||
if paths == [] && !withLLVM then ghc else
|
if paths == [] && !withLLVM then ghc else
|
||||||
buildEnv {
|
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];
|
paths = paths ++ [ghc];
|
||||||
inherit ignoreCollisions;
|
inherit ignoreCollisions;
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
|
|
Loading…
Reference in a new issue