!bxVOQwsVoHhZcmNDGw:nixos.org

Nix + dotnet

126 Members
24 Servers

Load older messages


SenderMessageTime
24 Dec 2024
@gggkiller:matrix.orgGGGI don't like that it becomes less declarative01:06:49
@gggkiller:matrix.orgGGG`{ buildPackages }` instead of `{ dotnet-sdk_9, makeWrapper, ... }`01:07:40
@gggkiller:matrix.orgGGGBut I guess there's no way around it01:07:51
@gggkiller:matrix.orgGGGThanks for the explanation though, it was something I never really considered01:08:08
@6pak:matrix.org6pak I mean for add-nuget-deps the better solution is to make a fetch-deps.nix 01:11:14
@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

Show newer messages


Back to Room ListRoom Version: 9