- Install Nix, instructions are found here nixos.org
- Launch a development environment with
nix develop - Build the project with
nix build(output path isresult/bin) - Test the project with
nix develop -c make test(or runmake testwhile inside the development shell) - Lint the project with
nix develop -c make lint(or runmake lintwhile inside the development shell) - Build a docker image with
nix build .#containerand load the image withdocker load < result
All current dependencies are ready and available inside nix develop, so it is encouraged to use it for developing.
If the go.mod file changes due to an upgrade, please remember to run gomod2nix generate to rehydrate the gomod2nix.toml file. This file
tracks the dependencies as separatate nix packages and are thus versioned with the flake.