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

Start shell with dependencies without creating a new flake file #854

Open
tobiasBora opened this issue Feb 16, 2024 · 2 comments
Open

Start shell with dependencies without creating a new flake file #854

tobiasBora opened this issue Feb 16, 2024 · 2 comments

Comments

@tobiasBora
Copy link

It is often the case that I want to quickly spawn a shell without creating 15 lines of flake.nix. Mach-nix was proposing a syntax like:

$ nix shell mach-nix#gen.python.package1.package2

which is (despite a huge time to download 500MB of who knows what) quite practical. Would it be possible to provide something along this line for dream2nix?

@tobiasBora tobiasBora changed the title Start shell with dependencies without creating a new entry Start shell with dependencies without creating a new flake file Feb 16, 2024
@DavHau
Copy link
Member

DavHau commented Feb 18, 2024

Possible for sure. We just have to come up with an architecture for it. What's different in dream2nix is that dependencies are resolved impurely. That means we cannot put the resolver in a derivation like with mach-nix. We might be able to use something like impure-derivations to generate a lock file and then build the environment from it.

@tobiasBora
Copy link
Author

I see, cool. Actually, being able to use the current nixpkgs might be interesting to avoid downloading too much new things.

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