ghcWithHoogle: deal gracefully with packages that have no haddockDir attribute
This commit is contained in:
parent
01b8c4c9e5
commit
6fe751fb5c
@ -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))}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user