Skip to content

Commit d7e4744

Browse files
committed
Fix missing ffi.h
1 parent 59ea1d4 commit d7e4744

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

compiler/ghc/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,9 @@ haskell-nix.haskellLib.makeCompilerDeps (stdenv.mkDerivation (rec {
609609
buildInputs = [ perl bash ] ++ (libDeps hostPlatform);
610610

611611
depsTargetTarget = lib.optionals (!targetPlatform.isGhcjs) (map lib.getDev (libDeps targetPlatform));
612-
depsTargetTargetPropagated = lib.optionals (!targetPlatform.isGhcjs) (map (lib.getOutput "out") (libDeps targetPlatform));
612+
depsTargetTargetPropagated = lib.optionals (!targetPlatform.isGhcjs) (map (lib.getOutput "out") (libDeps targetPlatform))
613+
# Needs to be propagated for `ffi.h`
614+
++ lib.optional targetPlatform.isWasm (lib.getDev targetLibffi);
613615

614616
# required, because otherwise all symbols from HSffi.o are stripped, and
615617
# that in turn causes GHCi to abort

0 commit comments

Comments
 (0)