!FBuJyWXTGcGtHTPphC:nixos.org

Nix Rust

664 Members
Rust148 Servers

Load older messages


SenderMessageTime
22 May 2025
@emilazy:matrix.orgemilywhat kind of workarounds?12:23:28
@emilazy:matrix.orgemilywe can get rid of the double layering if we remove the intermediate derivation, right?12:23:50
@emilazy:matrix.orgemilybecause it will always be the FOD12:24:09
@emilazy:matrix.orgemily or is the problem importCargoLock? 12:24:13
@emilazy:matrix.orgemilyi.e. having to distinguish the two12:24:39
@tomasajt:matrix.orgTomaI guess fetchCargoTarball doesnt exist officially anymore12:25:26
@tomasajt:matrix.orgTomaSo we're more free to assume our own impl12:25:40
@emilazy:matrix.orgemilyright12:26:46
@emilazy:matrix.orgemilyI don't think the symlink and marker is a bad idea though, but maybe it's not necessary?12:26:54
@emilazy:matrix.orgemily wait, can't we just set a passthru on the FOD? 12:30:17
@emilazy:matrix.orgemilyto identify it at eval time?12:30:21
@emilazy:matrix.orgemilythat doesn't break any hashes12:30:23
@emilazy:matrix.orgemily I guess the problem is that if you're using hooks they can't necessarily see cargoDeps until build 12:30:37
@tomasajt:matrix.orgTomawe wouldn't break hashes anyway, just APIs12:30:43
@emilazy:matrix.orgemilyI guess I don't have a full picture of the problem12:31:01
@tomasajt:matrix.orgToma

So the issue with the complete removal of the middle layer, is that then, we'll have fetchCargoVendor spit out our custom vendor-staging FOD, while other users may have assumed the cargoDeps is going to stay as something that is already the final vendor directory.
Now, if we had a marker in the FOD, we could just condition our logic to only trigger if we detect it.

In any case, the symlink solution doesn't sound that bad, if a little bit unnecessary...

12:35:50
@tomasajt:matrix.orgToma *

So the issue with the complete removal of the middle layer, is that then we'll have fetchCargoVendor spit out our custom vendor-staging FOD, while other users may have assumed the cargoDeps is going to stay as something that is already the final vendor directory.
Now, if we had a marker in the FOD, we could just condition our logic to only trigger if we detect it.

In any case, the symlink solution doesn't sound that bad, if a little bit unnecessary...

12:36:21
@adam_neverwas:matrix.orgAdam Neverwas Um...i have a kernel driver or what, patch, idk. I should have to add, because my notebook needs it. It's written in rust. 17:08:15
@adam_neverwas:matrix.orgAdam Neverwas Sec. 17:09:38
@adam_neverwas:matrix.orgAdam Neverwas However, don't you plan to add the asus-armory driver to the kernel? 17:23:17
@k900:0upti.meK900Once mainline merges it, yes17:24:42
@k900:0upti.meK900Which so far is looking like it will take a while17:24:52
@adam_neverwas:matrix.orgAdam Neverwas Thanks, asus-linux guys said it should reach somewhen, they dont know, didnt talk with main dev 17:50:53
@k900:0upti.meK900Either way, the answer for "when will nixos have it" is "whenever mainline has it"17:51:34
@k900:0upti.meK900Which is right now 6.16 at the earliest17:51:40
@k900:0upti.meK900And I'm going to guess that they'll miss 6.1617:51:46
23 May 2025
@Ericson2314:matrix.orgJohn Ericson
In reply to @qyliss:fairydust.space
IIRC @Ericson2314:matrix.org didn't think it was possible some time in the past
Hmm?
03:21:26
@Ericson2314:matrix.orgJohn EricsonI definitely want to never build computers and standard libraries together 03:21:39
@Ericson2314:matrix.orgJohn EricsonI would love to crate2nix rustc03:21:59
@qyliss:fairydust.spaceAlyssa Ross
In reply to @Ericson2314:matrix.org
I definitely want to never build computers and standard libraries together
I remember you thinking more work had to be done upstream in Rust to enable it
08:35:10

Show newer messages


Back to Room ListRoom Version: 6