!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

120 Members
23 Servers

Load older messages


SenderMessageTime
24 Dec 2024
@6pak:matrix.org6pak and do buildPackages.callPackage fetch-deps.nix {} 01:11:24
@6pak:matrix.org6pakthe cross windows stuff in my dnspy pr was just doing whatever works to get it working as a POC01:12:23
@6pak:matrix.org6pak I might tackle it together with sandboxing idk 01:13:04
@6pak:matrix.org6pak GGG: https://github.com/NixOS/nixpkgs/issues/310373 02:16:23
@gggkiller:matrix.orgGGGYes, but there's no difference from what you're doing02:20:23
@gggkiller:matrix.orgGGGI'm saying to use `finalAttrs` instead of `self`02:20:37
@gggkiller:matrix.orgGGGBut good to know, I'll undo a few `rec` to `finalAttrs` I did in my own PR02:20:58
@6pak:matrix.org6paklet self works the same way as rec02:21:13
@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

Show newer messages


Back to Room ListRoom Version: 9