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

flake: command to build all the derivations #3811

Open
zimbatm opened this issue Jul 14, 2020 · 3 comments
Open

flake: command to build all the derivations #3811

zimbatm opened this issue Jul 14, 2020 · 3 comments
Labels

Comments

@zimbatm
Copy link
Member

zimbatm commented Jul 14, 2020

Is your feature request related to a problem? Please describe.

I couldn't find an easy way to build all the derivations of a flake. Maybe it already exists and I missed it.

Ideally, this could be filtered by available systems since most CI don't have the remote builder setup to build all the architectures in one go.

Describe the solution you'd like

nix build <flake> --all --systems x84_64-linux

Describe alternatives you've considered

I believe that the hydra evaluator might support this. But it isn't something that is widely accessible.

Additional context

This is very useful in the context of a monorepo

@edolstra
Copy link
Member

"All the derivations of a flake" is not well-defined since a flake can have any number of outputs, only some of which are well-known (e.g. packages and checks) so we don't know how to evaluate them. But we could add a flag to nix flake check to build all packages.

@zimbatm
Copy link
Member Author

zimbatm commented Jul 14, 2020

Sounds good to me.

A related item; do you remember why nix build now only builds a single derivation and nix flake check spits out errors when non-derivations live in that structure?

@stale
Copy link

stale bot commented Feb 13, 2021

I marked this as stale due to inactivity. → More info

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

No branches or pull requests

3 participants