| 16 May 2024 |
delroth | or like, is it parsing it as "get output 'out' from flake /foo"? | 23:44:00 |
Qyriad | yep | 23:44:07 |
Qyriad | I would bet money that if you put a hash after the end of that it would assume it was part of path instead | 23:45:03 |
puck | w...what is "output 'out' from flake /foo" | 23:45:04 |
delroth | packages.$system.default.out | 23:45:23 |
Qyriad | yup | 23:45:35 |
delroth | ... I wonder if it's still "packages" if I use it with nix develop | 23:45:43 |
delroth | nope | 23:45:57 |
Qyriad | it tries "devShells" then "packages" iwrc | 23:46:07 |
puck | In reply to @delroth:delroth.net packages.$system.default.out uh. uhhhhhhhhhh | 23:46:13 |
julia | who designed this and can they be fired (from a cannon) ... oh wait, 😛 | 23:48:07 |
Qyriad | In reply to @qyriad:katesiria.org it tries "devShells" then "packages" iwrc oh and then legacyPackages, of course | 23:48:50 |
jade_ | hm, we probably shouldn't have our headers in <lix/meow.hh> actually, because this would prevent our api from ever being compatible with nix | 23:49:17 |
jade_ | but otoh lol do we really think they will ship a compatible C API? | 23:49:27 |
puck | uhhhh, complex | 23:52:09 |
puck | i think we'll likely break the C api but i have plans to try and convince robert | 23:52:26 |
jade_ | i think the sensible move is probably to not do the include/ move but to do the pkg-config name and -l break still | 23:52:37 |
puck | aka "can we become the C api's upstream" | 23:52:38 |
puck | In reply to @jade_:matrix.org i think the sensible move is probably to not do the include/ move but to do the pkg-config name and -l break still the C api is also not in a directory, it's just #include <nix_api_expr.h> etc | 23:53:03 |
puck | i think we're likely to break the API (tho the ABI should stay .. closer to same) | 23:53:21 |
delroth | https://git.lix.systems/lix-project/lix/src/branch/main/src/libcmd/installables.cc#L470 like, wtf, seriously | 23:53:30 |
delroth | ok, I'll leave "fixing the UX" to someone else | 23:53:37 |
delroth | there is no way to make this /nix/store/...^out return a proper error message because if it throws then nix tries to interpret it as a flake, which also doesn't work because /nix/store/... isn't a flake, and that overrides the initial error | 23:54:22 |
Qyriad | even if you throw a UsageError? | 23:54:51 |
delroth | well yeah, look at the code | 23:55:00 |
delroth | it catches (...) | 23:55:03 |
Qyriad | what | 23:55:11 |
Qyriad | fucking hell | 23:55:21 |
jade_ | burn it | 23:55:27 |
jade_ | we should fix that catch | 23:55:35 |