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
zig: 0.1.1 -> 0.2.0 #37352
zig: 0.1.1 -> 0.2.0 #37352
Conversation
Are you sure you don't want the llvm version overrides in all-packages.nix instead? |
That is, |
@GrahamcOfBorg build zig |
What's the difference? The information I can provide is that zig 0.2.0 works with exactly llvm 6 and no other version. I trust your judgement on how to communicate this information to nix. |
Failure on x86_64-darwin (full log) Attempted: zig Partial log (click to expand)
|
Putting it at top-level is tradition, for reasons I'm not sure I can claim to fully understand. Although it does make it easier to see this needs a special version and handle accordingly when doing things like updating default llvmPackages version :). Also makes overriding version used more natural, instead of "zig.override { llvmPackages_6 = llvmPackages_5; }" or something :). |
Failure on aarch64-linux (full log) Attempted: zig Partial log (click to expand)
|
Failure on x86_64-linux (full log) Attempted: zig Partial log (click to expand)
|
I updated this pull request to the recommended way of version locking. The build failure above seems to have timed out building GCC. I do not understand why that would be a unique requirement to building this package. |
Thanks for the update! Building this locally failed due to missing dep on libxml2, consider fixing along the lines of commit here: https://github.com/dtzWill/nixpkgs/commits/andrewrk-zig-0.2.0 Which at least fixes the build for me. Unfortunately staging is, well, a staging area and often doesn't have everything prebuilt. You're right that's unrelated to zig entirely :). Tried this with the tetris OpenGL example, and once I entered an appropriate nix-shell ( |
Thanks @dtzWill. I updated the PR with your suggestions. What does the |
It means it's a compile-time dependency, mostly important (and easiest to see why it matters) in the context of cross-compiling: here we want a cmake the builder can execute, not some cmake zig will link against. LGTM, thanks! |
Backported to 18.03 in 77c052d \o/. |
no testing done. sha256 computed with
nix-prefetch-url
.