Skip to content

Commit 4a2aad0

Browse files
authoredJan 10, 2020
Revert "haskell/with-packages-wrapper.nix: install "doc" outputs"
1 parent 01d93cb commit 4a2aad0

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed
 

‎pkgs/development/haskell-modules/with-packages-wrapper.nix

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{ lib, stdenv, ghc, llvmPackages, packages, buildEnv, makeWrapper
1+
{ lib, stdenv, ghc, llvmPackages, packages, symlinkJoin, makeWrapper
22
, withLLVM ? false
33
, postBuild ? ""
44
, ghcLibdir ? null # only used by ghcjs, when resolving plugins
@@ -51,25 +51,15 @@ let
5151
++ lib.optional stdenv.targetPlatform.isDarwin llvmPackages.clang);
5252
in
5353
if paths == [] && !withLLVM then ghc else
54-
buildEnv {
54+
symlinkJoin {
5555
# this makes computing paths from the name attribute impossible;
5656
# if such a feature is needed, the real compiler name should be saved
5757
# as a dedicated drv attribute, like `compiler-name`
5858
name = ghc.name + "-with-packages";
5959
paths = paths ++ [ghc];
60-
extraOutputsToInstall = ["doc"];
6160
postBuild = ''
6261
. ${makeWrapper}/nix-support/setup-hook
6362
64-
# We make changes to ghc binaries in $out/bin. buildEnv gives a
65-
# symlink if only one of the paths has the subdirectory. If so,
66-
# we need to remove it for our new wrappers.
67-
68-
if [ -L "$out/bin" ]; then
69-
rm -f "$out/bin"
70-
mkdir -p "$out/bin"
71-
fi
72-
7363
# wrap compiler executables with correct env variables
7464
7565
for prg in ${ghcCommand} ${ghcCommand}i ${ghcCommand}-${ghc.version} ${ghcCommand}i-${ghc.version}; do

0 commit comments

Comments
 (0)
Please sign in to comment.