The Build Asteroids using Python and Pygame semi-guided project on boot.dev
requires the use of uv for the boot-cli tests. I had some issues getting
pygame to actually open the game window on NixOS and figured I probably needed
some additional libraries/packages, so this is a flake meant to address that +
the uv requirement.
- Clone this repo
- "Detach" code from this repo and clear Git history
cd boot-asteroids-flakerm -rf .git
- Initialize new Git repository
git init
- Stage files so
flake.nixcan be used (can also do initial commit of all files if you want)git add .- (optional)
git commit -m "batman"- "batman...because he ain't got no parents" - ThePrimeagen
- Enable
direnvactivation for the projectdirenv allow
- Create virtual environment that will be activated automatically by direnv when
entering directory
uv venv- Manually activate as prompted with
source .venv/bin/activatesince we're already in the directory
- Install python packages
uv sync