Files
nix-config/packages/comfyui/comfyui-desktop/default.nix
mjallen18 a9c1d71495 fmt
2026-02-04 20:40:34 -06:00

58 lines
1.3 KiB
Nix

{
stdenv,
lib,
fetchFromGitHub,
...
}:
stdenv.mkDerivation rec {
pname = "comfyui-desktop";
version = "0.8.0";
src = fetchFromGitHub {
owner = "Comfy-Org";
repo = "desktop";
tag = "v${version}";
hash = "sha256-hPqC6JsQp3pwx7JkrtTNjhxaKLp/4e2VBRT4wjrxvtE=";
};
dontUnpack = false;
dontBuild = true;
dontConfigure = true;
nativeBuildInputs = [ ];
installPhase = ''
mkdir -p $out
cp -r $src $out
'';
# ln -s ${comfyUiLauncher}/bin/comfy-ui $out/bin/comfy-ui
# ln -s $out/bin/comfy-ui $out/bin/comfyui
passthru = {
inherit
# comfyuiSrc
# pythonRuntime
# modelDownloaderDir
# frontendRoot
# dependencies
version
;
};
meta = with lib; {
description = "ComfyUI - A powerful and modular diffusion model GUI";
homepage = "https://github.com/comfyanonymous/ComfyUI";
# ComfyUI is GPL-3.0; bundled custom nodes have various licenses
license = with licenses; [
gpl3 # ComfyUI, Impact Pack, KJNodes
agpl3Only # bitsandbytes-NF4
mit # rgthree-comfy, Florence2, MMAudio
asl20 # GGUF, LTXVideo, x-flux, PuLID, WanVideoWrapper
];
platforms = platforms.linux ++ platforms.darwin;
maintainers = [ ];
mainProgram = "comfy-ui";
};
}