emacsWithPackages: load compiled site-start.el of $emacs if possible

The first log in *Message* before this patch:

Loading /nix/store/bikm18vy6v07hmrvrll501i68440w9iw-emacs-29.1-rc1/share/emacs/site-lisp/site-start.el (source)...done

and after this patch:

Loading /nix/store/bikm18vy6v07hmrvrll501i68440w9iw-emacs-29.1-rc1/share/emacs/site-lisp/site-start (native compiled elisp)...done

authored by

Lin Jian and committed by
Anderson Torres
6505082e 1506ab49

+1 -1
+1 -1
pkgs/build-support/emacs/wrapper.nix
··· 159 159 rm -f $siteStart $siteStartByteCompiled $subdirs $subdirsByteCompiled 160 160 cat >"$siteStart" <<EOF 161 161 (let ((inhibit-message t)) 162 - (load-file "$emacs/share/emacs/site-lisp/site-start.el")) 162 + (load "$emacs/share/emacs/site-lisp/site-start")) 163 163 ;; "$out/share/emacs/site-lisp" is added to load-path in wrapper.sh 164 164 ;; "$out/share/emacs/native-lisp" is added to native-comp-eln-load-path in wrapper.sh 165 165 (add-to-list 'exec-path "$out/bin")