!lymvtcwDJ7ZA9Npq:lix.systems

Lix Development

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

Load older messages


SenderMessageTime
16 May 2024
@delroth:delroth.netdelrothwut23:08:46
@delroth:delroth.netdelrothhere I get e.g. "error: argument '/nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5' did not evaluate to a derivation"23:08:54
@delroth:delroth.netdelrothwhich is what I expected23:09:01
@puck:puck.moepuck yes, it needs to end with -env 23:09:02
@delroth:delroth.netdelroth......23:09:07
@qyriad:katesiria.orgQyriad …please tell me it does not if (endswith)23:09:17
@puck:puck.moepuck:)23:09:24
@puck:puck.moepuck it's the output of nix print-dev-env --json, fwiw 23:09:32
@delroth:delroth.netdelroth../src/nix/develop.cc: if (path && path->to_string().ends_with("-env"))23:09:41
@qyriad:katesiria.orgQyriad😔23:10:02
@jade_:matrix.orgjade_
In reply to @delroth:delroth.net
../src/nix/develop.cc: if (path && path->to_string().ends_with("-env"))
ffs,
23:10:32
@puck:puck.moepuck anyways if you want to torture people, have a env output on your derivation 23:10:58
@qyriad:katesiria.orgQyriadoh gods23:11:09
@qyriad:katesiria.orgQyriad wait but what does this do with nix-env profiles 23:11:23
@qyriad:katesiria.orgQyriad which end in -env don't they 23:11:29
@puck:puck.moepucknothing23:11:32
@puck:puck.moepuckthese envs are like. generated by a bash script outputing json23:12:01
@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

Show newer messages


Back to Room ListRoom Version: 10