{ sources ? import ./npins, pkgs ? import sources.nixpkgs { }, }: let nix-pkgs = import sources.nix-pkgs { inherit pkgs; }; python3 = pkgs.python3.override { packageOverrides = _: _: { inherit (nix-pkgs) authens loadcredential; }; }; in { devShell = pkgs.mkShell { name = "annuaire.dev"; packages = [ (python3.withPackages (ps: [ ps.django ps.pillow ps.loadcredential ps.authens ps.python-dateutil ])) ]; env = { DJANGO_SETTINGS_MODULE = "app.settings"; CREDENTIALS_DIRECTORY = builtins.toString ./.credentials; ANNUAIRE_DEBUG = builtins.toJSON true; ANNUAIRE_STATIC_ROOT = builtins.toString ./.static; }; shellHook = '' if [ ! -d .static ]; then mkdir .static fi ''; }; }