!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

586 Members
Rust129 Servers

Load older messages


SenderMessageTime
1 Jul 2025
@emilazy:matrix.orgemily do we need to support rust.platform 15:38:58
@emilazy:matrix.orgemily people can just manually rustcTargetSpec 15:39:03
@dramforever:matrix.orgdramforever

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:matrix.orgdramforever *

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
@emilazy:matrix.orgemilyanyway I believe you can actually make a directory in pure Nix15:39:35
@emilazy:matrix.orgemilyby doing awful NAR unpacking hacks or something15:39:38
@dramforever:matrix.orgdramforeveroh god15:39:48
@qyliss:fairydust.spaceAlyssa RossOkay 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-263773905315:40:21
@emilazy:matrix.orgemily…I'd call that broken15:41:01
@qyliss:fairydust.spaceAlyssa RossIt's evidently in use, or at least cared about15:41:21
@dramforever:matrix.orgdramforeverno i think that's just the meta.platforms being wrong15:41:53
@dramforever:matrix.orgdramforeveroh wait no it's doing cross compile in secret15:42:07
@qyliss:fairydust.spaceAlyssa Rossyeah15:42:11
@qyliss:fairydust.spaceAlyssa Rossit's horrible15:42:12
@dramforever:matrix.orgdramforeverbut then that new rustPlatform should pick up the right platform15:42:22
@dramforever:matrix.orgdramforeveranyway the unsupported platform thing is just a meta issue i think15:42:59
@emilazy:matrix.orgemilyI have a ridiculous idea for the target spec things15:43:50
@emilazy:matrix.orgemily what if we make a directory and put nixpkgs-{build,host,target}-platform.json symlinks to the rustcTargetSpec in there 15:44:26
@emilazy:matrix.orgemilythen the derivation hashes don't get included in the names15:44:51
@dramforever:matrix.orgdramforeveryou mean like in prePhases?15:45:21
@dramforever:matrix.orgdramforeverwait how do we find the file then15:50:03
@dramforever:matrix.orgdramforeverdoes rustc have a TARGET_SPEC_DIR or something15:50:47
@dramforever:matrix.orgdramforeveryou know what, nevermind, i'm not actually blocked on r-h-f15:59:26
@dramforever:matrix.orgdramforever i don't have the string with context problem if i use rust.framepointers 15:59:48
@dramforever:matrix.orgdramforever * i don't have the string with context problem if i use rust.frame-pointers 16:02:24
@tomasajt:matrix.orgToma

I have opened https://github.com/NixOS/nixpkgs/pull/421558
But I think this is not the way to go, at least not yet.

I don't want to imagine the merge issues with having made a change in 2000 packages, all of them near often-changing hash values and having them be only in staging but not master.

I think we should first have a staging cycle where the useFetchCargoVendor = true is made an actual NOOP (we filter it out from the attrs passed down to mkDerivation)
After that, we can do the same thing as my PR above, only targeting master directly and have no rebuilds

Any better ideas?

17:31:48
@tomasajt:matrix.orgTomaI'd also imagine a similar process for release-25.05, but I guess the merge issues are less severe there17:32:46
@emilazy:matrix.orgemilyoh god, it gets passed down still?17:32:48
@emilazy:matrix.orgemily yes, let's do the staging thing then 17:33:04
@emilazy:matrix.orgemilyand certainly let's backport to 25.0517:33:09

Show newer messages


Back to Room ListRoom Version: 6