mu: enable AOT native-comp for emacs lisp
This commit is contained in:
parent
2f42903346
commit
15ebd7cc3d
@ -31,6 +31,17 @@ stdenv.mkDerivation rec {
|
||||
--replace "/bin/rm" "${coreutils}/bin/rm"
|
||||
'';
|
||||
|
||||
# AOT native-comp, mostly copied from pkgs/build-support/emacs/generic.nix
|
||||
postInstall = lib.optionalString (emacs.nativeComp or false) ''
|
||||
mkdir -p $out/share/emacs/native-lisp
|
||||
export EMACSLOADPATH=$out/share/emacs/site-lisp/mu4e:
|
||||
export EMACSNATIVELOADPATH=$out/share/emacs/native-lisp:
|
||||
|
||||
find $out/share/emacs -type f -name '*.el' -print0 \
|
||||
| xargs -0 -I {} -n 1 -P $NIX_BUILD_CORES sh -c \
|
||||
"emacs --batch --eval '(setq large-file-warning-threshold nil)' -f batch-native-compile {} || true"
|
||||
'';
|
||||
|
||||
buildInputs = [ emacs glib gmime3 texinfo xapian ];
|
||||
|
||||
mesonFlags = [
|
||||
|
Loading…
Reference in New Issue
Block a user