Is there a sample Nix code that evaluates and outputs the schema outputs as JSON via nix eval --json?
❯ head -n 3 flake.nix
{
inputs.flake = {};
outputs = inputs:
❯ nix eval --override-input flake github:srid/emanote .#contents --json | jq
[..]
error: a 'aarch64-linux' with features {} is required to build '/nix/store/wkq14bwdwmlr3axyi0al4sahs0km2ls9-cabal2nix-emanote.drv', but I am a 'aarch64-darwin' with features {benchmark, big-parallel, nixos-test}
Is there a sample Nix code that evaluates and outputs the schema outputs as JSON via
nix eval --json?I tried using https://github.com/DeterminateSystems/flakehub-push/blob/main/src/mixed-flake.nix - and while this works on normal flakes, it does not on flakes using IFD.