-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Don't use crane for production #98
Comments
Yes, that's at least the plan in my head. The bigger challenge here is how to deal with the unstable toolchain that we require for the UEFI target. |
|
Or https://doc.rust-lang.org/cargo/reference/unstable.html#build-std? I think the problem is that we do not have UEFI core/std packaged in nixpkgs. |
This should be fixable with the next Rust release as the UEFI target has stabilized. |
For anyone asking: https://forge.rust-lang.org/ -- next release is supposed to be out in 2 days. :) |
NixOS/nixpkgs#220373 is here, we are still waiting for some upstream changes due to cargo changes on hashes. |
rustc 1.68.1 was landed in staging, the next staging cycle should start soon AFAIK. We will be able to start working on this. We have approximately 1.3-1.4 months to land all these changes. Bootspec should become enabled by default in ~7 days (modulo the necessary changes in nixpkgs) and not a feature preview anymore and will probably be part of NixOS 23.05 (I won't jinx it please). |
Now that Rust stable is there, you can see a PR linked here for moving to nixpkgs infrastructure. Unfortunately, it cannot be merged because cross compilation infrastructure is not yet ready for UEFI targets. There's work in progress in nixpkgs to get it. |
#148 will move to Rust stable. |
We have moved to Rust stable with #149. The problem is that we need something like NixOS/nixpkgs#226145 to remove our Crane dependency for "production". |
NixOS/nixpkgs#228374 is almost enough to get us there. |
Assuming that you don't actually need the wrappers for Lanzaboote, this would still work. |
crane builds each cargo dependency in multiple derivations. This adds over a 100 extra dependencies instead of one vendor directory. This usually slows things down quite a bite. For a release using nixpkgs tools is faster.
The text was updated successfully, but these errors were encountered: