This commit is contained in:
2 changed files with 115 additions and 0 deletions

31
shell.nix Normal file
View File

@@ -0,0 +1,31 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.mkShell {
name = "ga-dev-shell";
buildInputs = with pkgs; [
python3
python3Packages.pip
python3Packages.numpy
python3Packages.matplotlib
python3Packages.pygame
# Optional: use pip to install clifford in virtualenv
];
shellHook = ''
echo "Python environment with pygame and numpy ready."
# Optional: set up venv and install clifford via pip if needed
if [ ! -d .venv ]; then
python -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
pip install kingdon
echo "Installed clifford in virtual environment."
else
source .venv/bin/activate
echo "Activated existing virtual environment."
fi
'';
}