From 6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sat, 19 Aug 2017 17:20:39 +0200 Subject: [PATCH] ghcWithHoogle: deal gracefully with packages that have no haddockDir attribute --- pkgs/development/haskell-modules/hoogle.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix index a0057c141f27..38e8dfd24c4e 100644 --- a/pkgs/development/haskell-modules/hoogle.nix +++ b/pkgs/development/haskell-modules/hoogle.nix @@ -87,7 +87,7 @@ stdenv.mkDerivation { ln -sfn ${el.haddockDir} "$out/share/doc/hoogle/${el.name}" '') (lib.filter (el: el.haddockDir != null) - (builtins.map (p: { haddockDir = p.haddockDir p; + (builtins.map (p: { haddockDir = if p ? haddockDir then p.haddockDir p else null; name = p.pname; }) docPackages))}