| 8 Aug 2025 |
kjeremy | I have a cmake project that is also a cargo workspace. So there is a top-level Cargo.lock and multiple Cargo.toml files. How do I build? I'm using:
cargoDeps = rustPlatform.importCargoLock {
lockFile = "${src.outPath}/Cargo.lock";
};
but at some point nix still tries to download from crates.io and obviously fails
| 18:56:53 |
Alyssa Ross | Depends on what your CMake build system is doing | 18:57:23 |
kjeremy | It's nothing exciting: https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds/blob/main/CMakeLists.txt | 18:57:47 |
kjeremy | maybe i need to patch the cargo invocation | 19:14:19 |
kjeremy | I figured it out. I had to add rustPlatform.cargoSetupHook | 19:26:55 |
| 9 Aug 2025 |
| 0x545a joined the room. | 15:15:41 |
| theeasternfurry set a profile picture. | 15:54:54 |
| dmitrii_s joined the room. | 16:09:51 |
| 10 Aug 2025 |
theeasternfurry | oh thanks, I guess I know where to go | 00:42:45 |
| theeasternfurry joined the room. | 02:31:17 |
| yuzuki joined the room. | 09:12:09 |
| 11 Aug 2025 |
emily | Toma: is it expected that fetchCargoVendor is super slow or is something weird about my setup? | 13:46:41 |
Toma |
It is not that speed-optimized, but I don't think it should be that slow.
What do you mean by super slow? 1 crate / second?
| 13:50:14 |
emily | like waiting >15 minutes for a <2000 line Cargo.lock file to download | 13:53:14 |
emily | this is inside a Linux VM remote builder, so it is possible something is screwy there | 13:53:29 |
emily | just wanted to check if I should be surprised or not | 13:53:41 |