Using Nix

Installation

Prerequisites:

First enable Nix flakes if needed.

Optionally setup fastapi-mvc Nix binary cache to speed up the build process:

nix-env -iA cachix -f https://cachix.org/api/v1/install
cachix use fastapi-mvc

To build default package run:

nix build .#default

Or with concrete Python version, should you choose:

# Build with Python38
nix build .#example-py38
# Build with Python39
nix build .#example-py39
# Build with Python310
nix build .#example-py310

Lastly, to spawn shell for development environment run:

nix develop .#default