Nix Rust | 707 Members | |
| Rust | 163 Servers |
| Sender | Message | Time |
|---|---|---|
| 21 Jul 2025 | ||
| 09:29:07 | ||
| 22 Jul 2025 | ||
| 06:11:48 | ||
| 18:27:45 | ||
| 23 Jul 2025 | ||
| 02:11:18 | ||
In reply to @glepage:matrix.orgOpened a PR with a fix: https://github.com/NixOS/nixpkgs/pull/427702 | 15:46:30 | |
| I think we can agree that fetchCargoVendor being a two step construction is not very good for the cache. Now I think I came up with a pretty clever workaround, which keeps the two layers, but makes the non-FOD layer essentially just an empty derivation except a binary that you can run to start the unpacking process. Though, this would make it so that we can't "easily" get derivation with the vendored dependencies unpacked from the tarball. (Also, I put in a symlink into the non-FOD part for vendorStaging for easier access) I made a very rudimentary POC: https://github.com/NixOS/nixpkgs/pull/427815 Note: I did not take into consideration cross/splicing What do you all think? | 17:45:49 | |
| "a dependency on fetch-cargo-vendor-util for every rust package" doesn't seem like an issue, does it? | 17:47:21 | |
| 17:47:31 | |
| * >90% of Rust packages will already have that dependency and it's just a lightweight Python script, yeah? | 17:47:36 | |
| I worry about inf-rec since the fetch-cargo-vendor-util depends on cargo, which depends on cargoSetupHook IIRC. I havr not tried it though | 17:50:46 | |