@@ -1,6 +1,7 @@
1{ stdenv, buildPackages, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, ghcForComponent, hsPkgs, runCommand, libffi, gmp, zlib, ncurses, nodejs }:
1{ stdenv, buildPackages, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, ghcForComponent, hsPkgs, runCommand, libffi, gmp, zlib, ncurses, nodejs }:
3lib.makeOverridable (
3lib.makeOverridable (
4{ componentId
5{ componentId
@@ -53,7 +54,7 @@ lib.makeOverridable (
55, enableDebugRTS ? false
56, enableDebugRTS ? false
59 # TODO fix cabal wildcard support so hpack wildcards can be mapped to cabal wildcards
60 # TODO fix cabal wildcard support so hpack wildcards can be mapped to cabal wildcards
@@ -188,6 +189,7 @@ stdenv.mkDerivation ({
188 # The directory containing the haddock documentation.
189 # The directory containing the haddock documentation.
189 # `null' if no haddock documentation was built.
190 # `null' if no haddock documentation was built.
190 haddockDir = if doHaddock' then "${docdir drv.doc}/html" else null;
191 haddockDir = if doHaddock' then "${docdir drv.doc}/html" else null;
192+ profiled = self (drvArgs // { enableLibraryProfiling = true; });
@@ -379,4 +381,4 @@ stdenv.mkDerivation ({
379 preInstall postInstall preHaddock postHaddock;
381 preInstall postInstall preHaddock postHaddock;
381// lib.optionalAttrs (stdenv.buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${buildPackages.glibcLocales}/lib/locale/locale-archive"; }
383// lib.optionalAttrs (stdenv.buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${buildPackages.glibcLocales}/lib/locale/locale-archive"; }