gestioCOF/shell.nix

21 lines
441 B
Nix

{ pkgs ? import <nixpkgs> { }, ... }:
pkgs.mkShell {
shellHook = ''
export DJANGO_SETTINGS_MODULE=gestioasso.settings.local
virtualenv .venv
source .venv/bin/activate
pip install -r requirements-devel.txt | grep -v 'Requirement already satisfied:'
'';
packages = with pkgs; [
python38
python38Packages.pip
python38Packages.virtualenv
python38Packages.python-ldap
];
allowSubstitutes = false;
}