The nix-based development environment for [alf])(https://github.com/HorizonRobotics/alf).
To activate the environment with nix
:
$ nix develop
Run the following to pull in new alf changes into nix dev env:
- Update alf branch:
cd ~/alf
git checkout pytorch
git pull
git checkout PR/breakds/alf_packaged_new # or alf_packaged (for older alf with running stats change reverted)
git rebase pytorch # resolve conflicts as needed
git push --force
- Update alf dependency for alf-nix-devenv
git rebase
cd ~/projects/alf-nix-devenv
nix flake lock --update-input alf
- Start the new devenv:
cd ~/Hobot
nix develop --option binary-caches "https://cache.nixos.org/" ~/projects/alf-nix-devenv#hobot-dev
NOTE: If direnv is installed, simply press Enter to activate new hobot devenv.
NOTE: --option binary-caches "https://cache.nixos.org/" is only needed when the local binary cache server fails to respond.