gestioCOF/shell.nix

20 lines
355 B
Nix
Raw Normal View History

2023-05-19 14:59:19 +02:00
{ pkgs ? import <nixpkgs> { }, ... }:
2022-10-03 10:34:06 +02:00
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
2022-10-03 10:34:06 +02:00
'';
2023-05-19 14:59:19 +02:00
packages = with pkgs; [
python38
python38Packages.pip
python38Packages.virtualenv
python38Packages.python-ldap
];
allowSubstitutes = false;
2022-10-03 10:34:06 +02:00
}