From dca66c040b1f06ab35115b0e32f9e16915566938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asger=20Juul=20Brunsh=C3=B8j?= Date: Tue, 10 Jun 2025 20:50:35 +0200 Subject: [PATCH] comfyui --- .gitignore | 2 ++ flake.nix | 8 ++++++-- justfile | 15 +++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 29963da..5691bd0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ /.direnv/ +/venv-comfyui/ +/ComfyUI/ diff --git a/flake.nix b/flake.nix index edf751b..e4add4a 100644 --- a/flake.nix +++ b/flake.nix @@ -17,9 +17,13 @@ }; in basecamp.mkShell pkgs { + env.LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib"; packages = [ - (pkgs.python3.withPackages (_python-pkgs: [ - # python-pkgs.drawsvg + pkgs.just + + pkgs.gcc # For libstdc++.so.6 + + (pkgs.python312.withPackages (_python-pkgs: [ # python-pkgs.ruff # python-pkgs.jedi-language-server ])) diff --git a/justfile b/justfile index 3e77ba7..15ff430 100644 --- a/justfile +++ b/justfile @@ -12,3 +12,18 @@ fmt: # Perform automated fixes fix: bc-fix + +# Install ComfyUI +setup: + #!/usr/bin/env bash + python -m venv venv-comfyui + source venv-comfyui/bin/activate + pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu128 + git clone git@github.com:comfyanonymous/ComfyUI.git + pip install -r ComfyUI/requirements.txt + +# Run ComfyUI +run: + #!/usr/bin/env bash + source venv-comfyui/bin/activate + python ComfyUI/main.py