From 6217cafa30f6616e902f1fe730db1834f0624a99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Mon, 30 Sep 2024 19:00:44 +0200 Subject: [PATCH] chatd: fix darwin build --- pkgs/by-name/ch/chatd/package.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/by-name/ch/chatd/package.nix b/pkgs/by-name/ch/chatd/package.nix index ad8a222ac89a..59e36a2f298c 100644 --- a/pkgs/by-name/ch/chatd/package.nix +++ b/pkgs/by-name/ch/chatd/package.nix @@ -33,9 +33,8 @@ buildNpmPackage rec { nativeBuildInputs = [ makeWrapper electron - autoPatchelfHook # for onnx libs pkg-config - ]; + ] ++ lib.optional stdenv.isLinux autoPatchelfHook; # for onnx libs buildInputs = [ stdenv.cc.cc.lib # for libstdc++.so, required by onnxruntime