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

[feature] init option to create a tiny shell.nix skeleton #316

Open
purcell opened this issue Apr 12, 2021 · 2 comments
Open

[feature] init option to create a tiny shell.nix skeleton #316

purcell opened this issue Apr 12, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@purcell
Copy link

purcell commented Apr 12, 2021

Just a little suggestion here:

I (and at least one of my colleagues) often create ad-hoc nix shells for existing and new projects, and would love it if we could effectively bootstrap a little nix project environment that uses niv using niv init --shell or similar. If --shell is provided and there is no existing shell.nix, a tiny shell.nix template that gets its packages from niv's nixpkgs would be created.

I know this is probably somewhat orthogonal to the tool's goals, and of course what constitutes a "good" shell.nix is a matter of opinion, but I think this would be a real timesaver for many users.

Thanks again for niv!

@SuperSandro2000
Copy link

Just replace <nixpkgs> in your inputs with import (import ./nix/sources.nix).nixpkgs { }

@purcell
Copy link
Author

purcell commented Apr 12, 2021

Well yes, I know enough to be able to do that! But I think there's still a case for a drop-dead-simple project bootstrap.

@refnil refnil added enhancement New feature or request good first issue Good for newcomers labels Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants