-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make it work for macOS #6
Comments
Hey @kutyel, since the safe-coloured-text input wasn't necessary, I've taken it out. Could you please attempt to build the project on a Mac? |
error: Package ‘ghc-7.0.4-binary’ in /nix/store/hx9hsnvb3337ibh85qz1l06phb5yhj22-source/pkgs/development/compilers/ghc/7.0.4-binary.nix:22 is not supported on ‘aarch64-apple-darwin’, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
The file /index.html does not exist. |
It looks like those ghc binary packages aren't available for aarch64-apple-darwin systems (https://github.com/NixOS/nixpkgs/blob/0374fa23f67bc51a0374b8e3305913cbef624fc1/pkgs/development/compilers/ghc/8.6.5-binary.nix#L51-L82). I've replaced them in the latest commit. Give it another shot, could you? Thanks again! |
unfortunately the same error 😢 error: Package ‘ghc-7.0.4’ in /nix/store/hx9hsnvb3337ibh85qz1l06phb5yhj22-source/pkgs/development/compilers/ghc/7.0.4.nix:57 is not supported on ‘aarch64-apple-darwin’, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowBroken = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
The file /index.html does not exist. |
The oldest ghc package that mentions aarch64-darwin is ghc-8.10.7 . I guess we cannot build older versions on a new Mac. Since we need the ghc releases just to get the supported languages, you can download this tgz, which contains a txt with the supported languages for each release, unpack it and execute
|
I tried running
open $(nix build --print-out-paths)/index.html
and I got the following:Since Nix is great for cross platform stuff I would really like to be able to use this app from macOS 🙏🏻
The text was updated successfully, but these errors were encountered: