emacs: make trivialBuild respect error tunables at bytecompile time

This is a follow-up of 2f7cc5a781.
This commit is contained in:
Lin Jian
2025-03-30 15:18:04 +08:00
parent 52faf482a3
commit e675cc064f
@@ -19,7 +19,12 @@ lib.extendMkDerivation {
foundMakefile=1
fi
emacs -l package -f package-initialize -L . --batch -f batch-byte-compile *.el
emacs -l package -f package-initialize \
--eval "(setq byte-compile-debug ${if finalAttrs.ignoreCompilationError then "nil" else "t"})" \
--eval "(setq byte-compile-error-on-warn ${
if finalAttrs.turnCompilationWarningToError then "t" else "nil"
})" \
-L . --batch -f batch-byte-compile *.el
runHook postBuild
'';