diff options
author | Bas van Dijk <v.dijk.bas@gmail.com> | 2018-08-20 22:22:10 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2018-08-27 14:31:34 +0200 |
commit | 97a4d29545231dc2ee84b32757d735ad42bfb068 (patch) | |
tree | 162d68daf36627209199972685d7cd6274f4450c | |
parent | 60cc518b22ed6ebb6e37a507c7c430e42bce2cec (diff) | |
download | nixlib-97a4d29545231dc2ee84b32757d735ad42bfb068.tar nixlib-97a4d29545231dc2ee84b32757d735ad42bfb068.tar.gz nixlib-97a4d29545231dc2ee84b32757d735ad42bfb068.tar.bz2 nixlib-97a4d29545231dc2ee84b32757d735ad42bfb068.tar.lz nixlib-97a4d29545231dc2ee84b32757d735ad42bfb068.tar.xz nixlib-97a4d29545231dc2ee84b32757d735ad42bfb068.tar.zst nixlib-97a4d29545231dc2ee84b32757d735ad42bfb068.zip |
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.
-rw-r--r-- | pkgs/development/haskell-modules/lib.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/lib.nix b/pkgs/development/haskell-modules/lib.nix index 54616abc4ba8..106b66c6b415 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"; |