!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

592 Members
Rust132 Servers

Load older messages


SenderMessageTime
11 Jul 2025
@cpick:matrix.orgcpickYeah, same result.17:33:58
@dramforever:matrix.orgdramforeverthat's so weird17:38:28
@dramforever:matrix.orgdramforeverhow recent is this nixpkgs of yours17:38:38
@jose:storopoli.comJose Storopoli joined the room.17:52:23
@cpick:matrix.orgcpick

Good question...
I think this is it?

$ readlink -f /nix/var/nix/profiles/per-user/root/channels
/nix/store/in3n7rsk9rkhdfzsba2kfl1hzv13xbn3-nixos-25.11.20250708.9b008d6
17:54:06
@9hp71n:matrix.orgghpzin 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
@9hp71n:matrix.orgghpzin 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)
(gdb) b rust_panic
Breakpoint 1 at 0x30ff4
rustc 1.87 (from nixos-unstable):
(gdb) b rust_panic
Function "rust_panic" not defined.
18:02:23
@cpick:matrix.orgcpick

Aha! As suggested
rbreak rust_panic worked for me in gdb (no joy with the suggested b s -r rust_panic in lldb, though).

Still that works well for my purposes. Thank you!

18:02:36
@dramforever:matrix.orgdramforeverah, that must be it, i'm on a newer rustc but i forgot that the thing i was debugging was an older one18:10:18
@dramforever:matrix.orgdramforever* 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 one18:10:28
@cpick:matrix.orgcpick

It looks like I just needed to use br s -r rust_panic (not b) in lldb and that works just fine.

Thank you both!

18:11:30
@tomasajt:matrix.orgToma

Oh, I was wrong about cargoDepsName not being used, I just misremembered. The important thing is: it no longer affects the hash. The old fetchCargoTarball implementation generated a tarball that had a directory name inside it dependent on the name of the package.
Now, with fetchCargoVendor, we no longer care about the names, the only thing that matters now is the exact contents of the Cargo.lock file: if anything changes in it, the hash will have to be regenerated.
This is because the Cargo.lock is copied into the FOD for later validation.
So, because the Cargo.lock file usually contains the version of the package, even if no deps were changed, the changed version value would lead to a new hash.

If we removed the Cargo.lock integrity check (where it checks if cargoDeps's Cargo.lock and src's Cargo.lock match), we'd no longer have to copy Cargo.lock into our FOD, so we'd only get a new hash if the dependency list changed.
This is not worth it compared to the integrity check, which is pretty important.

20:02:39
12 Jul 2025
@setthemfree:matrix.orgundltd Thanks for the explanation. 06:50:06
@setthemfree:matrix.orgundltd 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
@tomasajt:matrix.orgTomaI think we just forgot to remove it. idk12:57:07
@setthemfree:matrix.orgundltdgotcha12:57:31
13 Jul 2025
@rosssmyth:matrix.orgrosssmythYou 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
@rosssmyth:matrix.orgrosssmythSome of the situation with Windows would be eased if nixpkgs switched to the ucrt as it is not quite as cursed02:41:41
@andrew15_5:matrix.orgAndrew
In reply to @rosssmyth:matrix.org
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.
This is just rustc. I don't see it uses and of the msvc libraries or linker.
07:07:35
@andrew15_5:matrix.orgAndrewRight 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
@k900:0upti.meK900I had a similar thing set up with https://gitlab.com/K900/rust-cross-windows07:08:43
@k900:0upti.meK900But again this only handles pure Rust07:09:14
@k900:0upti.meK900You need to bring your own native deps built for MSVC07:09:23
@k900:0upti.meK900And that's where the fun starts07:09:27
@k900:0upti.meK900Or ends, depending on your definition of fun07:09:39
@k900:0upti.meK900 @rosssmyth you may be interested for your own stuff though 07:10:13
@k900:0upti.meK900It's significantly less janky07:10:17
@k900:0upti.meK900At least at a glance07:10:23
@andrew15_5:matrix.orgAndrew I just added slightly patched dx, and dependences: pkg-config, python3, nsis, libssl-dev. The image is 5.8 GiB though... I mount my cargo registry and project dir, which helps. The quick rebundle takes about 40 seconds. 07:12:05
@andrew15_5:matrix.orgAndrew
In reply to @k900:0upti.me
But again this only handles pure Rust
Well, it has xwin, winsdk and the toolchain. The only thing missing from container is wine, I guess.
07:16:30

Show newer messages


Back to Room ListRoom Version: 6