From e75c36d0557a0631a91ebb0be72da20da1a4aefb Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 19 Jan 2023 18:12:58 +0100 Subject: [PATCH] haskellPackages.ghcWithPackages: suppport ghcs without doc output This is the case for all bindist-based GHC derivations. --- pkgs/development/haskell-modules/with-packages-wrapper.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/with-packages-wrapper.nix b/pkgs/development/haskell-modules/with-packages-wrapper.nix index eaf9a6b3b16a..77ccd301b43f 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