From 97a4d29545231dc2ee84b32757d735ad42bfb068 Mon Sep 17 00:00:00 2001 From: Bas van Dijk Date: Mon, 20 Aug 2018 22:22:10 +0200 Subject: [PATCH] haskell: disable library profiling for static executables Haskell packages overridden with justStaticExecutables (like cabal-install, stack, pandoc, darcs, etc.) don't provide libraries in the end result so it's futile to build them with library profiling enabled because it will just take extra time. --- pkgs/development/haskell-modules/lib.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/haskell-modules/lib.nix b/pkgs/development/haskell-modules/lib.nix index 54616abc4ba..106b66c6b41 100644 --- a/pkgs/development/haskell-modules/lib.nix +++ b/pkgs/development/haskell-modules/lib.nix @@ -234,6 +234,7 @@ rec { */ justStaticExecutables = drv: overrideCabal drv (drv: { enableSharedExecutables = false; + enableLibraryProfiling = false; isLibrary = false; doHaddock = false; postFixup = "rm -rf $out/lib $out/nix-support $out/share/doc";