Skip to content

Devshell module

Devshell module for developing polytropos-based Odoo addons.

Usage

Add this module to your flake to enable a development shell with all necessary dependencies for building Odoo addons:

{
    inputs = {
        devshell.url = "github:numtide/devshell";
        nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*";
        polytropos.url = "gitlab:moduon/polytropos";
    };

    outputs = inputs: {
        devShells.x86_64-linux.default = inputs.devshell.legacyPackages.x86_64-linux.mkShell {
            imports = [
                inputs.polytropos.modules.devshell.default
            ];
        };
    };
}

Entering the Devshell

nix develop --impure

Or with direnv:

direnv allow

What's Included

  • Python 3
  • UV
  • Build dependencies for Odoo addon development