| 15 Nov 2025 |
dramforever | how bad would it be if we remove the lib.optionalString (rustTargetPlatform != rustHostPlatform) condition | 17:13:58 |
Grimmauld (any/all) | in what file? | 17:14:13 |
dramforever | the file you linke | 17:14:23 |
dramforever | * the file you linked | 17:14:25 |
dramforever | last section | 17:14:27 |
Grimmauld (any/all) | right | 17:14:35 |
dramforever | * last part in highlight section | 17:14:36 |
Grimmauld (any/all) | let me try! | 17:14:38 |
dramforever | this just causes the same problem in the other direction right | 17:14:59 |
Grimmauld (any/all) | we'll see! | 17:16:46 |
Grimmauld (any/all) | i mean i did already find a couple fun packaging bugs | 17:17:12 |
Grimmauld (any/all) | like qt6 completely exploding on a cross setup where the host platform can be executed from the build platform | 17:17:34 |
Grimmauld (any/all) | that one is super broken | 17:17:39 |
Grimmauld (any/all) | and networkmanager using broken linker scripts | 17:17:50 |
Grimmauld (any/all) | anyways, i'll be here a while until i get to alacritty | 17:18:11 |
Grimmauld (any/all) |  Download image.png | 17:18:12 |
Grimmauld (any/all) | diff --git a/pkgs/build-support/rust/lib/default.nix b/pkgs/build-support/rust/lib/default.nix
index e492d03e3026..a5769e761294 100644
--- a/pkgs/build-support/rust/lib/default.nix
+++ b/pkgs/build-support/rust/lib/default.nix
@@ -74,7 +74,7 @@
# pkgsTargetTarget.stdenv.cc is often simply wrong. We must omit
# the following lines when rustTargetPlatform collides with
# rustHostPlatform.
- + lib.optionalString (rustTargetPlatform != rustHostPlatform) ''
+ + lib.optionalString (stdenv.hostPlatform != stdenv.targetPlatform) ''
"CC_${stdenv.targetPlatform.rust.cargoEnvVarTarget}=${ccForTarget}" \
"CXX_${stdenv.targetPlatform.rust.cargoEnvVarTarget}=${cxxForTarget}" \
"CARGO_TARGET_${stdenv.targetPlatform.rust.cargoEnvVarTarget}_LINKER=${ccForTarget}" \
This does seem to link alright, at least for the packages i have. It got past alacritty. | 18:30:23 |
Grimmauld (any/all) | yes yes, cursed cross stuff, and checking target platform is bad because it potentially kills cache. But i am building everything from source anyways so shucks | 18:32:22 |
Grimmauld (any/all) | now one more qt rebuild and i might have an llvm system | 18:33:03 |
Puna | (!(lib.systems.equals stdenv.hostPlatform stdenv.targetPlatform)) | 18:33:49 |
Grimmauld (any/all) | yes, yes, but doesn't make a difference in my case | 18:45:31 |
dramforever | so you can tell it's wrong, right | 18:48:03 |
dramforever | because in this case cargoEnvVarTarget for host == cargoEnvVarTarget for target | 18:48:17 |
dramforever | so you're overwriting the earlier env vars | 18:50:55 |
dramforever | also checking target in the rust hook is expected | 18:51:30 |
Grimmauld (any/all) | its alive! | 18:56:46 |
Grimmauld (any/all) |  Download image.png | 18:56:47 |
Grimmauld (any/all) | https://git.grimmauld.de/Grimmauld/grimm-musl/commit/03601e680f29c41cb45991d6093520605cb8123e
there is some crimes in there... | 19:05:26 |
Grimmauld (any/all) | and probably not all of the things i have in there / have tried are needed | 19:05:45 |
Grimmauld (any/all) | but, it is musl llvm nixos | 19:05:51 |