This crate builds a bin used by the scripts to parse the output of nix flake metadata --json (which is also the lockfile content)
nix flake metadata --json