!VRULIdgoKmKPzJZzjj:nixos.org

Nix Hackers

883 Members
For people hacking on the Nix package manager itself188 Servers

Load older messages


SenderMessageTime
16 Oct 2025
@joerg:thalheim.ioMic92If you don't have gc the second best thing is rotating s3 buckets and have a cdn/load-balancer checking both15:19:19
@manveru:matrix.orgmanveru i'm not 100% certain anymore, but afaict if the NAR goes missing within the narinfo-cache-positive-ttl while there's an entry in the e.g. ~/.cache/nix/binary-cache-v7.sqlite Nix may take it personally 15:26:50
@manveru:matrix.orgmanverubut it's possible that's only true for references15:27:47
@Ericson2314:matrix.orgJohn Ericson Robert Hensing (roberth): do you know a command to convert yaml to json? 15:35:34
@Ericson2314:matrix.orgJohn Ericsonkinda want the JSON schema to be yaml 15:35:39
@Ericson2314:matrix.orgJohn Ericsonfor nicer git diffs15:35:42
@roberthensing:matrix.orgRobert Hensing (roberth) yq I guess? You can call me a freak, but I'm a happy JSON editor 15:39:54
@roberthensing:matrix.orgRobert Hensing (roberth) * John Ericson: yq I guess? You can call me a freak, but I'm a happy JSON editor 15:40:19
@roberthensing:matrix.orgRobert Hensing (roberth)

oof

$ nix-store -qR $(nix-instantiate -A nix) | cut -c 45- | grep -iE 'yq|yaml'
YAML-Tiny-1.74.tar.gz.drv
perl5.40.0-YAML-Tiny-1.74.drv
15:43:23
@Ericson2314:matrix.orgJohn Ericsonhaha ok that's a funny way to find it15:46:10
@dramforever:matrix.orgdramforeveryaml2json?15:54:18
@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

Show newer messages


Back to Room ListRoom Version: 6