!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

702 Members
Rust161 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
8 Aug 2025
@kjeremy:matrix.orgkjeremy

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
@qyliss:fairydust.spaceAlyssa RossDepends on what your CMake build system is doing18:57:23
@kjeremy:matrix.orgkjeremyIt's nothing exciting: https://github.com/eclipse-zenoh/zenoh-plugin-ros2dds/blob/main/CMakeLists.txt18:57:47
@kjeremy:matrix.orgkjeremy maybe i need to patch the cargo invocation 19:14:19
@kjeremy:matrix.orgkjeremy I figured it out. I had to add rustPlatform.cargoSetupHook 19:26:55
9 Aug 2025
@0x545a:matrix.org0x545a joined the room.15:15:41
@theeasternfurry:beautifulblossomgarden.io.vntheeasternfurry set a profile picture.15:54:54
@dmitrii_s:matrix.orgdmitrii_s joined the room.16:09:51
10 Aug 2025
@theeasternfurry:beautifulblossomgarden.io.vntheeasternfurryoh thanks, I guess I know where to go00:42:45
@theeasternfurry:beautifulblossomgarden.io.vntheeasternfurry joined the room.02:31:17
@yuzuki:matrix.kikuri.moeyuzuki joined the room.09:12:09
11 Aug 2025
@emilazy:matrix.orgemily Toma: is it expected that fetchCargoVendor is super slow or is something weird about my setup? 13:46:41
@tomasajt:matrix.orgToma 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
@emilazy:matrix.orgemilylike waiting >15 minutes for a <2000 line Cargo.lock file to download13:53:14
@emilazy:matrix.orgemilythis is inside a Linux VM remote builder, so it is possible something is screwy there13:53:29
@emilazy:matrix.orgemilyjust wanted to check if I should be surprised or not13:53:41

Show newer messages


Back to Room ListRoom Version: 6