auto-editor: fix checks
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user