3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Bas van Dijk 2018-08-20 22:22:10 +02:00 committed by Peter Simons
parent 60cc518b22
commit 97a4d29545

View file

@ -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";