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