tvix-glue: implement exportReferencesGraph.closure

#388
Opened by flokli at 2024-03-17T20·35+00

Somewhat entangled with structured attrs.

Seems to expose NIX_ATTRS_JSON_FILE and NIX_STORE env vars.

Used in nixpkgs' pkgs/build-support/binary-cache/default.nix.