summaryrefslogtreecommitdiff
path: root/shell.nix
blob: e41be4e96b489f87c24ab70c12b1a6b00ed78358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"
	'';
}