Skip to content

Commit

Permalink
Merge pull request #196781 from 9999years/fix-ormolu-fourmolu-darwin-…
Browse files Browse the repository at this point in the history
…aarch64

ormolu/fourmolu: Fix build on aarch64-darwin
  • Loading branch information
maralorn committed Oct 19, 2022
2 parents 27e5ca4 + e0f2f2b commit ba90bab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/haskell-modules/configuration-darwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,15 @@ self: super: ({
# https://github.com/haskell-crypto/cryptonite/issues/360
cryptonite = appendPatch ./patches/cryptonite-remove-argon2.patch super.cryptonite;

# Build segfaults unless `fixity-th` is disabled.
# https://github.com/tweag/ormolu/issues/927
ormolu_0_5_0_1 = overrideCabal (drv: {
libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.file-embed ];
}) (disableCabalFlag "fixity-th" super.ormolu_0_5_0_1);
fourmolu_0_8_2_0 = overrideCabal (drv: {
libraryHaskellDepends = drv.libraryHaskellDepends ++ [ self.file-embed ];
}) (disableCabalFlag "fixity-th" super.fourmolu_0_8_2_0);

} // lib.optionalAttrs pkgs.stdenv.isx86_64 { # x86_64-darwin

# tests appear to be failing to link or something:
Expand Down

0 comments on commit ba90bab

Please sign in to comment.