Sender | Message | Time |
---|---|---|
30 Jun 2025 | ||
yo dpc (migrated to @dpc:dpc.pw) , if you're still active on this account - i'm trying to do some crane + maturin stuff and came across a 2 yr old reddit thread where you mentioned you've done some work with it. do you have any public code showing how it works? trying to shove a maturin build --offline into a craneLib.buildPackage is causing me to recompile things, and i can't get a nice deterministic name for the output wheel thru maturin. | 16:53:37 | |
18:18:16 | ||
When I update nixpkgs input in my flake.nix for a Rust package from 24.11 to 25.05 , I get a hash mismatch on cargoHash, although I didn't change anything in Cargo.lock . Is that typical? I.e., cargoHash depends not only on Cargo.lock, but also on nixpkgs? | 19:36:02 | |
In this case yes | 19:36:44 | |
The FOD format has changed | 19:36:48 | |
But it shouldn't ever happen again 🤞 | 19:37:28 | |
I see, thanks! | 19:38:15 | |
1 Jul 2025 | ||
zed-editor had a huge build time increase on darwin in the past month (roughly takes twice as long now, 1h on my local Macbook vs 30min before that, 2 hours on hydra vs 1 hour before that), and I wonder if disabling thin LTO (enabled by upstream) + increasing cargo codegen units (set to 1 by upstream) could be a viable improvement? it’s getting kind of tedious to review updates at this point, so any suggestions would be appreciated... | 07:58:14 | |
Linux build time also slightly increased, but only by about ten minutes on hydra, so that is still in an acceptable margin | 07:58:48 | |
these are the profiles currently set by upstream’s Cargo.toml: | 08:01:13 | |
(not sure where they use release-fast) | 08:01:20 | |
I think in general slow build times for improve runtime performance is what we want in Nixpkgs where people are mostly using Hydra binaries, but it would make sense for that to be standardised rather than following Cargo.toml for each package. | 08:02:33 | |
hm I see, I just wonder where the build time increase could be coming from, the release profiles seem to be unchanged in the past months, so that’s at least not the origin | 08:03:54 | |
You could consider overriding it for review and taking the risk on there not being divergence | 08:03:57 | |
In reply to @niklaskorz:matrix.orgRust update perhaps? If it's something unintended it could perhaps be discovered, reported and fixed. Is it bisectable? | 08:04:59 | |
I hoped to avoid bisecting because of the large build times, but maybe I can speed it up a bit by disabling the check phase 😄 (both buildPhase and checkPhase had an equal increase in build time, so that should suffice) | 08:06:57 | |
will do and report back | 08:07:01 | |
Well, if you have a Rust update in range, you could speculate that it's that and test that first rather than doing a whole Nixpkgs bisect | 08:09:23 | |
When I bisect I'm also scanning the commits in range to find likely causes, not always following the midpoint it gives me to test. | 08:09:59 | |
right, thanks! I’ll start with the Rust 1.86 -> 1.87 commit then | 08:11:22 | |
Idea smoke test: Problem: You probably don't understand what on earth the difference between
These are only different if you specify
As it stands today ~nobody gets it right. Nixpkgs docs lies about the file name of Idea: Proposal: Phase 1:
Phase 2:
See: https://github.com/NixOS/nixpkgs/pull/420797#pullrequestreview-2969405491 | 14:04:02 | |
We deliberately moved these out of rustPlatform and into lib.systems | 14:20:59 | |
And I broadly disagree that almost nobody gets it right | 14:23:27 | |
how about something that takes a pkgs , like emulator ? | 14:31:21 | |
That's a very bad pattern that completely defeats the purpose of lib. Absolutely not a precedent to build on | 14:32:08 | |
then we would need to make either users adapt if they want to support rust.platform , or some way to generate a directory without pkgs | 14:34:00 | |
Layering violation | 14:36:37 | |
The rust-hypervisor-firmware package is also doing something deeply wrong (reimporting Nixpkgs) and as a result hasn't worked for the majority of time it's been in Nixpkgs. It's not a good example of what we'd like to accommodate. The only reason it was done that way was that at the time our normal Rust compiler couldn't build for embedded targets due to an upstream bug that has since been fixed. | 14:36:38 | |
okay let's put aside rust-hypervisor-firmware for now, and focus on why i want to merge rustcTarget and cargoShortTarget | 14:41:29 | |
you say that you disagree that almost nobody gets it right? | 14:41:48 |