1 Jul 2025 |
dramforever | for example, target/${stdenv.hostPlatform.rust.rustcTargetSpec}/ vs target/${stdenv.hostPlatform.rust.cargoShortTarget}/ | 14:43:18 |
dramforever | * for example, target/${stdenv.hostPlatform.rust.rustcTarget}/ vs target/${stdenv.hostPlatform.rust.cargoShortTarget}/ | 14:43:27 |
Alyssa Ross | Well that one actually is already clearly documented | 14:43:37 |
dramforever | or even target/${stdenv.hostPlatform.rust.rustcTargetSpec}/ | 14:43:40 |
Alyssa Ross | So 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 | wait, i don't understand what rustcTarget is then | 14:46:40 |
Alyssa Ross | Away from computer for a moment but it's very rare for rustcTarget to be the right thing. | 14:53:49 |
Alyssa Ross | I think "--set=target.${stdenv.hostPlatform.rust.rustcTarget}" would be a correct use of rustcTarget | 15:12:43 |
Alyssa Ross | in rustc.nix | 15:12:51 |
Alyssa Ross | But I'm getting more confused the more I look at it | 15:14:33 |
Alyssa Ross | I would like to understand what the process of configuring the rustc build for a custom target looks like | 15:16:20 |
Alyssa Ross | and I'm also now less certain than I was that they couldn't be unified | 15:16:51 |
emily | perfect time to hack on custom JSON targets for Nixpkgs | 15:17:01 |
Alyssa Ross | Oh yes please | 15:17:22 |
emily | no no I meant you | 15:17:40 |
dramforever | i just wanted to enable frame pointers for rust | 15:27:39 |
Alyssa Ross | you can do that though? | 15:28:33 |
Alyssa Ross | that's totally orthogonal to this | 15:28:36 |
dramforever | yes, i can do that, i meant that as more of a "and now i'm down this rabbit hole" | 15:29:27 |
Alyssa Ross | ah, right :) | 15:31:04 |
dramforever | especially if we're sure that r-h-f can just be broken sometimes | 15:31:44 |
dramforever | wait, if i drop the lib change in https://github.com/NixOS/nixpkgs/pull/420797, we're left with an eval error on rust-hypervisor-firmware | 15:33:53 |
dramforever | is that okay? | 15:33:55 |
Alyssa Ross | It's almost always broken | 15:33:57 |
Alyssa Ross | In fact it seems like it's already broken | 15:34:30 |
Alyssa Ross | So you're just changing which eval error it produces? | 15:34:40 |
dramforever | lol | 15:35:08 |
Alyssa Ross | Really I don't know why this package still exists | 15:35:22 |
Alyssa Ross | I wonder when it last evaluated | 15:35:30 |
dramforever | wait, but then everyone else using rust.platform is also broken | 15:35:41 |