!9IQChSjwSHXPPWTa:lix.systems

Lix

867 Members
Lix user channel. Feel free to discuss on-topic issues here and give each other help. For matrix.to links to the rest of the Lix channels, see: https://wiki.lix.systems/books/lix-organisation/page/matrix-rooms254 Servers

Load older messages


SenderMessageTime
16 May 2024
@jade_:matrix.org@jade_:matrix.orgfuck yeah20:06:04
@lily:lily.flowersLily Foster
In reply to @qyriad:katesiria.org
that's finalAttrs.finalPackage isn't it?
yep that's the one
20:06:11
@lily:lily.flowersLily Fosterisn't it all fun20:06:22
@lily:lily.flowersLily Foster(^ the message above this one is sarcastic in case it was not clear)20:06:40
@qyriad:katesiria.orgQyriad Because technically finalAttrs is only the the arguments to mkDerivation and not the result of that 🙃 20:07:07
@jade_:matrix.org@jade_:matrix.org vringar: i hope this makes at least some sense, feel free to ask questions if "girls go read the stdenv source code in real time" wasn't clear enough on what to actually do to fix it XD 20:07:20
@lily:lily.flowersLily Foster does mkDerivation still have a TODO comment to change the forcing-doCheck-off-on-all-cross behavior that was added like 5 years ago and not touched since? 20:07:45
@qyriad:katesiria.orgQyriad
  # TODO(@oxij, @Ericson2314): This is here to keep the old semantics, remove when
  # no package has `doCheck = true`.
  doCheck' = doCheck && stdenv.buildPlatform.canExecute stdenv.hostPlatform;
20:08:13
@qyriad:katesiria.orgQyriadYep.20:08:26
@lily:lily.flowersLily Fosterlovely20:08:37
@lily:lily.flowersLily Foster(oof i've spent too much time in stdenv at this point. it's highly cursed knowledge. i do not recommend)20:09:10
@qyriad:katesiria.orgQyriadon the flip side, cursed stdenv knowledge is basically required to understand Nixpkgs20:09:30
@qyriad:katesiria.orgQyriad(which sucks!)20:09:34
@ff-vringar:mozilla.orgvringar
In reply to @jade_:matrix.org
vringar: i hope this makes at least some sense, feel free to ask questions if "girls go read the stdenv source code in real time" wasn't clear enough on what to actually do to fix it XD
Currently side tracked by having to entertain cats. Will catch up eventually
20:09:45
@jade_:matrix.org@jade_:matrix.orgstrongly approved activity20:10:06
@jade_:matrix.org@jade_:matrix.orgi should probably write a short blogpost about this kind of broken recursion structure. i wonder if it is detectable...20:10:33
@jade_:matrix.org@jade_:matrix.orgwe should lint on it20:10:48
@lily:lily.flowersLily Foster
In reply to @qyriad:katesiria.org
on the flip side, cursed stdenv knowledge is basically required to understand Nixpkgs
yeah like when someone unknowingly breaks splicing because they don't know it exists because it's supposed to be "magic" and then I have to fix a ton of call and override points to make it not do that when they finally want cross to work
20:11:05
@lily:lily.flowersLily Foster(yes hi, i recently helped someone fix the splicing disaster for dart/flutter)20:11:52
@jade_:matrix.org@jade_:matrix.org i think hmmmmmm. technically yes. it should be lintable 20:12:09
@qyriad:katesiria.orgQyriad
In reply to@jade_:matrix.org
we should lint on it
that might not actually be that hard. (like, aside from the effort needed to add a linting system to Lix in general, which we already want)
20:12:14
@jade_:matrix.org@jade_:matrix.orgyou would look for anything in passthru that has an arg == to the parent derivation and that == relation is broken if you overrideAttrs the parent20:12:52
@qyriad:katesiria.orgQyriadyeah20:13:20
@jade_:matrix.org@jade_:matrix.org
In reply to @qyriad:katesiria.org
that might not actually be that hard. (like, aside from the effort needed to add a linting system to Lix in general, which we already want)
not convinced it should be in lix, but nixpkgs does have some linty things especially for meta
20:13:34
@jade_:matrix.org@jade_:matrix.org i would like linting, i am just not sure if the rules should be in lix 20:13:43
@qyriad:katesiria.orgQyriad We actually think they should be, or at least some of them should be. Rustc has lints specific to std APIs; I think it's fine for Lix to do so too, if there's a good reason it can't or shouldn't be in Nixpkgs first 20:15:32
@qyriad:katesiria.orgQyriadOr in like, a Lix-official plugin20:16:01
@qyriad:katesiria.orgQyriadIf it can be in Nixpkgs though that's almost definitely better20:21:52
@jade_:matrix.org@jade_:matrix.orgyeah the only real issue with this is that it would be possibly expensive eval time wise since it would create more derivations but it could probably be done to avoid that too20:23:16
@jade_:matrix.org@jade_:matrix.org(where you would like, just put in an attr and check its still there but not eval the outPath)20:23:35

There are no newer messages yet.


Back to Room ListRoom Version: 10