Closed Kozaky closed 2 years ago
Judging from the first line, it's a cabal dependency issue that prevents Haskell.nix from generating a project. The template-haskell there refers to the actual template-haskell Haskell package, not this repo. Can you post the entire log and/or your cabal file?
The cabal file is the same one used in the repository. I changed the name of the project and now it seems it is working… I don’t know if it is related tho.
Thank you @jonascarpay
Ohhhhh, I get what's going on, the project itself was named template-haskell
, which caused a collission with the actual upsteam template-haskell
package, which this project's name is a pun on. Maybe I should add a check for that in the wizard.sh
script...
Yeah, that could be a good idea, since it is the actual name of your repo :D
Btw, I also noticed that even after configuring the binary cache, nix is building ghc and it takes quite a while. Do you know if there is any solution for this? As far as I know, the version used in this project should be cached for aarch64-darwin, but it does not seem to work
That's odd, maybe try bumping haskell.nix? Change the pin to a commit ideally a couple of days old, and see if that helps.
I am using the flake branch right now and even after running “nix flake update”, I still have to spend hours compiling the ghc, I think the problem is with the M1 architecture tho
Even an M1 can't compile GHC in a reasonable timeframe huh 🙃 you're probably right that its an architecture thing but regardless make sure you use a commit that's a couple of days old since its happened to me before that the most recent one isn't cached yet
I will give it a try. Thanks for your help, Jonas 😊
The OP issue here was addressed in 0e5a421f4dba7821aa0fe7444723e2d0d51054b8
When following the guide with the new Mac M1 I encountered the following error:
I have tried to update the commit for Haskell.nix but that does not seem to fix the problem. Any ideas?