-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nix build
fails on components which use ghc plugins
#2096
Comments
It looks like haskell.nix fails running
The I'm not sure if we can fix this in haskell.nix or if it needs to be addressed in
|
Hmm. Both of those workarounds are incredibly unappealing, but the former can probably be automated by |
Unfortunately haskell.nix does not interact with the It is interesting that |
I'm pretty sure |
It specifies a minimum version :) |
Also, I just remembered; this used to work. I had my CI set up such that it would run various flake outputs. Now it doesn't. |
It looks like the behaviour of This is easy to verify with:
@hsyl20 does |
@hamishmack It looks like it's the effect of https://gitlab.haskell.org/ghc/ghc/-/commit/18a7d03d46706d2217235d26a72e6f1e82c62192#519f43ef6302b87fec67179ff5343fb9706e9748_261_266 If it breaks |
@andreabedini You might be interested in this |
I opened haskell/cabal#9384, let's see what the CI says. |
* Cabal fix for ghc-options -fplugin in ghc >=9.6.3 Include haskell/cabal#9384 to fix #2096 * Add test * Patch does not work for GHC head and should not be needed soon * Disable broken test * ifdLevel 1 * ifdLevel 2 * ifdLevel 3 * ifdLevel 1 * ifdLevel 2 * ifdLevel 3 * Disable test for ghc that polysemy does not support * More cases where plugin test is broken * More cases where plugin test is broken * Add missing haskellLib arg
Is it possible this fix does not work for GHC 9.8? I'm seeing a build failure similar to the one described, and I'm using a much more recent version of haskell.nix (#0dafd67f2e18e76d413cb2fbd0c01d0d028583f3) |
While trying to build any of my libraries (or any packages which depend on those libraries) which use GHC plugins, I get the following error:
I obviously have it in the
build-depends
in the cabal file. The .cabal file looks like this:If I enter a shell with
nix develop
, and thencabal build
, it compiles just fine.Haskell.nix version: 66191df
GHC version(s): 9.6.2, 9.6.3
NixOS, x86_64-linux
The text was updated successfully, but these errors were encountered: