Skip to content

Commit a235ec9

Browse files
authored
Fix fourmolu with -f-fixity-th in nix env (#3400)
* fix fourmolu with -f-fixity-th in nix env * added a small comment and link to the issue.
1 parent 5a17d18 commit a235ec9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

flake.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,12 @@
129129
then overrideCabal hsuper.ormolu (_: { enableSeparateBinOutput = false; })
130130
else hsuper.ormolu;
131131

132-
fourmolu = hself.callCabal2nix "fourmolu" inputs.fourmolu {};
132+
# Due to the following issue, fixity-th should be disabled, especially for darwin.
133+
# https://github.com/fourmolu/fourmolu/issues/238
134+
fourmolu =
135+
addBuildDepend
136+
(appendConfigureFlag (hself.callCabal2nix "fourmolu" inputs.fourmolu {}) "-f-fixity-th")
137+
hself.file-embed;
133138
};
134139

135140
hlsSources =

0 commit comments

Comments
 (0)