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

Build and containerize the nix-shell at build time #7

Open
haslersn opened this issue Dec 7, 2022 · 0 comments
Open

Build and containerize the nix-shell at build time #7

haslersn opened this issue Dec 7, 2022 · 0 comments

Comments

@haslersn
Copy link

haslersn commented Dec 7, 2022

Hi! I was looking at this template and it seems that it installs Nix at build-time and then builds & enters the nix-shell at runtime.

However, it would be nicer if the nix-shell could be built and containerized at build time. Is this possible?

In that case, the container image wouldn't even need to have Nix installed, because it's not required at runtime. This is just like a nix-shell with --pure where Nix is not installed by default. Users who want to have Nix in their development environment can add nix to the nativeBuildInputs in shell.nix.

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

1 participant