jetify-com / devbox

Instant, easy, and predictable development environments
https://www.jetify.com/devbox/
Apache License 2.0
7.83k stars 187 forks source link

[Experiment] use packages, instead of buildInputs in flake.nix #2166

Closed savil closed 4 days ago

savil commented 1 week ago

Summary

In flake.nix I replace buildInputs with packages in the pkgs.mkShell.

Workarounds added:

  1. for devbox global, changed omitNixEnv=false, because its implementation relies on using the nixEnv["buildInputs"] to populate our nix profile. These buildInputs are missing because in the flake.nix I replace buildInputs=[<packages>] with packages=[<packages>]. We can update the implementation if we are formalizing this.

  2. lapp_stack and lepp_stack examples were failing because it was failing to find process-compose. I didn't look into the root cause, but I suspect this can be easily fixed since process-compose is installed natively by Devbox.

How was it tested?