!sBfrWMVsLoSyFTCkNv:nixos.org

OfBorg

172 Members
Number of builds and evals in queue: <TBD>63 Servers

Load older messages


SenderMessageTime
25 Jan 2024
@sheep_empress:matrix.orgsheep_empressCould you explain what you mean by that?19:43:54
@k900:0upti.meK900 builtins.readFile happens at eval time 19:44:51
@k900:0upti.meK900Nix computes a build plan first, then executes it19:45:03
@k900:0upti.meK900IFD is bad because you have to compute some build plan, then execute it, then use the output from that to compute more build plan19:45:19
@k900:0upti.meK900Which is slow and means you can't have a full build plan ahead of time19:45:28
@sheep_empress:matrix.orgsheep_empressI think part of the problem I'm having might be because I really don't know the full build plan ahead of time. I don't know what version of esbuild the build needs until I've run pnpm19:48:18
@k900:0upti.meK900Then you need to hardcode it in nixpkgs19:48:28
@k900:0upti.meK900And update it manually when updating the package19:48:34
@k900:0upti.meK900 Because nixpkgs tooling does need to know the full build plan ahead of time 19:48:42
@sheep_empress:matrix.orgsheep_empressWas worried that was going to be the answer. Thanks for all your help19:49:58
@7c6f434c:nitro.chat7c6f434cNixpkgs has quite a few generated expression sets, actually19:52:55
@sheep_empress:matrix.orgsheep_empressHardcoding the version lets it build fine without import-from-derivation, and it's what I might do for my first package for now 😅19:56:02
@sheep_empress:matrix.orgsheep_empressFuture me might change her mind after she's had to update it a few times though. Would love if you could point me towards docs on generated expressions if you think those could help me solve my problem19:57:44
@soispha:vhack.euBenedikt joined the room.20:10:15
@k900:0upti.meK900Generated expressions isn't a Nix feature20:11:32
@7c6f434c:nitro.chat7c6f434chttps://nixos.org/manual/nixpkgs/stable/#var-passthru-updateScript20:11:33
@k900:0upti.meK900You can just write a script that generates the data you need and writes it to a .nix file or a JSON file or whatever20:11:46
@k900:0upti.meK900And then you can at least automate away the manual editing20:11:57
@7c6f434c:nitro.chat7c6f434c(if it is just about updating a few versions)20:12:04
@7c6f434c:nitro.chat7c6f434cOr, indeed, write a script in whatever you prefer that outputs the expression as you wish20:12:34
@7c6f434c:nitro.chat7c6f434cPresumably you already have it in your IFD setup20:12:57
28 Jan 2024
@k900:0upti.meK900Does ofborg push built outputs somewhere?13:36:24
@ncfavier:matrix.orgncfavier changed their profile picture.14:04:00
29 Jan 2024
@cole-h:matrix.orgcole-h
In reply to @k900:0upti.me
Does ofborg push built outputs somewhere?
No, it does not.
15:51:48
31 Jan 2024
@asymmetric:matrix.dapp.org.uk@asymmetric:matrix.dapp.org.uk left the room.10:47:14
3 Feb 2024
@hexa:lossy.networkhexathe current eval speed is refreshing02:41:05
@hexa:lossy.networkhexathanks alot02:41:07
@hexa:lossy.networkhexa * thanks a ton02:41:10
9 Feb 2024
@pinpox:matrix.orgpinpox joined the room.12:04:08
@pinpox:matrix.orgpinpoxcrossposting here as requested: ofborg is failing to run my test, even though it works fine locally. Can anyone tell me what I'm doing wrong? https://github.com/NixOS/nixpkgs/actions/runs/7843526136/job/21404048992?pr=28745512:04:29

Show newer messages


Back to Room ListRoom Version: 6