mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
ghcWithHoogle: deal gracefully with packages that have no haddockDir attribute
This commit is contained in:
parent
01b8c4c9e5
commit
6fe751fb5c
1 changed files with 1 additions and 1 deletions
|
@ -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))}
|
||||
|
||||
|
|
Loading…
Reference in a new issue