@@ -61,7 +61,7 @@ let self =
62# Profiling
62# Profiling
63, enableLibraryProfiling ? component.enableLibraryProfiling
63, enableLibraryProfiling ? component.enableLibraryProfiling
64−, enableExecutableProfiling ? component.enableExecutableProfiling
64+, enableProfiling ? component.enableProfiling
65, profilingDetail ? component.profilingDetail
65, profilingDetail ? component.profilingDetail
@@ -129,7 +129,7 @@ let
130 fullName = "${nameOnly}-${package.identifier.version}";
130 fullName = "${nameOnly}-${package.identifier.version}";
132− needsProfiling = enableExecutableProfiling || enableLibraryProfiling;
132+ needsProfiling = enableProfiling || enableLibraryProfiling;
134 configFiles = makeConfigFiles {
134 configFiles = makeConfigFiles {
135 component = componentForSetup;
135 component = componentForSetup;
@@ -193,7 +193,7 @@ let
193 (disableFeature dontStrip "executable-stripping")
193 (disableFeature dontStrip "executable-stripping")
194 (disableFeature dontStrip "library-stripping")
194 (disableFeature dontStrip "library-stripping")
195 (enableFeature enableLibraryProfiling "library-profiling")
195 (enableFeature enableLibraryProfiling "library-profiling")
196− (enableFeature enableExecutableProfiling "executable-profiling")
196+ (enableFeature enableProfiling "profiling")
197 (enableFeature enableStatic "static")
197 (enableFeature enableStatic "static")
198 (enableFeature enableShared "shared")
198 (enableFeature enableShared "shared")
199 (enableFeature doCoverage "coverage")
199 (enableFeature doCoverage "coverage")
@@ -207,7 +207,7 @@ let
207 "--ghc-option=-optl=-pthread"
207 "--ghc-option=-optl=-pthread"
208 "--ghc-option=-optl=-static"
208 "--ghc-option=-optl=-static"
209 ] ++ lib.optional enableSeparateDataOutput "--datadir=$data/share/${ghc.name}"
209 ] ++ lib.optional enableSeparateDataOutput "--datadir=$data/share/${ghc.name}"
210− ++ lib.optional (enableLibraryProfiling || enableExecutableProfiling) "--profiling-detail=${profilingDetail}"
210+ ++ lib.optional (enableLibraryProfiling || enableProfiling) "--profiling-detail=${profilingDetail}"
211 ++ lib.optional stdenv.hostPlatform.isLinux (enableFeature enableDeadCodeElimination "split-sections")
211 ++ lib.optional stdenv.hostPlatform.isLinux (enableFeature enableDeadCodeElimination "split-sections")
212 ++ lib.optionals haskellLib.isCrossHost (
212 ++ lib.optionals haskellLib.isCrossHost (
213 map (arg: "--hsc2hs-option=" + arg) (["--cross-compile"] ++ lib.optionals (stdenv.hostPlatform.isWindows) ["--via-asm"])
213 map (arg: "--hsc2hs-option=" + arg) (["--cross-compile"] ++ lib.optionals (stdenv.hostPlatform.isWindows) ["--via-asm"])