diff --git a/flake.nix b/flake.nix index 4a09c7e..3a46af3 100644 --- a/flake.nix +++ b/flake.nix @@ -19,8 +19,27 @@ default = hyprland-headless-stream; }; - # `checks` (unit tests + the VM integration test) and `devShells` are owned - # by the test-harness workstream -- see docs/CONTRACT.md for the interface. + # `checks` (unit tests + the VM integration test) is owned by the + # test-harness workstream -- see docs/CONTRACT.md for the interface. + + devShells = forAllSystems (pkgs: { + default = pkgs.mkShell { + packages = with pkgs; [ + python3 + python3.pkgs.pytest + git + tmux + jq + hyprland + grim + ffmpeg + ]; + shellHook = '' + export PYTHONPATH="$PWD/src''${PYTHONPATH:+:$PYTHONPATH}" + echo "hhstream dev shell -- python $(python3 --version 2>&1 | cut -d' ' -f2)" + ''; + }; + }); formatter = forAllSystems (pkgs: pkgs.alejandra); };