about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/with-packages-wrapper.nix
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2016-11-16 13:45:59 +0100
committerProfpatsch <mail@profpatsch.de>2016-11-17 16:48:53 +0100
commit499e4e6393020443f7b3c485a67f0ba8e0205ea3 (patch)
tree2c3345ce04f78705b2b6e5c7e8d8e572d2bceeae /pkgs/development/haskell-modules/with-packages-wrapper.nix
parenta24728fe295f28648f1812b3565541f7ef6269f1 (diff)
downloadnixlib-499e4e6393020443f7b3c485a67f0ba8e0205ea3.tar
nixlib-499e4e6393020443f7b3c485a67f0ba8e0205ea3.tar.gz
nixlib-499e4e6393020443f7b3c485a67f0ba8e0205ea3.tar.bz2
nixlib-499e4e6393020443f7b3c485a67f0ba8e0205ea3.tar.lz
nixlib-499e4e6393020443f7b3c485a67f0ba8e0205ea3.tar.xz
nixlib-499e4e6393020443f7b3c485a67f0ba8e0205ea3.tar.zst
nixlib-499e4e6393020443f7b3c485a67f0ba8e0205ea3.zip
ghc.withPackages: amend the derviation name
Provide a clear difference between the compiler itself and link farms containing
additional packages.
Diffstat (limited to 'pkgs/development/haskell-modules/with-packages-wrapper.nix')
-rw-r--r--pkgs/development/haskell-modules/with-packages-wrapper.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/with-packages-wrapper.nix b/pkgs/development/haskell-modules/with-packages-wrapper.nix
index 66e151aefe3c..7929d99de153 100644
--- a/pkgs/development/haskell-modules/with-packages-wrapper.nix
+++ b/pkgs/development/haskell-modules/with-packages-wrapper.nix
@@ -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 = ''