Files
Backend/shell.nix
T

20 lines
300 B
Nix
Raw Normal View History

2025-10-22 22:48:49 +03:00
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
buildInputs = with pkgs; [
python3
];
shellHook = ''
if [ ! -d ".venv" ]; then
python -m venv .venv
fi
source .venv/bin/activate
if [ -f "dependencies.txt" ]; then
pip install -r dependencies.txt
fi
'';
}