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 evaluating local flakes directly #4772

Closed
Atemu opened this issue May 5, 2021 · 1 comment
Closed

Allow evaluating local flakes directly #4772

Atemu opened this issue May 5, 2021 · 1 comment

Comments

@Atemu
Copy link
Member

Atemu commented May 5, 2021

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Currently, when you do something like nix build .#hello inside a local Nixpkgs checkout, the entire needs to be dumped into the Nix store.

That takes quite a while even on an SSD and wastes erase cycles too.

This behaviour is especially problematic in combination with bash completion as it calls nix for everything separately. Bash completion is unusable with local flakes.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Local flakes should be evaluable directly just like regular local Nix expressions are.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

The state of the directory could at least be cached but that's not a great solution.

Additional context
Add any other context or screenshots about the feature request here.

https://discourse.nixos.org/t/troubles-adopting-the-new-nix/12870

@edolstra
Copy link
Member

edolstra commented May 5, 2021

Duplicate of #3121.

@edolstra edolstra closed this as completed May 5, 2021
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