-
-
Notifications
You must be signed in to change notification settings - Fork 367
Add Nix package to new Zig compiler #8351
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
base: main
Are you sure you want to change the base?
Conversation
|
Looks like this is ziglang/zig#20976 |
|
|
75e79f1 to
c98171f
Compare
|
I believe the slow build was because Nix was spending a long time copying files it didn't need to, I've added the Nix |
bb139b6 to
40fe39b
Compare
d0617a4 to
66d0a49
Compare
|
@Hasnep can you check if we can add a workaround for ziglang/zig#20976 ? |
|
I was looking at that earlier today, I'll push my experiment in the next few days :) |
e4a06cd to
ce482c5
Compare
|
After some fiddling I've nearly got the build working, I'm getting these errors after about 10 minutes of building (I'll deal with the slowness once it's working 😅) |
|
Unfortunately, my Nix knowledge is middling and my Zig knowledge is non-existent, so I'll need help with this last bit. |
|
Thanks for the progress @Hasnep, I will take a look when I can. |
ce482c5 to
3c9d880
Compare
3c9d880 to
e227218
Compare
Is this the full output? |
No, you're right, here's the full output: nix build output |
|
Lmao, the zig's NativePaths.zig strikes again. I recommend building with I also see these errors: Which probably just means the frameworks aren't provided to the nix sandbox during macos build. |
e227218 to
33e73ba
Compare
This adds a Nix package for the new Zig based compiler to the Nix flake in
src/, it can be tested by runningnix run github:hasnep/roc/add-nix-packages-for-new-compiler?dir=srcThis will build the compiler package using Nix and run it.