Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.17 KB

DEVELOPING.adoc

File metadata and controls

32 lines (21 loc) · 1.17 KB

for developers

provisioning developer environment with lorri and direnv

set up steps:

  • install lorri

  • install direnv (including shell hook)

  • in root directory of project: direnv allow

you’ll probably need to start lorri daemon somewhere, so that builds with be evaluated.

the advantage of this approach is that lorri will constantly rebuild & manage nix dependencies, and will cache them nicely. nix-shell will sometimes leave you in a lurch if e.g. your network goes down and it decides it needs to re-fetch everything. lorri, by comparison, would just allow you to use an old build, and would wait to update the build when network access was restored.

using home-manager for both lorri and direnv

this is a tidy way to do it:

keeping Cargo.nix fresh

cargo2nix -f

at present, this must be manually done. in the future, an automated check in CI would be nice.