How to setup a dev environment for Opentrons using nix
The DEV_SETUP.md
for opentrons is quite complicated, with many manual steps, especially if someone only wants to work on part of opentrons. This repo shows you how to create a development environment with nix-shell as an alternative.
- download the file shell.nix
- Install Nix (or use Nix docker)
- To use docker, install docker, then run
$ docker run -it -p 8080:8080 -v $(pwd)/:/workdir nixos/nix
from within the opentrons mono-repo
- To use docker, install docker, then run
- run
$ cd workdir
then$ nix-shell
- done!
Now that the development environment is ready, you can run
$ make setup
to download and compile dependencies
$ cd protocol-designer; make dev
to start hacking on the protocol designer (for example)