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

Allow to choose system when running nix flake check #6398

Closed
yajo opened this issue Apr 11, 2022 · 2 comments
Closed

Allow to choose system when running nix flake check #6398

yajo opened this issue Apr 11, 2022 · 2 comments
Labels
UX The way in which users interact with Nix. Higher level than UI.

Comments

@yajo
Copy link
Contributor

yajo commented Apr 11, 2022

Is your feature request related to a problem? Please describe.
Trying to set up tests for a flake, if I use flake-utils to provide multiarch, nix flake check will fail always with similar messages:

error: a 'aarch64-darwin' with features {} is required to build '/nix/store/whaiyx9z56sw98nppklhiz8zw2pn4wqi-mrchefMealShallowRepo.drv', but I am a 'x86_64-linux' with features {benchmark, big-parallel, kvm, nixos-test}

Describe the solution you'd like
Some flag like nix flake check --current-system.

Describe alternatives you've considered
Not providing multiarch.

@TLATER
Copy link

TLATER commented Apr 19, 2022

I think this is a duplicate of #4265, arguably nix flake check should evaluate multiarch if you're specifying that your outputs should run on other architectures so I'm not sure this should be done if that bug is fixed in a different way.

@thufschmitt thufschmitt added the UX The way in which users interact with Nix. Higher level than UI. label Apr 28, 2022
@yajo
Copy link
Contributor Author

yajo commented May 16, 2022

Indeed, as I have an IFD in my code. Closing as duplicate.

@yajo yajo closed this as completed May 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UX The way in which users interact with Nix. Higher level than UI.
Projects
None yet
Development

No branches or pull requests

3 participants