Skip to content

Evaluating schemas on flakes using IFD #3

@srid

Description

@srid

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.

❯ 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}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions