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:
@@ -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}";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user