| 16 May 2024 |
delroth | wut | 23:08:46 |
delroth | here I get e.g. "error: argument '/nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5' did not evaluate to a derivation" | 23:08:54 |
delroth | which is what I expected | 23:09:01 |
puck | yes, it needs to end with -env | 23:09:02 |
delroth | ...... | 23:09:07 |
Qyriad | …please tell me it does not if (endswith)… | 23:09:17 |
puck | :) | 23:09:24 |
puck | it's the output of nix print-dev-env --json, fwiw | 23:09:32 |
delroth | ../src/nix/develop.cc: if (path && path->to_string().ends_with("-env")) | 23:09:41 |
Qyriad | 😔 | 23:10:02 |
jade_ | In reply to @delroth:delroth.net ../src/nix/develop.cc: if (path && path->to_string().ends_with("-env")) ffs, | 23:10:32 |
puck | anyways if you want to torture people, have a env output on your derivation | 23:10:58 |
Qyriad | oh gods | 23:11:09 |
Qyriad | wait but what does this do with nix-env profiles | 23:11:23 |
Qyriad | which end in -env don't they | 23:11:29 |
puck | nothing | 23:11:32 |
puck | these envs are like. generated by a bash script outputing json | 23:12:01 |
puck | (see src/nix/get-env.sh) | 23:12:48 |
delroth | also I'm not sure why but you can chain built derived paths | 23:14:31 |
delroth | like, /nix/store/...-foo.drv^out^out^out | 23:14:51 |
puck | yes! this is for dynamic drvs. | 23:14:57 |
puck | it's ... not very good | 23:15:02 |
delroth | it's also not supported by nix build | 23:15:13 |
delroth | which uh | 23:15:15 |
delroth | raises the question of "why", once again | 23:15:21 |
delroth | ok ???? Nix | 23:36:48 |
delroth | I made the parser fail to parse /nix/store/dr53sp25hyfsnzjpm8mh3r3y36vrw3ng-neovim-0.9.5^out (because it's not a .drv) | 23:36:59 |
delroth | and the resulting behavior is: | 23:37:08 |
delroth | 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 | * $ 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 |