haskellPackages.ghcWithPackages: suppport ghcs without doc output

This is the case for all bindist-based GHC derivations.
This commit is contained in:
sternenseemann 2023-01-19 18:12:58 +01:00
parent f414808812
commit e75c36d055

View File

@ -79,7 +79,7 @@ symlinkJoin {
name = ghc.name + "-with-packages";
paths = paths
++ [ ghc ]
++ lib.optionals installDocumentation [ ghc.doc ];
++ lib.optionals installDocumentation [ (lib.getOutput "doc" ghc) ];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
# wrap compiler executables with correct env variables