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

Nix flake support #84

Open
GaetanLepage opened this issue Apr 15, 2022 · 3 comments
Open

Nix flake support #84

GaetanLepage opened this issue Apr 15, 2022 · 3 comments

Comments

@GaetanLepage
Copy link

Feature description
Would it be interesting/chanllenging/hard for lorri to support nix flakes ?
By flake, I mean a flake having a devShell output section.
This is more a question of rather than a feature request.

Target users
More and more nix(os) users that are migrating to flakes.

@nyarly
Copy link
Collaborator

nyarly commented Jun 2, 2022

I've been using a shim shell.nix for flake work. It pretty good, but Lorri doesn't pick up the changes automatically whenflake.nix or flake.lock are changed.

It should be reasonably practical to get flakes supported directly, which is certainly a feature I'll want to look into supporting.

@haslersn
Copy link

Direnv now has an option use flake. Can lorri use this, or is that not helpful?

@nyarly
Copy link
Collaborator

nyarly commented Aug 18, 2023

I'm actually halfway through a PR to do flakes. It's suffered from deprioritization, but I think I'm well on the way.

@haslersn - use flake is adequate for many purposes, but note that it does a full flake build synchronously, so it can be several seconds (or minutes!) between prompts. Lorri has to sit "below" direnv, so direnv's use flake doesn't work for us.

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

3 participants