-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
made nix flake work for darwin #2902
Conversation
Closes #2734 |
flake.nix
Outdated
@@ -4,67 +4,83 @@ | |||
inputs = { | |||
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11"; | |||
nixpkgs-unstable = { url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; | |||
# zig = { url = "github:roarkanize/zig-overlay"; }; | |||
zig = { url = "github:roarkanize/zig-overlay"; }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zig in pkgs is broken for M1 macs.
flake.nix
Outdated
@@ -4,67 +4,83 @@ | |||
inputs = { | |||
nixpkgs.url = "github:nixos/nixpkgs/nixos-21.11"; | |||
nixpkgs-unstable = { url = "github:NixOS/nixpkgs/nixpkgs-unstable"; }; | |||
# zig = { url = "github:roarkanize/zig-overlay"; }; | |||
zig = { url = "github:roarkanize/zig-overlay"; }; | |||
flake-utils.url = "github:numtide/flake-utils"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flake-utils is used to support all "default systems" aarch64 darwin, x86 darwin, aarch64 linux...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great. General question. Should we deprecate shell.nix and force everyone to use flakes just to keep things simple? That way we don't have to deal with versioning twice.
Theoretically we can change shell.nix to this: target/lorri#460 (comment)
Sounds good 👍 I'd like to do that in a follow-up PR to keep them "atomic" if that's alright? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works well for me on M1! 🎉
Does this still work? I just tried and got
|
The latest macos nightlies are broken so you'll want to use the 01-17. I'm working on fixing them now. |
nice 👍, thanks for the prompt response! Running
Did you mean that I have to change something in the nix config file? Or that I have to wait for a fix in zig itself? |
Apolagies, for the 01-17 nightly I did not mean the commit but meant from the prebuilt tar.gz here. To be able to build from source again on macos 13, we are waiting on zig 10 to be available on nix. |
No description provided.