nixpkgs/pkgs/build-support/emacs
Lin Jian f5fbea9761 emacsWithPackages: do not add the wrapper path twice
"$out/share/emacs/site-lisp" is added to load-path in wrapper.sh[1]
using EMACSLOADPATH and "$out/share/emacs/native-lisp/" is added to
native-comp-eln-load-path in wrapper.sh[2] using
EMACSNATIVELOADPATH. There is no point to add them again here.

Additionally, the trailing "/" in "$out/share/emacs/native-lisp/"
causes duplicate entries in native-comp-eln-load-path:

("/nix/store/hash1-emacs-packages-deps/share/emacs/native-lisp/" ; [3]
 "/home/user/.emacs.d/eln-cache/"
 "/nix/store/hash1-emacs-packages-deps/share/emacs/native-lisp"  ; [2]
 "/nix/store/hash2-emacs-29.1-rc1/lib/emacs/29.1/native-lisp/")

load-path does not change with this patch applied.

[1]: 1476c13422/pkgs/build-support/emacs/wrapper.sh (L47)
[2]: 1476c13422/pkgs/build-support/emacs/wrapper.sh (L50)
[3]: 1476c13422/pkgs/build-support/emacs/wrapper.nix (L166)
2023-08-28 15:46:04 +00:00
..
buffer.nix nixBufferBuilders: Don't assume the user has used eshell 2023-08-18 04:49:33 -04:00
elpa.nix
elpa2nix.el
emacs-funcs.sh
generic.nix build-support/emacs: synchronize with emacs' modified attributes 2023-06-07 23:26:31 -03:00
melpa.nix package-build: don't use mtime when creating tarballs 2022-09-18 10:02:53 +01:00
melpa2nix.el emacsPackages.melpaBuild: Update package-build, avoid monkey-patch 2022-05-23 12:52:17 -07:00
mk-wrapper-subdirs.el
package-build-dont-use-mtime.patch package-build: don't use mtime when creating tarballs 2022-09-18 10:02:53 +01:00
trivial.nix emacs.pkgs.trivialBuild: generate autoload file 2023-05-12 20:42:09 -03:00
wrapper.nix emacsWithPackages: do not add the wrapper path twice 2023-08-28 15:46:04 +00:00
wrapper.sh emacsWithPackages: add a note for EMACSNATIVELOADPATH 2023-08-25 17:42:21 +00:00