Skip to content

Commit f13f243

Browse files
authoredJun 22, 2018
Revert "Fix null deps in ghcWithHoogle"
1 parent d8a03e2 commit f13f243

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed
 

‎pkgs/development/haskell-modules/hoogle.nix

+7-9
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,10 @@ let
5252
This index includes documentation for many Haskell modules.
5353
'';
5454

55-
# Packages like base and bytestring are null. These must be removed
56-
# to prevent eval errors.
57-
nonNullPackages = builtins.filter (p: p != null) packages;
5855
# TODO: closePropagation is deprecated; replace
5956
docPackages = lib.closePropagation
6057
# we grab the doc outputs
61-
(map (lib.getOutput "doc") nonNullPackages);
58+
(map (lib.getOutput "doc") packages);
6259

6360
in
6461
stdenv.mkDerivation {
@@ -70,10 +67,10 @@ stdenv.mkDerivation {
7067
inherit docPackages;
7168

7269
buildPhase = ''
73-
${lib.optionalString (nonNullPackages != [] -> docPackages == [])
70+
${lib.optionalString (packages != [] -> docPackages == [])
7471
("echo WARNING: localHoogle package list empty, even though"
7572
+ " the following were specified: "
76-
+ lib.concatMapStringsSep ", " (p: p.name) nonNullPackages)}
73+
+ lib.concatMapStringsSep ", " (p: p.name) packages)}
7774
mkdir -p $out/share/doc/hoogle
7875
7976
echo importing builtin packages
@@ -89,9 +86,10 @@ stdenv.mkDerivation {
8986
${lib.concatMapStringsSep "\n" (el: ''
9087
ln -sfn ${el.haddockDir} "$out/share/doc/hoogle/${el.name}"
9188
'')
92-
(builtins.map (p: { haddockDir = if p ? haddockDir then p.haddockDir p else null;
93-
name = p.pname; })
94-
docPackages)}
89+
(lib.filter (el: el.haddockDir != null)
90+
(builtins.map (p: { haddockDir = if p ? haddockDir then p.haddockDir p else null;
91+
name = p.pname; })
92+
docPackages))}
9593
9694
echo building hoogle database
9795
hoogle generate --database $out/share/doc/hoogle/default.hoo --local=$out/share/doc/hoogle

0 commit comments

Comments
 (0)
Please sign in to comment.