cas-eleves/default.nix

41 lines
903 B
Nix
Raw Normal View History

2024-07-02 09:52:53 +02:00
{
sources ? import ./npins,
pkgs ? import sources.nixpkgs { },
}:
{
devShell = pkgs.mkShell {
name = "cas-eleves.dev";
packages = [
# Python 3.12 is required to have the correct SSL options for connecting with the legacy server
(pkgs.python312.withPackages (ps: [
2024-07-02 09:52:53 +02:00
ps.django
ps.ipython
ps.ldap3
# Local packages
2024-07-03 14:36:27 +02:00
(ps.callPackage ./nix/django-browser-reload { })
(ps.callPackage ./nix/django-bulma-forms { })
2024-07-02 09:52:53 +02:00
(ps.callPackage ./nix/django-cas-server { })
(ps.callPackage ./nix/loadcredential { })
]))
2024-07-03 14:36:27 +02:00
pkgs.gettext
pkgs.gtranslator
2024-07-02 09:52:53 +02:00
];
env = {
CREDENTIALS_DIRECTORY = builtins.toString ./.credentials;
CE_DEBUG = true;
CE_STATIC_ROOT = builtins.toString ./.static;
2024-07-02 09:52:53 +02:00
};
shellHook = ''
if [ ! -d .static ]; then
mkdir .static
fi
'';
2024-07-02 09:52:53 +02:00
};
}