devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Feature Request: devbox install

Open loreto opened this issue 3 years ago • 2 comments

Make it possible to install packages without starting a shell.

loreto avatar Aug 26 '22 19:08 loreto

I'm interested in taking a shot at a PR for this but I want to make sure I'm on the right path first.

From my understanding, when running devbox shell the packages aren't added until nix-shell is run here which "will build the dependencies of the specified derivation" using the .devbox/gen/shell.nix file generated here. So the new devbox install sub-command would implement similar logic but call nix-build instead.

Is there anything else that should be taken into consideration?

morey-tech avatar Sep 06 '22 15:09 morey-tech

@morey-tech That'd be great.

I think that's right, although instead of shell.nix you should use default.nix (same file used by the Dockerfile). If you send the PR, keep the install command as a "hidden" command (see the generate command for an example of a hidden command), as we'll want to do some additional testing before turning it on for everyone.

loreto avatar Sep 06 '22 21:09 loreto

linking this to the ticket and discussion at #246. Also addresses installing packages without running the shell

Lagoja avatar Oct 27 '22 04:10 Lagoja