diff --git a/pkgs/development/haskell-modules/generic-builder.nix b/pkgs/development/haskell-modules/generic-builder.nix index d4d9bd019ad0..1804223d0a12 100644 --- a/pkgs/development/haskell-modules/generic-builder.nix +++ b/pkgs/development/haskell-modules/generic-builder.nix @@ -122,7 +122,8 @@ in doHaddockQuickjump ? doHoogle, doInstallIntermediates ? false, editedCabalFile ? null, - enableLibraryProfiling ? !stdenv.hostPlatform.isGhcjs, + # Cabal does not build the profiled dynamic objects required by wasm TH. + enableLibraryProfiling ? !stdenv.hostPlatform.isGhcjs && !stdenv.hostPlatform.isWasm, enableExecutableProfiling ? false, profilingDetail ? "exported-functions", # TODO enable shared libs for cross-compiling