cabal2nix icon indicating copy to clipboard operation
cabal2nix copied to clipboard

ormolu/fourmolu: workaround probable macOS linker bug

Open lf- opened this issue 3 years ago • 3 comments

https://github.com/tweag/ormolu/issues/927 is a bug where fourmolu/ormolu cannot build on macOS due to using TH to build some massive value, which then segfaults the linker.

It has a flag to Not Do That and instead embed the file, so this PR enables that flag.

lf- avatar Oct 13 '22 22:10 lf-

Enabling this flag would in theory make ormolu/fourmolu slightly slower, right?

I'd prefer not to do this in cabal2nix, but instead just add it to pkgs/development/haskell-modules/configuration-darwin.nix until the GHC bug (?) is fixed.

cdepillabout avatar Oct 14 '22 00:10 cdepillabout

Hmmm. I thought that was impossible since it would have to apply to hackage2nix to add dependencies as it needs to, but I think the dependency could be added by overrideCabal instead

lf- avatar Oct 14 '22 01:10 lf-

I'd prefer not to do this in cabal2nix, but instead just add it to pkgs/development/haskell-modules/configuration-darwin.nix until the GHC bug (?) is fixed.

Agreed.

sternenseemann avatar Oct 14 '22 08:10 sternenseemann

Thanks for the advice. It's been dealt with in nixpkgs.

lf- avatar Oct 20 '22 22:10 lf-