From aac4e39ed017a5a36bfaaf5d6e0813c937e899f9 Mon Sep 17 00:00:00 2001 From: Michael Peyton Jones Date: Tue, 26 May 2026 14:14:27 +0100 Subject: [PATCH] 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. --- pkgs/development/haskell-modules/hoogle.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix index 7d2e3517f979..877fb974c887 100644 --- a/pkgs/development/haskell-modules/hoogle.nix +++ b/pkgs/development/haskell-modules/hoogle.nix @@ -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}";