template-python / shell.nix
npv2k1's picture
feat: add asynchronous setup for webserver and transporter, and update dependencies for RabbitMQ and Uvicorn
0f53e1d
raw
history blame
544 Bytes
{ pkgs ? import <nixpkgs> {} }:
let
# Common environment variables
envVars = {
NODE_ENV = "development";
};
in pkgs.mkShell {
buildInputs = with pkgs; [
docker
docker-compose
nodejs_18
nodePackages.ts-node
];
shellHook = ''
echo "Sync packages"
uv sync
# Activate venv
if [ -d ".venv" ]; then
source .venv/bin/activate
else
echo "Virtual environment not found, creating one..."
fi
alias dev='python3 main.py'
alias python='python3'
which python3
'';
}