@@ -1,6 +1,7 @@
11{ stdenv, buildPackages, ghc, lib, gobject-introspection ? null, haskellLib, makeConfigFiles, ghcForComponent, hsPkgs, runCommand, libffi, gmp, zlib, ncurses, nodejs }:
22
33lib.makeOverridable (
4+let self =
45{ componentId
56, component
67, package
@@ -53,7 +54,7 @@ lib.makeOverridable (
5354
5455# Debug
5556, enableDebugRTS ? false
56−}:
57+}@drvArgs:
5758
5859let
5960 # TODO fix cabal wildcard support so hpack wildcards can be mapped to cabal wildcards
@@ -188,6 +189,7 @@ stdenv.mkDerivation ({
188189 # The directory containing the haddock documentation.
189190 # `null' if no haddock documentation was built.
190191 haddockDir = if doHaddock' then "${docdir drv.doc}/html" else null;
192+ profiled = self (drvArgs // { enableLibraryProfiling = true; });
191193 };
192194
193195 meta = {
@@ -379,4 +381,4 @@ stdenv.mkDerivation ({
379381 preInstall postInstall preHaddock postHaddock;
380382}
381383// lib.optionalAttrs (stdenv.buildPlatform.libc == "glibc"){ LOCALE_ARCHIVE = "${buildPackages.glibcLocales}/lib/locale/locale-archive"; }
382−)))
384+)); in self)