Skip to content

Commit 4f5e528

Browse files
committed
Fix postPatch
1 parent c52b541 commit 4f5e528

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

compiler/ghc/default.nix

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
589589
configurePlatforms = [ "build" "host" ] ++ lib.optional (!targetPlatform.isGhcjs) "target";
590590

591591
enableParallelBuilding = true;
592-
postPatch = lib.optional (targetPlatform.isWasm) ''
592+
postPatch = lib.optionalString (targetPlatform.isWasm) ''
593593
substituteInPlace utils/jsffi/dyld.mjs \
594594
--replace-fail \
595595
"node --disable-warning=ExperimentalWarning --experimental-wasm-type-reflection --no-turbo-fast-api-calls --wasm-lazy-validation" \
@@ -602,7 +602,9 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
602602
"$@"
603603
''
604604
}"
605-
'' + "patchShebangs .";
605+
'' + ''
606+
patchShebangs .
607+
'';
606608

607609
outputs = [ "out" "doc" "generated" ];
608610

0 commit comments

Comments
 (0)