!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
16 May 2024
@puck:puck.moepuck (see src/nix/get-env.sh) 23:12:48
@delroth:delroth.netdelrothalso I'm not sure why but you can chain built derived paths23:14:31
@delroth:delroth.netdelrothlike, /nix/store/...-foo.drv^out^out^out23:14:51
@puck:puck.moepuckyes! this is for dynamic drvs.23:14:57
@puck:puck.moepuckit's ... not very good23:15:02
@delroth:delroth.netdelrothit's also not supported by nix build23:15:13
@delroth:delroth.netdelrothwhich uh23:15:15
@delroth:delroth.netdelrothraises the question of "why", once again23:15:21
@delroth:delroth.netdelrothok ???? Nix23:36:48
@delroth:delroth.netdelrothI made the parser fail to parse /nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5^out (because it's not a .drv)23:36:59
@delroth:delroth.netdelrothand the resulting behavior is:23:37:08
@delroth:delroth.netdelroth
nix build '/nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5^out'
path '/nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5' does not contain a 'flake.nix', searching up
error: could not find a flake.nix file
23:37:26
@delroth:delroth.netdelroth *
$ nix build '/nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5^out'
path '/nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5' does not contain a 'flake.nix', searching up
error: could not find a flake.nix file
23:37:31
@puck:puck.moepuck ......uh, why did it cronch the ^out 23:37:39
@delroth:delroth.netdelrothI think when a store path fails to parse on the command line it assumes it's a flake ref?23:40:31
@delroth:delroth.netdelrothno clue where the ^out went, but that's like, second level of brokenness, I didn't look that far23:40:46
@qyriad:katesiria.orgQyriad that sounds like it didn't recognize that you passed it a store path  23:41:15
@delroth:delroth.netdelroth so obviously it must be a flake 23:41:28
@delroth:delroth.netdelrothnot an error to show to the user, no no23:41:31
@delroth:delroth.netdelrothaaaaaa23:41:34
@julia:the-apothecary.clubjuliawonder 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:katesiria.orgQyriad flakes-by-default is a terrible 'feature' of installables  23:41:54
@julia:the-apothecary.clubjulia* 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:puck.moepuck
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: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

Show newer messages


Back to Room ListRoom Version: 10