| 15 May 2024 |
Qyriad | Don't think so, most attrset values aren't also valid names in practice in Nixpkgs | 19:10:11 |
Qyriad | * Don't think so, since most attrset values aren't also valid names in practice in Nixpkgs | 19:10:15 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | In reply to @lily:lily.flowers (is there a lib function to invert attrset names/values too?) you can have a new attrset as key, but not as value. Would surprise me if that would even make sense to have an inverter here | 19:10:18 |
Lily Foster | In reply to @qyriad:katesiria.org brb adding a new lib.attrsets API =P my last friend who tried to add a companion to lib.genAttrs got bikeshed to hell and quit nixpkgs 🫠| 19:10:19 |
Qyriad | …Fucking hell. | 19:10:31 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | when lixpkgs? | 19:10:53 |
@jade_:matrix.org | In reply to @qyriad:katesiria.org Like Lix can load arbitrary shared libraries which can add arbitrary primops to the evaluator builtins.importNative | 19:11:01 |
Qyriad | Oh gods I forgot about that asdfglkah | 19:11:15 |
@jade_:matrix.org | In reply to @grimmauld:grimmauld.de when lixpkgs? well, based on <redacted>, <redacted> <redacted> <redacted> | 19:11:21 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | In reply to @grimmauld:grimmauld.de when lixpkgs? (yes this is a joke, but yeah uh pain) | 19:11:22 |
Lily Foster | you still gotta have the --allow-unsafe-native-code or something right? | 19:11:29 |
@jade_:matrix.org | In reply to @lily:lily.flowers you still gotta have the --allow-unsafe-native-code or something right? yes | 19:11:34 |
Qyriad | In reply to@jade_:matrix.org well, based on <redacted>, <redacted> <redacted> <redacted> Oh I can't wait to import <redacted> { } | 19:11:38 |
@tc424:glasgow.social | In reply to@grimmauld:grimmauld.de when lixpkgs? Well, there's a lot ideas being chucked around over in aux-world, remains to be seen what actually gets implemented.. | 19:11:51 |
Lily Foster | In reply to @lily:lily.flowers you still gotta have the --allow-unsafe-native-code or something right? (maybe we should add an alias of --oh-gods-its-cursed-please-dont-do-this... though both the option and builtin are undocumented so i guess that's close enough) | 19:12:27 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | pain with the actual package repo is maintenance, you can't fork it without also tracking upstream, and that has issues of its own | 19:12:36 |
puck | In reply to @jade_:matrix.org well, based on <redacted>, <redacted> <redacted> <redacted> don't forget <redacted> and <redacted> too | 19:12:47 |
Lily Foster | what is this, an scp article? | 19:13:10 |
Qyriad | In reply to@lily:lily.flowers (maybe we should add an alias of --oh-gods-its-cursed-please-dont-do-this... though both the option and builtin are undocumented so i guess that's close enough) Actually the option is documented, apparently, albeit barely, under nix.conf | 19:13:14 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | didn't the nix hour guy want to pull out nixpkgs lib into its own standalone thing? that'd be a step in the right direction... | 19:13:22 |
Qyriad | The option is already long enough though tbh: --option allow-unsafe-native-code-during-evaluation true =P | 19:13:37 |
Lily Foster | yeah infinisil has mentioned wanting that before | 19:13:39 |
Qyriad | I'm not sure Nixpkgs lib should be standalone or not honestly | 19:14:00 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | i mean, standalone lib would make forking lib (and only lib!) significantly more viable | 19:14:32 |
Qyriad | There are two competing problems there. lib has basically a prelude of basic type and value manipulations that you need in a functional language to get by, but it's also versioned with Nixpkgs, and separating that versionsing sounds like all kinds of trouble | 19:14:52 |
@jade_:matrix.org | In reply to @qyriad:katesiria.org There are two competing problems there. lib has basically a prelude of basic type and value manipulations that you need in a functional language to get by, but it's also versioned with Nixpkgs, and separating that versionsing sounds like all kinds of trouble what you actually want to do, and i cannot believe nobody has done this yet, is to simply stand up an instance of josh and extract it | 19:16:05 |
Qyriad | omg | 19:16:18 |
@jade_:matrix.org | monorepos are good actually | 19:16:40 |
Grimmauld (moving to @grimmauld:grapevine.grimmauld.de) | huh? now what the hell is josh? y'all are in this way too deep XD | 19:16:42 |
Lily Foster | i assume https://github.com/josh-project/josh? | 19:16:58 |