!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

684 Members
Rust159 Servers

Load older messages


SenderMessageTime
29 Mar 2026
@pyrox:pyrox.devdish [Fox/It/She] https://github.com/NixOS/nixpkgs/blob/46db2e09e1d3f113a13c0d7b81e2f221c63b8ce9/pkgs/development/compilers/rust/rustc.nix#L39 19:40:45
@whispers:catgirl.cloudwhispers [& it/fae]we don't want to do that, that phase is what builds rustc. doing a stage 2 build (theoretically) gives us the best binary for building everything else with19:41:40
@whispers:catgirl.cloudwhispers [& it/fae]and is the "intended" way for rustc to be distributed19:41:57
@whispers:catgirl.cloudwhispers [& it/fae] * 19:42:24
@pyrox:pyrox.devdish [Fox/It/She]yeah fair19:42:40
@whispers:catgirl.cloudwhispers [& it/fae] i did notice some weird build steps, like that build logs say "Building stage2 compiler artifacts" with the same information two or three times, but i don't know if that's because the logging is lacking or something else. (that's not unique to this, you can see the same logs on hydra) 19:44:07
@whispers:catgirl.cloudwhispers [& it/fae] * i did notice some weird build steps, like that build logs say "Building stage2 compiler artifacts" with the same information two or three times, but i don't know if that's because the logging is lacking or it's actually running duplicate builds. (that's not unique to this, you can see the same logs on hydra) 19:44:27
@whispers:catgirl.cloudwhispers [& it/fae] * 19:44:49
@whispers:catgirl.cloudwhispers [& it/fae] * 19:44:59
@whispers:catgirl.cloudwhispers [& it/fae] * 19:45:16
@whispers:catgirl.cloudwhispers [& it/fae]oh and stage 1 builds also break anything that links against rustc_private19:50:27
@whispers:catgirl.cloudwhispers [& it/fae]i don't remember the machinery involved with doing that (it might be nightly only?) so i don't know if anything in nixpkgs does that though19:51:03
@whispers:catgirl.cloudwhispers [& it/fae] * 19:51:39
@whispers:catgirl.cloudwhispers [& it/fae] * 19:53:04
@whispers:catgirl.cloudwhispers [& it/fae] * 19:53:18
@whispers:catgirl.cloudwhispers [& it/fae]okay yeah i think that's perma-unstable so basically a non-concern19:55:00
@pyrox:pyrox.devdish [Fox/It/She]removing rust-installer and generate-copyright from intermediate builds should be fairly easy, just a few-line patch20:17:21
@pyrox:pyrox.devdish [Fox/It/She]* removing rust-installer and generate-copyright from intermediate builds should be fairly easy, just a few-line patch from what i can see just looking at the code20:17:31
@whispers:catgirl.cloudwhispers [& it/fae] i think you can also just do it by passing the right command like flags to ./x.py install (specifying which things to install instead of just using the defaults) but i haven't tried 20:18:27
@whispers:catgirl.cloudwhispers [& it/fae] * i think you can also just do it by passing the right command like flags to ./x.py install (specifying which things to install instead of just using the defaults) but I'll have to test that later 20:20:36
@whispers:catgirl.cloudwhispers [& it/fae] * i think you can also just do it by passing the right command line flags to ./x.py install (specifying which things to install instead of just using the defaults) but I'll have to test that later 20:21:36
@pyrox:pyrox.devdish [Fox/It/She]from looking at bootstrap i think they're still built so you have to remove them before running install20:24:18
@whispers:catgirl.cloudwhispers [& it/fae]nope, they aren't build until installPhase in my logs20:25:32
@pyrox:pyrox.devdish [Fox/It/She]huh interesting20:25:46
@whispers:catgirl.cloudwhispers [& it/fae] * 20:25:55
@whispers:catgirl.cloudwhispers [& it/fae] i think because we specifically do ./x.py build library cargo; just ./x.py build does far more builds than we need 20:26:43
@pyrox:pyrox.devdish [Fox/It/She]im looking and there doesn't appear to be any flags to disable running generate-copyright20:28:59
@pyrox:pyrox.devdish [Fox/It/She]probably since they don't expect this usecase20:30:25
@pyrox:pyrox.devdish [Fox/It/She] and per bootstrap.example.toml, installing the extended tools will always install the rust-installer tools, with no apparent way to disable that either 20:30:57
@pyrox:pyrox.devdish [Fox/It/She]i might have missed something though since bootstrap's logic is pretty complex20:31:07

Show newer messages


Back to Room ListRoom Version: 6