| 1 Jul 2025 |
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 |
Alyssa Ross | and always has been, or? | 15:35:55 |
dramforever | newly, unless i put the unsafeDiscardStringContext in | 15:36:17 |
Alyssa Ross | oh | 15:36:38 |
dramforever | oh then it's just broken but more subtly | 15:36:38 |
Alyssa Ross | broken how? | 15:36:43 |
emily | I really think it's a good idea to avoid those filenames including a derivation hash. | 15:37:22 |
emily | Nix just does not handle that well. | 15:37:27 |
emily | if we want to avoid people assuming it matches the triple, then add a tricked-you- prefix or something | 15:37:39 |
dramforever | can you do that in lib? | 15:37:56 |
Alyssa Ross | yeah that's the problem | 15:38:08 |
dramforever | okay it might not be broken for native comp | 15:38:49 |
emily | do we need to support rust.platform | 15:38:58 |
emily | people can just manually rustcTargetSpec | 15:39:03 |
dramforever | buf for fastCross this can't be right... right?
mkdir -p build/${stdenv.hostPlatform.rust.rustcTargetSpec}/stage0-{std,rustc}/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/
```
| 15:39:20 |
dramforever | * buf for fastCross this can't be right... right?
mkdir -p build/${stdenv.hostPlatform.rust.rustcTargetSpec}/stage0-{std,rustc}/${stdenv.hostPlatform.rust.rustcTargetSpec}/release/
| 15:39:25 |
emily | anyway I believe you can actually make a directory in pure Nix | 15:39:35 |
emily | by doing awful NAR unpacking hacks or something | 15:39:38 |
dramforever | oh god | 15:39:48 |
Alyssa Ross | Okay rust-hypervisor-firmware may not actually be broken. Apparently it's expected to build it without cross compiling explicitly, and you have to allow unsupported systems: https://github.com/NixOS/nixpkgs/pull/378694#issuecomment-2637739053 | 15:40:21 |
emily | …I'd call that broken | 15:41:01 |