From 4a3be147d05f65c830d75ec6af9ab9733f976f09 Mon Sep 17 00:00:00 2001 From: utopiatopia <98685984+utopiatopia@users.noreply.github.com> Date: Sun, 14 Dec 2025 01:31:04 -0800 Subject: [PATCH] auto-editor: fix checks --- pkgs/by-name/au/auto-editor/package.nix | 31 +++++++++++-------------- 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/pkgs/by-name/au/auto-editor/package.nix b/pkgs/by-name/au/auto-editor/package.nix index 0f4d53d5e79b..4083ec87315a 100644 --- a/pkgs/by-name/au/auto-editor/package.nix +++ b/pkgs/by-name/au/auto-editor/package.nix @@ -19,8 +19,6 @@ python3, python3Packages, - nimble, - nim, }: buildNimPackage rec { @@ -71,26 +69,23 @@ buildNimPackage rec { --replace-fail '"main=auto-editor"' '"main"' ''; - # TODO: Fix checks - /* - nativeCheckInputs = [ - python3Packages.av - python3 - ]; + nativeCheckInputs = [ + python3 + python3Packages.av + ]; - checkPhase = '' - runHook preCheck + checkPhase = '' + runHook preCheck - nim c \ - ${if withHEVC then "-d:enable_hevc" else ""} \ - ${if withWhisper then "-d:enable_whisper" else ""} \ - -r $src/src/rationals + eval "nim r --nimcache:$NIX_BUILD_TOP/nimcache $nimFlags $src/tests/rationals.nim" - python3 $src/tests/test.py + substituteInPlace tests/test.py \ + --replace-fail '"./auto-editor"' "\"$out/bin/main\"" - runHook postCheck - ''; - */ + python3 tests/test.py + + runHook postCheck + ''; postInstall = '' mv $out/bin/main $out/bin/auto-editor