From 0822f9c93729d97cb355028f7c4d79ee4e542961 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Sat, 20 Dec 2025 22:08:26 -0600 Subject: add shell.nix for easier debugging --- shell.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 shell.nix diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..e41be4e --- /dev/null +++ b/shell.nix @@ -0,0 +1,26 @@ +{ pkgs ? import {} }: let + pythonBuildInputs = with pkgs.python3Packages; [ + # Build dependencies + setuptools + # Dependencies from pyproject.yaml + flask + flask-cors # DEBUG + flask-socketio + numpy + pillow + platformdirs + pygame + pyopengl + requests + ]; +in pkgs.mkShell { + buildInputs = with pkgs; [ + nodejs + python3 + ] ++ pythonBuildInputs; + + shellHook = '' + alias immich-frame="python -m ./src/server" + echo "Build frontend with \`npm i && npm run build\`. Run \`immich-frame\` to start server" + ''; +} -- cgit v1.2.3