nixpkgs/pkgs
Alyssa Ross 0127013b0f
emacsWithPackages: mutate EMACSLOADPATH correctly
An empty entry in EMACSLOADPATH gets filled with the default value.
This is presumably why the wrapper inserted a colon after the entry it
added for the dependencies.  But this naive approach wasn't always
correct.

For example, if the user ran emacs with EMACSLOADPATH=foo, the wrapper
would insert the default value (by adding the trailing `:') even
though the user was trying to expressly opt out of it.

To do this correctly, here I've replaced makeWrapper with a bespoke
script that will actually parse the EMACSLOADPATH provided in the
environment (if given), and insert the wrapper's load path just before
the default value.  If EMACSLOADPATH is given but contains no default
value, we respect that and don't add the wrapped dependencies at all.
If no EMACSLOADPATH is given, we insert the wrapped dependencies
before the default value, just like before.  In this way, the wrapped
Emacs should now behave as if the wrapped dependencies were part of
Emacs's default load-path value.
2020-12-10 22:35:57 +00:00
..
applications Merge pull request #105621 from r-ryantm/auto-update/clipgrab 2020-12-02 01:50:52 +01:00
build-support emacsWithPackages: mutate EMACSLOADPATH correctly 2020-12-10 22:35:57 +00:00
common-updater
data Merge pull request #105579 from r-ryantm/auto-update/vimix-gtk-themes 2020-12-01 14:06:25 +01:00
desktops Merge pull request #105620 from r-ryantm/auto-update/cinnamon-desktop 2020-12-02 01:51:18 +01:00
development Merge pull request #105520 from lovesegfault/ideamaker 2020-12-02 01:43:53 +01:00
games mindustry,mindustry-server: 104.6 -> 120 (#105590) 2020-12-01 17:44:51 +01:00
misc pylance: init at 2020.11.2 (#105601) 2020-12-01 19:13:42 +01:00
os-specific linux: 5.10-rc5 -> 5.10-rc6 2020-12-01 11:29:28 -05:00
pkgs-lib
servers pinnwand: Use poetry from pythonPackages 2020-12-01 14:28:39 +01:00
shells
stdenv
test
tools Merge pull request #105628 from zowoq/ytdl 2020-12-02 01:45:42 +01:00
top-level Merge pull request #105520 from lovesegfault/ideamaker 2020-12-02 01:43:53 +01:00