summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-01-19 18:12:58 +0100
committersternenseemann <sternenseemann@systemli.org>2023-01-22 13:02:18 +0100
commite75c36d0557a0631a91ebb0be72da20da1a4aefb (patch)
treefccfdab9ee38cc9ee79cfcf92ce7f506f561f1d2
parentf4148088127991d12594805b721616d4e4f5b5bf (diff)
downloadnixpkgs-e75c36d0557a0631a91ebb0be72da20da1a4aefb.tar
nixpkgs-e75c36d0557a0631a91ebb0be72da20da1a4aefb.tar.gz
nixpkgs-e75c36d0557a0631a91ebb0be72da20da1a4aefb.tar.bz2
nixpkgs-e75c36d0557a0631a91ebb0be72da20da1a4aefb.tar.lz
nixpkgs-e75c36d0557a0631a91ebb0be72da20da1a4aefb.tar.xz
nixpkgs-e75c36d0557a0631a91ebb0be72da20da1a4aefb.tar.zst
nixpkgs-e75c36d0557a0631a91ebb0be72da20da1a4aefb.zip
haskellPackages.ghcWithPackages: suppport ghcs without doc output
This is the case for all bindist-based GHC derivations.
-rw-r--r--pkgs/development/haskell-modules/with-packages-wrapper.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/with-packages-wrapper.nix b/pkgs/development/haskell-modules/with-packages-wrapper.nix
index eaf9a6b3b16..77ccd301b43 100644
--- a/pkgs/development/haskell-modules/with-packages-wrapper.nix
+++ b/pkgs/development/haskell-modules/with-packages-wrapper.nix
@@ -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