summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2025-12-20 22:08:26 -0600
committerTim Keller <tjk@tjkeller.xyz>2025-12-20 22:08:35 -0600
commit0822f9c93729d97cb355028f7c4d79ee4e542961 (patch)
tree0215a8dc7ceb20b1810a25471c09007520aa42d9
parent015a7f3850f141fd65708b5aafa8d2bc4caafe04 (diff)
downloadimmich-frame-0822f9c93729d97cb355028f7c4d79ee4e542961.tar.xz
immich-frame-0822f9c93729d97cb355028f7c4d79ee4e542961.zip
add shell.nix for easier debugging
-rw-r--r--shell.nix26
1 files changed, 26 insertions, 0 deletions
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 <nixpkgs> {} }: 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"
+ '';
+}