From 201019a89c9a8c841e8b4ce6598651d9be34b92f Mon Sep 17 00:00:00 2001 From: progdamn Date: Fri, 13 Nov 2026 13:37:13 +0300 Subject: [PATCH] fix: use stdenv.hostPlatform.isDarwin in comfy-kitchen override --- nix/vendored-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/vendored-packages.nix b/nix/vendored-packages.nix index e2566ef..fef9b60 100644 --- a/nix/vendored-packages.nix +++ b/nix/vendored-packages.nix @@ -4,6 +4,8 @@ versions, }: let + useDarwinArm64 = pkgs.stdenv.hostPlatform.isDarwin && pkgs.stdenv.hostPlatform.isAarch64; + mkWheel = { pname, @@ -194,7 +196,7 @@ rec { (old: { postInstall = (old.postInstall or "") - + pkgs.lib.optionalString (pkgs.stdenv.isDarwin && pkgs.stdenv.hostPlatform.isAarch64) '' + + pkgs.lib.optionalString useDarwinArm64 '' # PyTorch 2.5.1 schema inference accepts typing.List, not PEP 585 list. for module in conv3d group_norm_pad3d na sol_attn; do substituteInPlace "$out/${python.sitePackages}/comfy_kitchen/backends/eager/$module.py" \