emacs: set foundMakefile in buildPhase of elisp builders (#338604)

This commit is contained in:
Lin Jian
2024-09-01 20:55:50 +08:00
committed by GitHub
2 changed files with 10 additions and 0 deletions
@@ -126,6 +126,11 @@ EOF
buildPhase = args.buildPhase or ''
runHook preBuild
# This is modified from stdenv buildPhase. foundMakefile is used in stdenv checkPhase.
if [[ ! ( -z "''${makeFlags-}" && -z "''${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ) ]]; then
foundMakefile=1
fi
pushd "$NIX_BUILD_TOP"
emacs --batch -Q \
@@ -14,6 +14,11 @@ args:
buildPhase = args.buildPhase or ''
runHook preBuild
# This is modified from stdenv buildPhase. foundMakefile is used in stdenv checkPhase.
if [[ ! ( -z "''${makeFlags-}" && -z "''${makefile:-}" && ! ( -e Makefile || -e makefile || -e GNUmakefile ) ) ]]; then
foundMakefile=1
fi
emacs -L . --batch -f batch-byte-compile *.el
runHook postBuild