diff --git a/.gitignore b/.gitignore index a87887b..90109c9 100644 --- a/.gitignore +++ b/.gitignore @@ -65,3 +65,4 @@ venv db.sqlite3 public/ .direnv +.static diff --git a/default.nix b/default.nix index 1491ad9..7491a26 100644 --- a/default.nix +++ b/default.nix @@ -8,8 +8,13 @@ name = "cas-eleves.dev"; packages = [ - (pkgs.python3.withPackages (ps: [ + # Python 3.12 is required to have the correct SSL options for connecting with the legacy server + (pkgs.python312.withPackages (ps: [ ps.django + ps.ipython + ps.ldap3 + + # Local packages (ps.callPackage ./nix/django-cas-server { }) (ps.callPackage ./nix/loadcredential { }) ])) @@ -18,6 +23,13 @@ env = { CREDENTIALS_DIRECTORY = builtins.toString ./.credentials; CE_DEBUG = true; + CE_STATIC_ROOT = builtins.toString ./.static; }; + + shellHook = '' + if [ ! -d .static ]; then + mkdir .static + fi + ''; }; }