Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluating schemas on flakes using IFD #3

Open
srid opened this issue Sep 1, 2023 · 1 comment
Open

Evaluating schemas on flakes using IFD #3

srid opened this issue Sep 1, 2023 · 1 comment

Comments

@srid
Copy link
Contributor

srid commented Sep 1, 2023

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}
@srid
Copy link
Contributor Author

srid commented Sep 1, 2023

Also, is it in scope to keep the likes of mixed-flake.nix in this repo, so consumers can use it directly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant