ghcWithHoogle: deal gracefully with packages that have no haddockDir attribute

This commit is contained in:
Peter Simons 2017-08-19 17:20:39 +02:00
parent 01b8c4c9e5
commit 6fe751fb5c

View File

@ -87,7 +87,7 @@ stdenv.mkDerivation {
ln -sfn ${el.haddockDir} "$out/share/doc/hoogle/${el.name}" ln -sfn ${el.haddockDir} "$out/share/doc/hoogle/${el.name}"
'') '')
(lib.filter (el: el.haddockDir != null) (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; }) name = p.pname; })
docPackages))} docPackages))}