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

Bulk actions #4

Open
chris-martin opened this issue Aug 4, 2020 · 1 comment
Open

Bulk actions #4

chris-martin opened this issue Aug 4, 2020 · 1 comment

Comments

@chris-martin
Copy link
Collaborator

chris-martin commented Aug 4, 2020

The nix-instantiate and nix-store --realise commands are both able to accept a list of arguments to instantiate or realize multiple derivations at once. For situations where one has a list of things to build, might it afford better performance to have bulk operations like these?

instantiateMany :: [NixExpr] -> NixAction InstantiateError [StorePath Derivation]

realizeMany :: [StorePath Derivation] -> NixAction RealizeError [StorePath Realized]

I'm considering trying to write these functions, but I'm curious whether you might have any insight first on whether it seems like a worthwhile effort.

@Profpatsch
Copy link
Owner

I haven’t done anything on this project in a long time, but I’m accepting contributions.

The Shellout module should probably support as many use-cases as possible. We can also make changes to the interface.

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

2 participants