| 16 May 2024 |
Qyriad | that sounds like it didn't recognize that you passed it a store path | 23:41:15 |
delroth | so obviously it must be a flake | 23:41:28 |
delroth | not an error to show to the user, no no | 23:41:31 |
delroth | aaaaaa | 23:41:34 |
julia | wonder if it just tried a bunch of types in order lol to see which one works I'm sure that's fine | 23:41:54 |
Qyriad | flakes-by-default is a terrible 'feature' of installables | 23:41:54 |
julia | * wonder if it just tried a bunch of parse variations in order lol to see which one works I'm sure that's fine | 23:42:09 |
puck | In reply to @julia:the-apothecary.club wonder if it just tried a bunch of parse variations in order lol to see which one works I'm sure that's fine no, because the ^out dropped | 23:42:18 |
julia | mm | 23:42:45 |
Qyriad | I'm pretty sure it's literally like:
if is_store_path():
do_store_path_stuff()
else:
do_flake_stuff() | 23:42:49 |
delroth | $ nix build /foo^out
path '/foo' does not contain a 'flake.nix', searching up
error: getting status of '/foo': No such file or directory
| 23:43:03 |
delroth | (with a "clean" Lix from main, not with my changes) | 23:43:18 |
Qyriad | yeah that's what we would expect | 23:43:28 |
delroth | I wasn't expecting "^out" to just drop | 23:43:36 |
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 |