This commit add nix support for development shells. The developer can use `nix develop` to setup a complete and reproducable devleopment environment using Nix.
947 B
947 B
Prymn
Development
Nix
The best way to setup your development environment is with Nix. As a pre-requisite, you need to install Nix and enable the experimental features nix-command and flakes.
After installation,
- Clone the repo:
git clone git@git.nikos.gg:prymn/prymn.git && cd prymn
- Run
nix develop
ornix develop -c $SHELL
to use your shell - Optionally, install rust-analyzer
- With nix:
nix profile install nixpkgs#rust-analyzer
- With nix:
Manual
Alternatively, you can install all the dependencies manually. Here's a (maybe incomplete) list of packages to install:
- gcc
- inotify-tools
- Elixir (v1.16)
- Erlang (OTP 26)
- protobuf
- protoc-gen-elixir (via
mix escript.install hex protobuf
) - Rust stable toolchain (v1.72)