From c0a59f5673b148d885b6684741d5b9cf1c3677d8 Mon Sep 17 00:00:00 2001 From: Hermenix Date: Mon, 28 Sep 2026 05:04:06 +0000 Subject: [PATCH] flake: devShell with python/pytest/tmux/hyprland/grim --- flake.nix | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) 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); };