!VRULIdgoKmKPzJZzjj:nixos.org

Nix Package Manager development

860 Members
For people hacking on Nix: https://github.com/NixOS/nix Nix maintainers can be reached here.185 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@fzakaria:one.ems.hostfzakariaYAML is a superset of JSON.15:56:43
@fzakaria:one.ems.hostfzakaria(always blew my mind)15:57:11
@fzakaria:one.ems.hostfzakariashould we merge https://github.com/NixOS/nix/pull/13673 ? it's a good test.15:58:35
@manveru:matrix.orgmanveru remarshal is nice, but haven't needed it since switching to nushell ^^; 16:41:38
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): when you did one big file, did you use 1$defs? 16:47:36
@Ericson2314:matrix.orgJohn Ericson * Robert Hensing (roberth): when you did one big file, did you use $defs? 16:47:40
@roberthensing:matrix.orgRobert Hensing (roberth) You mean this? https://github.com/nixops4/nixops4/blob/dd10dd638a4a2b7f5912ea89076e719593f230db/rust/nixops4-resource/resource-schema-v0.json#L617:08:26
@roberthensing:matrix.orgRobert Hensing (roberth) * John Ericson: You mean this? https://github.com/nixops4/nixops4/blob/dd10dd638a4a2b7f5912ea89076e719593f230db/rust/nixops4-resource/resource-schema-v0.json#L6 17:08:34
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): yeah 17:09:05
@Ericson2314:matrix.orgJohn Ericsonsupposedly that tool supports multiple separate json files with one invocation17:09:24
@Ericson2314:matrix.orgJohn Ericsonhave you tried that?17:09:26
@roberthensing:matrix.orgRobert Hensing (roberth)oh interesting17:10:05
@roberthensing:matrix.orgRobert Hensing (roberth)I didn't need it17:10:30
@Ericson2314:matrix.orgJohn Ericson Sergei Zimmerman (xokdvium): btw (just so you see it here) I am trying to see if this tool can do cross-file references for json schema now 17:26:30
@Ericson2314:matrix.orgJohn Ericsonbut I don't have high hopes17:26:34
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): you had to provide a root , it couldn't just be definitions, for single file version? 17:26:58
@fzakaria:one.ems.hostfzakaria 21x speedup for nix nar cat | ls
https://github.com/NixOS/nix/pull/14273
17:27:13
@fzakaria:one.ems.hostfzakariathere is so many abstractions in the codebase17:28:26
@fzakaria:one.ems.hostfzakariahardest part was figuring out which to use :P17:28:31
@fzakaria:one.ems.hostfzakariathankfully someone already made makeLazyNarAccessor so the work was easy :P17:28:46
@roberthensing:matrix.orgRobert Hensing (roberth)I think I had to. You could have a tiny file that imports stuff, but it's not aware of other files to link to in the output, afaik17:32:11
@roberthensing:matrix.orgRobert Hensing (roberth)You can just put a big oneOf in the root17:32:39
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): OK I think I got in a state I like it 19:30:40
@Ericson2314:matrix.orgJohn Ericsonhow do we review it? :)19:30:43
@Ericson2314:matrix.orgJohn Ericson* how do we review it? cause after making a bunch of changes I don't think I should just merge it :)19:31:03
@Ericson2314:matrix.orgJohn EricsonI made the hash serializer a second commit for a future Pr19:31:20
@Ericson2314:matrix.orgJohn Ericsonthis one just does the derivation serializer19:31:27
@Ericson2314:matrix.orgJohn Ericsonbut it still has multiple .yaml files19:31:34
@Ericson2314:matrix.orgJohn Ericsonand so we make sure that the cross-file references work19:31:52
@Ericson2314:matrix.orgJohn Ericson (I made a WIP hash one just to factor out hashAlgo from the current DRV json format there) 19:32:14

Show newer messages


Back to Room ListRoom Version: 6