summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-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"
+ '';
+}