From fcdf341dfe6e6c5a9bc37bb09b860fd6ffa2a187 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 15 Dec 2024 20:01:52 -0500 Subject: [PATCH] fix(wyoming): get rid of onnx error --- nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix b/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix index 2453e2d4..1c2319b6 100644 --- a/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix +++ b/nixosModules/wyoming-plus/pkgs/wyoming-openwakeword.nix @@ -3,8 +3,9 @@ This package uses a `wyoming-openwakeword` fork that makes use of the upstream `openwakeword` instead of a fork: https://github.com/rhasspy/wyoming-openwakeword/pull/27 */ { - fetchFromGitHub, lib, + fetchFromGitHub, + onnxruntime, openwakeword, python3Packages, ... @@ -48,6 +49,11 @@ in "wyoming_openwakeword" ]; + # Native onnxruntime lib used by Python module onnxruntime can't find its other libs without this + makeWrapperArgs = [ + ''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [onnxruntime]}"'' + ]; + meta = { description = "Open source voice assistant toolkit for many human languages"; homepage = "https://github.com/rhasspy/wyoming-openwakeword";