gestioCOF/shell.nix

31 lines
473 B
Nix
Raw Normal View History

2024-02-11 19:58:55 +01:00
{
pkgs ? import <nixpkgs> { },
...
}:
2022-10-03 10:34:06 +02:00
2023-05-22 10:57:11 +02:00
let
2024-02-11 19:58:55 +01:00
python = pkgs.python39;
2023-05-22 10:57:11 +02:00
in
2023-05-19 14:59:19 +02:00
pkgs.mkShell {
shellHook = ''
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
2022-10-03 10:34:06 +02:00
2023-05-19 14:59:19 +02:00
virtualenv .venv
source .venv/bin/activate
2023-05-19 15:12:51 +02:00
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
2022-10-03 10:34:06 +02:00
'';
2024-02-11 19:58:55 +01:00
packages =
[ python ]
++ (with python.pkgs; [
django-types
pip
virtualenv
python-ldap
]);
2023-05-19 14:59:19 +02:00
allowSubstitutes = false;
2022-10-03 10:34:06 +02:00
}