-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
27 lines (25 loc) · 886 Bytes
/
shell.nix
File metadata and controls
27 lines (25 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# KAiTix shell.nix
# Importiert gemeinsame Pakete aus ~/Projekte/nix/common.nix
# Stack: FastAPI + Svelte5 + MySQL
# Nix Single-User auf Ubuntu
{ pkgs ? import <nixpkgs> {} }:
let
common = import ../../nix/common.nix { inherit pkgs; };
in pkgs.mkShell {
buildInputs = common.buildInputs;
shellHook = common.shellHook + ''
echo "=== KAiTix Dev Shell ==="
echo "Python: $(python3 --version)"
echo "Node: $(node --version)"
echo ""
echo "Befehle:"
echo " source .venv/bin/activate # venv aktivieren"
echo " make dev # Backend starten (Port 8003)"
echo " make dev-frontend # Svelte Frontend starten"
echo " make dev-all # Backend + Frontend parallel"
echo ""
if [ ! -d ".venv" ]; then
echo "Tipp: python3 -m venv .venv && source .venv/bin/activate && make install"
fi
'';
}