From 757099e8f1fdcbb7baab36bc01f399ec0a8c82d7 Mon Sep 17 00:00:00 2001 From: "(cdep)illabout" Date: Thu, 11 Apr 2019 12:43:16 +0900 Subject: [PATCH] haskell-generic-builder: disable library-for-ghci by default This commit disables the library-for-ghci flag passed to `Setup configure` in the Haskell generic-builder.nix file. This stops the HSfoo.o file from being built. Building this HSfoo.o file caused doctest to take an extremely long time to load dependencies when running. This is a follow-up from https://github.com/NixOS/nixpkgs/pull/58743. --- pkgs/development/haskell-modules/generic-builder.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index a8d530516a5..8047eee1318 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -81,10 +81,10 @@ in # built. Will delay failures, if any, to compile time. allowInconsistentDependencies ? false , maxBuildCores ? 4 # GHC usually suffers beyond -j4. https://ghc.haskell.org/trac/ghc/ticket/9221 -, # Build a pre-linked .o file for this Haskell library. This can make it - # slightly faster to load this library into GHCi, but takes extra disk space - # and compile time. - enableLibraryForGhci ? true +, # If set to true, this builds a pre-linked .o file for this Haskell library. + # This can make it slightly faster to load this library into GHCi, but takes + # extra disk space and compile time. + enableLibraryForGhci ? false } @ args: assert editedCabalFile != null -> revision != null;