Skip to content

Commit ec38417

Browse files
committed
fix(nix): Disable building fourmolu on aarch64-darwin for now
1 parent faa48db commit ec38417

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

flake.nix

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,18 @@
186186
# for the target.
187187
shell.buildInputs = with nixpkgs.pkgsBuildBuild; [
188188
gitAndTools.git
189-
fourmolu
190189
hlint
191190
] ++ lib.optionals (config.compiler-nix-name == "ghc8107") [
192191
# Weeder requires the GHC version to match HIE files
193192
weeder
193+
] ++ lib.optionals (system != "aarch64-darwin") [
194+
# TODO: Fourmolu 0.10 is currently failing to build with aarch64-darwin
195+
#
196+
# Linking dist/build/fourmolu/fourmolu ...
197+
# ld: line 269: 2352 Segmentation fault ...
198+
# clang-11: error: linker command failed with exit code 139 (use -v to see invocation)
199+
# `cc' failed in phase `Linker'. (Exit code: 139)
200+
fourmolu
194201
];
195202
shell.withHoogle = true;
196203
shell.crossPlatforms = _: [];

0 commit comments

Comments
 (0)