Merge pull request #127028 from expipiplus1/joe-hoogle-fix
haskellPackages.shellFor: Work around hoogle generation failure
This commit is contained in:
@@ -63,10 +63,13 @@ buildPackages.stdenv.mkDerivation {
|
||||
passAsFile = ["buildCommand"];
|
||||
|
||||
buildCommand = ''
|
||||
${lib.optionalString (packages != [] -> docPackages == [])
|
||||
${let # Filter out nulls here to work around https://github.com/NixOS/nixpkgs/issues/82245
|
||||
# If we don't then grabbing `p.name` here will fail.
|
||||
packages' = lib.filter (p: p != null) packages;
|
||||
in lib.optionalString (packages' != [] -> docPackages == [])
|
||||
("echo WARNING: localHoogle package list empty, even though"
|
||||
+ " the following were specified: "
|
||||
+ lib.concatMapStringsSep ", " (p: p.name) packages)}
|
||||
+ lib.concatMapStringsSep ", " (p: p.name) packages')}
|
||||
mkdir -p $out/share/doc/hoogle
|
||||
|
||||
echo importing builtin packages
|
||||
|
||||
Reference in New Issue
Block a user