!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

675 Members
Rust153 Servers

Load older messages


SenderMessageTime
1 Jul 2025
@qyliss:fairydust.spaceAlyssa RossAnd I broadly disagree that almost nobody gets it right14:23:27
@dramforever:matrix.orgdramforever how about something that takes a pkgs, like emulator? 14:31:21
@qyliss:fairydust.spaceAlyssa Ross That's a very bad pattern that completely defeats the purpose of lib. Absolutely not a precedent to build on 14:32:08
@dramforever:matrix.orgdramforever then we would need to make either users adapt if they want to support rust.platform, or some way to generate a directory without pkgs 14:34:00
@qyliss:fairydust.spaceAlyssa RossLayering violation14:36:37
@qyliss:fairydust.spaceAlyssa RossThe rust-hypervisor-firmware package is also doing something deeply wrong (reimporting Nixpkgs) and as a result hasn't worked for the majority of time it's been in Nixpkgs. It's not a good example of what we'd like to accommodate. The only reason it was done that way was that at the time our normal Rust compiler couldn't build for embedded targets due to an upstream bug that has since been fixed.14:36:38
@dramforever:matrix.orgdramforever okay let's put aside rust-hypervisor-firmware for now, and focus on why i want to merge rustcTarget and cargoShortTarget 14:41:29
@dramforever:matrix.orgdramforeveryou say that you disagree that almost nobody gets it right?14:41:48
@dramforever:matrix.orgdramforevermaybe i was being hyperbolic but from what i read it seems random on which one users end up going for14:42:36
@niklaskorz:matrix.orgniklaskorz
In reply to @niklaskorz:matrix.org
right, thanks! I’ll start with the Rust 1.86 -> 1.87 commit then
fyi I can't reproduce the long build durations anymore now and I didn't know hydra build durations vary a lot in general, I'll just blame the current heat wave and thermal throttling 🫠
14:43:05
@qyliss:fairydust.spaceAlyssa RossThen let's fix the packages using the wrong one that people might copy and paste from, and improve the documentation to lead people to the right one.14:43:17
@dramforever:matrix.orgdramforever for example, target/${stdenv.hostPlatform.rust.rustcTargetSpec}/ vs target/${stdenv.hostPlatform.rust.cargoShortTarget}/ 14:43:18
@dramforever:matrix.orgdramforever * for example, target/${stdenv.hostPlatform.rust.rustcTarget}/ vs target/${stdenv.hostPlatform.rust.cargoShortTarget}/ 14:43:27
@qyliss:fairydust.spaceAlyssa RossWell that one actually is already clearly documented14:43:37
@dramforever:matrix.orgdramforever or even target/${stdenv.hostPlatform.rust.rustcTargetSpec}/ 14:43:40
@qyliss:fairydust.spaceAlyssa RossSo not sure we can do too much about that. I don't think we can merge them because they're fundamentally different things.14:43:55
@dramforever:matrix.orgdramforever wait, i don't understand what rustcTarget is then 14:46:40
@qyliss:fairydust.spaceAlyssa RossAway from computer for a moment but it's very rare for rustcTarget to be the right thing.14:53:49
@qyliss:fairydust.spaceAlyssa Ross I think "--set=target.${stdenv.hostPlatform.rust.rustcTarget}" would be a correct use of rustcTarget 15:12:43
@qyliss:fairydust.spaceAlyssa Rossin rustc.nix15:12:51
@qyliss:fairydust.spaceAlyssa RossBut I'm getting more confused the more I look at it15:14:33
@qyliss:fairydust.spaceAlyssa RossI would like to understand what the process of configuring the rustc build for a custom target looks like15:16:20
@qyliss:fairydust.spaceAlyssa Rossand I'm also now less certain than I was that they couldn't be unified15:16:51
@emilazy:matrix.orgemilyperfect time to hack on custom JSON targets for Nixpkgs15:17:01
@qyliss:fairydust.spaceAlyssa RossOh yes please15:17:22
@emilazy:matrix.orgemilyno no I meant you15:17:40
@dramforever:matrix.orgdramforeveri just wanted to enable frame pointers for rust15:27:39
@qyliss:fairydust.spaceAlyssa Rossyou can do that though?15:28:33
@qyliss:fairydust.spaceAlyssa Rossthat's totally orthogonal to this15:28:36
@dramforever:matrix.orgdramforeveryes, i can do that, i meant that as more of a "and now i'm down this rabbit hole"15:29:27

Show newer messages


Back to Room ListRoom Version: 6