devbox icon indicating copy to clipboard operation
devbox copied to clipboard

Is there some kind of escape hatch to use nix

Open takeda opened this issue 1 year ago • 1 comments

What problem are you trying to solve?

This is more of a question, but perhaps is a feature request. I want to be able to have some kind of escape hatch where I can also use other Nix features. For example being able to use Nix to build my code. Is there a way to do it with devbox?

At this moment a missing piece for me is for example ability to generate path that would contain go stdlib that I can then point my IDE to.

What solution would you like?

For example with pure nix in the flake I could add:

          packages.env = pkgs.symlinkJoin {
            name = "Go env";
            paths = [
              pkgs.go
            ];
          };

And then when I would run nix build -o go-env .#env I would get a symlink in my project directory called go-env which I could then reference in GoLand. Is it possible to do the same thing with devbox?

Alternatives you've considered

No response

takeda avatar Mar 13 '24 07:03 takeda