tembo.nix file to your repository root when your project needs tools that are not pre-installed in the sandbox. Tembo automatically detects the file and runs commands inside your Nix dev shell.
Prerequisites
- You have a repository connected to Tembo.
- You know which system packages or language toolchains your project needs.
Create tembo.nix
Createtembo.nix in your repository root with a default dev shell. Tembo uses devShells.x86_64-linux.default in the sandbox.
go test, cargo test, or Java build tools.
Add packages
Add packages to thepackages list. For example, this dev shell adds PostgreSQL client tools and pkg-config for projects that compile native dependencies:
Configure the shell
UseshellHook when the sandbox needs environment variables for local commands:
tembo.nix. Add secrets through your sandbox environment variables instead.
Tips
- Keep
tembo.nixfocused on system packages and toolchains that your project needs. - Commit the file so Tembo can load it in every new session.
- Use snapshots if installing dependencies still takes meaningful time at the start of each session.