@@ -170,7 +170,7 @@ let
170 ++ lib.optional (deadCodeElimination && stdenv.hostPlatform.isLinux) "--enable-split-sections"
170 ++ lib.optional (deadCodeElimination && stdenv.hostPlatform.isLinux) "--enable-split-sections"
171 ++ lib.optional (static) "--enable-static"
171 ++ lib.optional (static) "--enable-static"
172 ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) (
172 ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) (
173− map (arg: "--hsc2hs-option=" + arg) ["--cross-compile" "--via-asm"]
173+ map (arg: "--hsc2hs-option=" + arg) (["--cross-compile"] ++ lib.optionals (stdenv.hostPlatform.isWindows) ["--via-asm"])
174 ++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}" )
174 ++ lib.optional (package.buildType == "Configure") "--configure-option=--host=${stdenv.hostPlatform.config}" )
175 ++ component.configureFlags
175 ++ component.configureFlags