-
Notifications
You must be signed in to change notification settings - Fork 79
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
Package ghc-8.10.4 not supported on aarch64-darwin #336
Comments
After further investigation, it looks like this would require unstable nix packages. |
See also the discussion here, looks like there are some issues still: #332 |
My colleague @BrianHicks found the following workaround: diff --git a/shell.nix b/shell.nix
--- a/shell.nix
+++ b/shell.nix
let
sources = import nix/sources.nix { };
- pkgs = import sources.nixpkgs { };
+ pkgs = import sources.nixpkgs {
+ system = if builtins.currentSystem == "aarch64-darwin" then
+ "x86_64-darwin"
+ else
+ builtins.currentSystem;
+ };
inputs = with pkgs; [
# meta-tools
- (import sources.niv { }).niv
+ (pkgs.callPackage sources.niv { }).niv
]; This is not an airtight solution and may introduce some other problems, but I'm posting it here in case it can help anyone. |
Ah, looks like you're piggy backing on rosetta then? Arguably the |
I'd like to, but I am both a nix beginner and short on spare time. |
Regarding potential problems using the workaround, this fixed it for me:
|
For any future readers; I ran into more problems with this approach down the road, so instead I forked niv to make it use unstable packages, which fixed my issues. |
Thanks! I've created a PR to bump nixpkgs to the latest master. Would you mind giving it a try? |
Fixed in #339 |
Thanks @nmattia ❤️ |
Trying to install master with:
Results in:
Updating to at least ghc-8.10.6 should fix this issue.
I did not see a ghc version defined in the code anywhere, so I was unable to fix the issue myself.
The text was updated successfully, but these errors were encountered: