diff options
author | Peter Simons <simons@cryp.to> | 2017-08-19 17:20:39 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2017-08-19 17:20:39 +0200 |
commit | 6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3 (patch) | |
tree | 40606001cae76eb11beb7fbd0c30228fe43189a2 /pkgs/development/haskell-modules | |
parent | 01b8c4c9e54082f9ddd01b3d6fe6e3a54ba9996f (diff) | |
download | nixlib-6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3.tar nixlib-6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3.tar.gz nixlib-6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3.tar.bz2 nixlib-6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3.tar.lz nixlib-6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3.tar.xz nixlib-6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3.tar.zst nixlib-6fe751fb5c6c1c492c7d99a9007945f3f4c9a9e3.zip |
ghcWithHoogle: deal gracefully with packages that have no haddockDir attribute
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r-- | pkgs/development/haskell-modules/hoogle.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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))} |