!VhzbGHamdfMiGxpXyg:robins.wtf

NixOS LXC

33 Members
lxc, lxd, incus discussions related to NixOS14 Servers

Load older messages


SenderMessageTime
20 Mar 2024
@hexa:lossy.networkhexa also … sometimes using with should be ok 😄 00:49:32
@hexa:lossy.networkhexaimage.png
Download image.png
00:49:34
@adam:robins.wtfadamcstephens Pkgs is so short :) I prefer to be explicit myself but understand others prefer with in this case. I’d say it’s ok but not my preference  01:05:33
@adam:robins.wtfadamcstephens Lots of dependencies for this package  01:08:45
@adam:robins.wtfadamcstephens If you insist I’ll use with ;) 01:08:56
@hexa:lossy.networkhexahow could I?01:09:39
@hexa:lossy.networkhexa I think it's silly to complain about every with that we have in nixpkgs 01:10:07
@hexa:lossy.networkhexa it started at toplevel with lib and now they're coming for meta =with lib; 01:10:30
@hexa:lossy.networkhexa * it started at toplevel with lib and now they're coming for meta = with lib; 01:10:57
@adam:robins.wtfadamcstephens I just tend not to use them out of preference. I don’t really like a global with lib, but smaller scopes seem fine to me  01:11:52
@adam:robins.wtfadamcstephens I’m definitely not trying to convince others  01:12:10
@hexa:lossy.networkhexaI tend to inherit from lib01:12:29
@adam:robins.wtfadamcstephens Yeah that’s better for sure  01:12:44
@hexa:lossy.networkhexaand with lists like the one above I generally don't like to repeat myself01:12:52
@adam:robins.wtfadamcstephens I like that I can read every line and know where it came from. If there were some other variables in the `let` included in this list, it could be less clear using `with` what the source was.  01:15:15
@adam:robins.wtfadamcstephens I do agree this list is probably past the length most people would side with me  01:15:58
@adam:robins.wtfadamcstephens Any other thoughts? I’ll update that and the mddoc 01:16:43
@hexa:lossy.networkhexaI saw both on mobile, hence commented here01:17:36
@hexa:lossy.networkhexalet me check01:17:38
@adam:robins.wtfadamcstephenswhere was the mdDoc deprecation annouced?01:20:51
@hexa:lossy.networkhexagood question01:21:12
@adam:robins.wtfadamcstephensit's not deprecated in code and is listed as a noop in the manual, so i guess it's just silently dropped now01:21:36
@adam:robins.wtfadamcstephenshttps://nixos.org/manual/nixpkgs/unstable/#lib-options-mddoc01:21:42
@adam:robins.wtfadamcstephensor silently passed through01:21:58
@hexa:lossy.networkhexayeah, the manual is markdown, that's all I know01:22:05
@hexa:lossy.networkhexaand for some reason that includes the options01:22:21
@hexa:lossy.networkhexaI had no idea you could pass a list to mkPackageOption01:24:39
@adam:robins.wtfadamcstephensyeah, someone else did that before me. mkg maybe01:26:27
@hexa:lossy.networkhexathe negation in the firewall assertion 🙈01:26:48
@adam:robins.wtfadamcstephensyeah that's some ugly logic. but... feel free to give me an equivalent alternative :)01:28:11

Show newer messages


Back to Room ListRoom Version: 10