| 24 Dec 2024 |
6pak | and do buildPackages.callPackage fetch-deps.nix {} | 01:11:24 |
6pak | the cross windows stuff in my dnspy pr was just doing whatever works to get it working as a POC | 01:12:23 |
6pak | I might tackle it together with sandboxing idk | 01:13:04 |
6pak | GGG: https://github.com/NixOS/nixpkgs/issues/310373 | 02:16:23 |
GGG | Yes, but there's no difference from what you're doing | 02:20:23 |
GGG | I'm saying to use `finalAttrs` instead of `self` | 02:20:37 |
GGG | But good to know, I'll undo a few `rec` to `finalAttrs` I did in my own PR | 02:20:58 |
6pak | let self works the same way as rec | 02:21:13 |
GGG | I see | 02:21:35 |
6pak | https://nix.dev/guides/best-practices.html#recursive-attribute-set-rec | 02:21:41 |
GGG | I myself prefer `rec` over that, but it's personal preference | 02:21:53 |
6pak | yeah and I think I would too in a typed language | 02:22:20 |
6pak | but in nix it's way too easy to make a mistake with it | 02:22:36 |
6pak | and only catch it after 10 minutes of eval+build | 02:22:48 |
GGG | Fair enough | 02:22:57 |
GGG | You can just ignore it then | 02:23:01 |
GGG | I assumed that self would work the same way as the finalAttrs but guess not | 02:23:16 |
6pak | the whole concept of recursive reference is weird at first | 02:24:10 |
6pak | be it rec keyword or referencing yet to be created variable | 02:24:24 |
6pak | but wait, actually it might | 02:25:45 |
6pak | maybe you are supposed to put buildDotnetModule before self at the end there | 02:26:00 |
6pak | uhhh | 02:26:01 |
GGG | Not that confusing when you manage to change your mindset | 02:26:52 |
GGG | Nix is a truly lazily evaluated language | 02:27:00 |
6pak | nvm it's fine as is | 02:29:45 |
6pak | because override returns a new attr set | 02:29:53 |
6pak | * because overrideAttrs returns a new attr set | 02:30:05 |
6pak | but I guess it is different from rec in a way because the stuff gets processed by buildDotnetModule | 02:31:57 |
6pak | so perf wise rec might be better I guess | 02:32:25 |
GGG | I don't know if it actually makes any difference honestly | 02:33:34 |