!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

592 Members
Rust132 Servers

Load older messages


SenderMessageTime
1 Jul 2025
@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
@emilazy:matrix.orgemily and we'll also need to do a merge into staging-next and staging when we land 17:33:31
@emilazy:matrix.orgemily as in, make it a nop in staging 17:33:51
@emilazy:matrix.orgemilysorry for not catching that originally17:34:00
@emilazy:matrix.orgemily

btw, you may want to collapse newlines for the

  cargoHash = "foo";

  useFetchCargoVendor = true;

  otherThing = 123;

case

17:34:37
@emilazy:matrix.orgemily(not sure if we have any in tree or not though)17:34:40
@emilazy:matrix.orgemily (and actually I guess nixfmt might collapse those already) 17:34:47
@tomasajt:matrix.orgTomayes17:34:52
@tomasajt:matrix.orgToma* yes it does17:35:06
@tomasajt:matrix.orgTomaOkay, I'll work on the make-NOOP PR then17:35:53
@tomasajt:matrix.orgTomahttps://github.com/NixOS/nixpkgs/pull/42156317:41:39
@tomasajt:matrix.orgTomathis minimal change should be fine I think17:42:13
@tomasajt:matrix.orgTomaOh it has an eval error, will fix it in a minute17:45:43
@tomasajt:matrix.orgToma* Oh it has an eval error, will fix it in a minute Edit: Done!17:47:57
@dynamicgoose:matrix.orgDynamicGoose joined the room.20:31:06
@dynamicgoose:matrix.orgDynamicGoose set a profile picture.20:35:21
2 Jul 2025
@michael.zeagler:matrix.org@michael.zeagler:matrix.org left the room.02:12:23

Show newer messages


Back to Room ListRoom Version: 6