1 Jul 2025 |
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 |
Alyssa Ross | It's evidently in use, or at least cared about | 15:41:21 |
dramforever | no i think that's just the meta.platforms being wrong | 15:41:53 |
dramforever | oh wait no it's doing cross compile in secret | 15:42:07 |
Alyssa Ross | yeah | 15:42:11 |
Alyssa Ross | it's horrible | 15:42:12 |
dramforever | but then that new rustPlatform should pick up the right platform | 15:42:22 |
dramforever | anyway the unsupported platform thing is just a meta issue i think | 15:42:59 |
emily | I have a ridiculous idea for the target spec things | 15:43:50 |
emily | what if we make a directory and put nixpkgs-{build,host,target}-platform.json symlinks to the rustcTargetSpec in there | 15:44:26 |
emily | then the derivation hashes don't get included in the names | 15:44:51 |