!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

127 Members
24 Servers

Load older messages


SenderMessageTime
24 Dec 2024
@gggkiller:matrix.orgGGGI see02:21:35
@6pak:matrix.org6pakhttps://nix.dev/guides/best-practices.html#recursive-attribute-set-rec02:21:41
@gggkiller:matrix.orgGGGI myself prefer `rec` over that, but it's personal preference 02:21:53
@6pak:matrix.org6pakyeah and I think I would too in a typed language02:22:20
@6pak:matrix.org6pakbut in nix it's way too easy to make a mistake with it02:22:36
@6pak:matrix.org6pakand only catch it after 10 minutes of eval+build02:22:48
@gggkiller:matrix.orgGGGFair enough02:22:57
@gggkiller:matrix.orgGGGYou can just ignore it then02:23:01
@gggkiller:matrix.orgGGGI assumed that self would work the same way as the finalAttrs but guess not02:23:16
@6pak:matrix.org6pakthe whole concept of recursive reference is weird at first02:24:10
@6pak:matrix.org6pak be it rec keyword or referencing yet to be created variable 02:24:24
@6pak:matrix.org6pak but wait, actually it might 02:25:45
@6pak:matrix.org6pak maybe you are supposed to put buildDotnetModule before self at the end there 02:26:00
@6pak:matrix.org6pakuhhh02:26:01
@gggkiller:matrix.orgGGGNot that confusing when you manage to change your mindset 02:26:52
@gggkiller:matrix.orgGGGNix is a truly lazily evaluated language02:27:00
@6pak:matrix.org6pak nvm it's fine as is 02:29:45
@6pak:matrix.org6pakbecause override returns a new attr set02:29:53
@6pak:matrix.org6pak * because overrideAttrs returns a new attr set02:30:05
@6pak:matrix.org6pakbut I guess it is different from rec in a way because the stuff gets processed by buildDotnetModule02:31:57
@6pak:matrix.org6pak so perf wise rec might be better I guess 02:32:25
@gggkiller:matrix.orgGGGI don't know if it actually makes any difference honestly 02:33:34
@6pak:matrix.org6pakeval speed is unbearably slow no matter what -_-02:33:54
@gggkiller:matrix.orgGGGI was just afraid it was being redundant, but if it isn't then there's no point, you can ignore it02:33:55
@gggkiller:matrix.orgGGG
In reply to @6pak:matrix.org
eval speed is unbearably slow no matter what -_-
Yeah, unfortunately eval is something that's really awfully slow in nix
02:34:11
@gggkiller:matrix.orgGGGI dread every time I have to rebuild my config, it takes literal minutes02:34:30
@6pak:matrix.org6pakyeah02:35:03
@emma:rory.gayEmma [it/its]same here, wish it wasnt that way02:42:39
@gggkiller:matrix.orgGGGHere's hoping the multithreaded eval PR goes faster02:50:09
@gggkiller:matrix.orgGGG @corngood:corngood.com guess we'll need to re-run the update scripts for all versions even if they're the same: https://github.com/dotnet/announcements/issues/336 02:50:44

Show newer messages


Back to Room ListRoom Version: 9