Nix Rust | 683 Members | |
| Rust | 155 Servers |
| Sender | Message | Time |
|---|---|---|
| 11 Jul 2025 | ||
| i'm on aarch64-linux | 17:31:10 | |
| OK, that's encouraging, thanks. I just created a new NixOS VM, ran nix shell nixpkgs#{cargo,lldb,gcc,rustc,gdb} ran cargo init and replaced println in main.rs with panic, then did cargo build. | 17:32:03 | |
| So I shouldn't have any non-stock configuration? | 17:32:23 | |
| that sounds about right | 17:32:45 | |
then gdb target/debug/whatever-the-name-is | 17:33:08 | |
I used rust-gdb, I'll try gdb itself... | 17:33:23 | |
| Yeah, same result. | 17:33:58 | |
| that's so weird | 17:38:28 | |
| how recent is this nixpkgs of yours | 17:38:38 | |
| 17:52:23 | ||
| Good question...
| 17:54:06 | |
Are you on nixos-25.05 or unstable version before 2025-06-19 ?I assume it does not work on rustc 1.87+ because of https://github.com/rust-lang/rust/issues/140821 | 17:57:23 | |
Are you on nixos-25.05 or unstable version before 2025-06-19 ?I assume it does not work on rustc 1.87+ because of https://github.com/rust-lang/rust/issues/140821 rustc 1.86 (from nixos-25.05)rustc 1.87 (from nixos-unstable): | 18:02:23 | |
| Aha! As suggested Still that works well for my purposes. Thank you! | 18:02:36 | |
| ah, that must be it, i'm on a newer rustc but i forgot that the thing i was debugging was an older one | 18:10:18 | |
| * ah, that must be it, i'm on a newer rustc but i forgot that the thing i was debugging was compiled with an older one | 18:10:28 | |
| It looks like I just needed to use Thank you both! | 18:11:30 | |
| Oh, I was wrong about If we removed the Cargo.lock integrity check (where it checks if | 20:02:39 | |
| 12 Jul 2025 | ||
| Thanks for the explanation. | 06:50:06 | |
I wonder what's the use case for setting cargoDepsName explicitly then? Like, why would anyone need to set that when defining a package? | 12:56:37 | |
| I think we just forgot to remove it. idk | 12:57:07 | |
| gotcha | 12:57:31 | |
| 13 Jul 2025 | ||
| You can always try this thingy I made a few weeks ago https://github.com/RossSmyth/nur/tree/main/msvc-rust I need to put some more work into it probably. | 02:40:57 | |
| Some of the situation with Windows would be eased if nixpkgs switched to the ucrt as it is not quite as cursed | 02:41:41 | |
In reply to @rosssmyth:matrix.orgThis is just rustc. I don't see it uses and of the msvc libraries or linker. | 07:07:35 | |
| Right now, I'm still using the container as I don't have time for more side quests. I'm already on one. | 07:08:37 | |
| I had a similar thing set up with https://gitlab.com/K900/rust-cross-windows | 07:08:43 | |
| But again this only handles pure Rust | 07:09:14 | |
| You need to bring your own native deps built for MSVC | 07:09:23 | |
| And that's where the fun starts | 07:09:27 | |