!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

422 Members
(Technical) development of Lix, the package manager, a Nix implementation. Please be mindful of ongoing technical conversations in this channel.143 Servers

Load older messages


SenderMessageTime
16 May 2024
@julia:the-apothecary.clubjuliamm23:42:45
@qyriad:katesiria.orgQyriad I'm pretty sure it's literally like:
if is_store_path():
   do_store_path_stuff()
else:
    do_flake_stuff()
23:42:49
@delroth:delroth.netdelroth
$ 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:delroth.netdelroth (with a "clean" Lix from main, not with my changes) 23:43:18
@qyriad:katesiria.orgQyriad yeah that's what we would expect  23:43:28
@delroth:delroth.netdelrothI wasn't expecting "^out" to just drop23:43:36
@delroth:delroth.netdelrothor like, is it parsing it as "get output 'out' from flake /foo"?23:44:00
@qyriad:katesiria.orgQyriad yep 23:44:07
@qyriad:katesiria.orgQyriad 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:puck.moepuck w...what is "output 'out' from flake /foo" 23:45:04
@delroth:delroth.netdelrothpackages.$system.default.out23:45:23
@qyriad:katesiria.orgQyriad yup 23:45:35
@delroth:delroth.netdelroth... I wonder if it's still "packages" if I use it with nix develop23:45:43
@delroth:delroth.netdelrothnope23:45:57
@qyriad:katesiria.orgQyriad it tries "devShells" then "packages" iwrc   23:46:07
@puck:puck.moepuck
In reply to @delroth:delroth.net
packages.$system.default.out
uh. uhhhhhhhhhh
23:46:13
@julia:the-apothecary.clubjulia who designed this and can they be fired (from a cannon)
... oh wait, 😛
23:48:07
@qyriad:katesiria.orgQyriad
In reply to @qyriad:katesiria.org
it tries "devShells" then "packages" iwrc  
oh and then legacyPackages, of course
23:48:50
@jade_:matrix.orgjade_ 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_:matrix.orgjade_but otoh lol do we really think they will ship a compatible C API?23:49:27
@puck:puck.moepuckuhhhh, complex23:52:09
@puck:puck.moepucki think we'll likely break the C api but i have plans to try and convince robert23:52:26
@jade_:matrix.orgjade_ 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:puck.moepuckaka "can we become the C api's upstream"23:52:38
@puck:puck.moepuck
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:puck.moepucki think we're likely to break the API (tho the ABI should stay .. closer to same)23:53:21
@delroth:delroth.netdelrothhttps://git.lix.systems/lix-project/lix/src/branch/main/src/libcmd/installables.cc#L470 like, wtf, seriously23:53:30
@delroth:delroth.netdelrothok, I'll leave "fixing the UX" to someone else23:53:37
@delroth:delroth.netdelroththere 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 error23:54:22
@qyriad:katesiria.orgQyriad even if you throw a UsageError? 23:54:51

Show newer messages


Back to Room ListRoom Version: 10