-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Labels
Description
If I try to build clash-ghc
using Nix, clash-prelude
fails in the checkPhase
with unknown RTS option: -xm20000000
when trying to run doctests
and unittests
.
I'm using an M1 Macbook Pro.
If I do the following in nix/overlay.nix
the error goes away.
clash-prelude =
- hprev.callCabal2nixWithOptions
+ hprev.callCabal2nix
"clash-prelude"
../clash-prelude
- "--flag workaround-ghc-mmap-crash"
{ };
I've tried to override this using various Nix mechanisms (e.g. override
, overrideAttrs
, a custom overlay, pkgs.haskell.lib.dontCheck
) and while some of these work when building clash-prelude
in isolation, it doesn't help when building clash-ghc
for some reason that I don't understand.