| 16 May 2024 |
FireFly | oki | 02:22:21 |
@jade_:matrix.org | there might be some nonsense to get it to work exactly as you expect with --apply, but the json printer should be largely not broken even on 2.18 | 02:23:30 |
@jade_:matrix.org | * there might be some nonsense to get it to work exactly as you expect and you may need to use --apply for certain things to extract them, but the json printer should be largely not broken even on 2.18 | 02:23:47 |
FireFly | I mean nix eval has --raw which means I don't even need to abuse that | 02:23:59 |
@jade_:matrix.org | because builtins.getFlake is busted garbabe | 02:23:59 |
@jade_:matrix.org | * because builtins.getFlake is busted garbage | 02:24:00 |
FireFly | can just output the raw string, which is what I want anyway (but for some reason nix-instantiate --eval can't do that :v | 02:24:16 |
FireFly | * can just output the raw string, which is what I want anyway (but for some reason nix-instantiate --eval can't do that :v) | 02:24:19 |
@jade_:matrix.org | loll | 02:24:27 |
FireFly | I thought it had an option like that too, but apparently not | 02:24:45 |
@jade_:matrix.org | if i recall correctly the only way to get the loaded flake as if it's the repl is to do something like nix eval .# --apply '(x: x.some.attr.path)' and of course you can import your script into there if necessary | 02:25:41 |
@jade_:matrix.org | it's horrid lol | 02:25:49 |
Qyriad | https://github.com/NixOS/nix/pull/6333 | 02:27:30 |
Qyriad | why is this even specific to nix eval | 02:27:57 |
FireFly | hum, I don't understand what --arg{,str} does for nix eval since it doesn't seem to actually auto-call functions (and if I need to manually write an expr with --apply to call the function, then it won't pick those up anyway? o.o) | 02:28:43 |
FireFly | (I'm probably holding it wrong) | 02:29:34 |
@jade_:matrix.org | In reply to @firefly:raccoon.college hum, I don't understand what --arg{,str} does for nix eval since it doesn't seem to actually auto-call functions (and if I need to manually write an expr with --apply to call the function, then it won't pick those up anyway? o.o) ahahahahahahahahaha | 02:30:02 |
@jade_:matrix.org | hahahahahahahahahahahahahahahahahahahahahhahahaha | 02:30:08 |
@jade_:matrix.org | (you can guess what i am about to tell you)
(the nix team wontfix'd this) | 02:30:23 |
FireFly | ...don't tell me nix eval just doesn't support asoetnuhnsaoedusnd | 02:30:31 |
@jade_:matrix.org | https://git.lix.systems/lix-project/lix/issues/263 | 02:30:35 |
FireFly | but the options are literally documented in the nix help eval.. | 02:30:50 |
Unit 1721344 [polygon] (it/its, es/ihr) | 🤡 | 02:31:10 |
julia | In reply to @firefly:raccoon.college but the options are literally documented in the nix help eval.. "common evaluations" aren't actually common! because yay | 02:31:28 |
julia | In reply to @firefly:raccoon.college but the options are literally documented in the nix help eval.. * "common options" aren't actually common! because yay | 02:31:34 |
puck | In reply to @firefly:raccoon.college but the options are literally documented in the nix help eval.. they were just never implemented!! | 02:31:37 |
FireFly | ;_; | 02:31:43 |
@jade_:matrix.org | so obviously they are silently ignored! | 02:31:48 |
@jade_:matrix.org | naturally! | 02:31:50 |
FireFly | In reply to @puck:puck.moe they were just never implemented!! and wontfix'd which is even more 🍿 | 02:31:55 |