haskellPackages: move hoogle docPackages into passthru

This can get very big and lead to "command line length exceeded" errors
when building hoogle databases for large numbers of packages.
This commit is contained in:
Michael Peyton Jones
2026-05-26 14:14:27 +01:00
parent 5ff973b4c8
commit aac4e39ed0
+2 -2
View File
@@ -54,8 +54,6 @@ buildPackages.stdenv.mkDerivation (finalAttrs: {
# thus probably intend to substitute it.
allowSubstitutes = true;
inherit docPackages;
passAsFile = [ "buildCommand" ];
buildCommand = ''
@@ -128,6 +126,8 @@ buildPackages.stdenv.mkDerivation (finalAttrs: {
passthru = {
isHaskellLibrary = false; # for the filter in ./with-packages-wrapper.nix
inherit docPackages;
# The path to the Hoogle database.
database = "${finalAttrs.finalPackage}/${databasePath}";