From 59dcfb6c0b1f887b9a50742b7d20bad175db1ce9 Mon Sep 17 00:00:00 2001 From: June Stepp Date: Sat, 12 Jul 2025 16:47:38 -0500 Subject: [PATCH] whisper-ctranslate2: fix aarch64-linux --- pkgs/by-name/wh/whisper-ctranslate2/package.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/wh/whisper-ctranslate2/package.nix b/pkgs/by-name/wh/whisper-ctranslate2/package.nix index b950edf4b202..fa3d1b093b0b 100644 --- a/pkgs/by-name/wh/whisper-ctranslate2/package.nix +++ b/pkgs/by-name/wh/whisper-ctranslate2/package.nix @@ -1,5 +1,6 @@ { lib, + stdenv, python3, python3Packages, fetchFromGitHub, @@ -41,6 +42,9 @@ python3Packages.buildPythonApplication { ${python3.interpreter} -m nose2 -s tests runHook postCheck ''; + # Tests fail in build sandbox on aarch64-linux, but the program still works at + # runtime. See https://github.com/microsoft/onnxruntime/issues/10038. + doCheck = with stdenv.buildPlatform; !(isAarch && isLinux); passthru.updateScript = nix-update-script { }; @@ -51,10 +55,5 @@ python3Packages.buildPythonApplication { license = lib.licenses.mit; maintainers = with lib.maintainers; [ happysalada ]; mainProgram = "whisper-ctranslate2"; - badPlatforms = [ - # terminate called after throwing an instance of 'onnxruntime::OnnxRuntimeException' - # what(): /build/source/include/onnxruntime/core/common/logging/logging.h:320 static const onnxruntime::logging::Logger& onnxruntime::logging::LoggingManager::DefaultLogger() Attempt to use DefaultLogger but none has been registered. - "aarch64-linux" - ]; }; }