lol

Merge pull request #194281 from linj-fork/mu4e-enable-native-comp

mu: enable AOT native-comp for emacs lisp

authored by

adisbladis and committed by
GitHub
8af8e36b 57aad37a

+11
+11
pkgs/tools/networking/mu/default.nix
··· 31 31 --replace "/bin/rm" "${coreutils}/bin/rm" 32 32 ''; 33 33 34 + # AOT native-comp, mostly copied from pkgs/build-support/emacs/generic.nix 35 + postInstall = lib.optionalString (emacs.nativeComp or false) '' 36 + mkdir -p $out/share/emacs/native-lisp 37 + export EMACSLOADPATH=$out/share/emacs/site-lisp/mu4e: 38 + export EMACSNATIVELOADPATH=$out/share/emacs/native-lisp: 39 + 40 + find $out/share/emacs -type f -name '*.el' -print0 \ 41 + | xargs -0 -I {} -n 1 -P $NIX_BUILD_CORES sh -c \ 42 + "emacs --batch --eval '(setq large-file-warning-threshold nil)' -f batch-native-compile {} || true" 43 + ''; 44 + 34 45 buildInputs = [ emacs glib gmime3 texinfo xapian ]; 35 46 36 47 mesonFlags = [