auto-editor: fix checks

This commit is contained in:
utopiatopia
2025-12-14 01:31:04 -08:00
parent 0eea26b532
commit 4a3be147d0
+13 -18
View File
@@ -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