nixpkgs/pkgs/build-support
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
..
add-opengl-runpath
agda agda: install literate files 2020-06-01 13:59:20 +01:00
alternatives Merge pull request #92412 from matthewbauer/blas-cross 2020-08-15 08:55:57 +02:00
appimage appimage-run: parse readelf's output in C locale 2020-11-24 13:55:04 +01:00
bintools-wrapper Merge staging-next into staging 2020-11-18 15:36:56 +01:00
build-bazel-package buildBazelPackage: build name from pname/version 2020-10-28 17:55:10 +01:00
build-dotnet-package treewide: Make still dont* Variables are optional in most cases 2019-11-01 14:44:44 -04:00
build-fhs-userenv *-wrapper; Switch from infixSalt to suffixSalt 2020-05-12 00:44:44 -04:00
build-fhs-userenv-bubblewrap buildFHSUserEnvBubblewrap: use arrays for constructing argument list 2020-11-22 19:26:59 +01:00
build-setupcfg
buildenv buildenv: paths to link resolving to the same absolute path is not a conflict 2020-06-10 06:42:48 -03:00
cc-wrapper Merge pull request #96318 from matthewbauer/provide-patchelf-in-native-stdenv 2020-10-30 13:32:13 -05:00
docker nix-prefetch-docker: output informational messages to stderr 2020-12-01 16:58:29 +00:00
dotnetbuildhelpers treewide: pkg-config has targetPrefix 2020-05-16 00:21:21 +00:00
dotnetenv dotnetenv: editorconfig fixes 2020-09-21 08:30:58 +10:00
emacs emacsWithPackages: mutate EMACSLOADPATH correctly 2020-12-10 22:35:57 +00:00
expand-response-params
fetchbitbucket
fetchbower
fetchbzr treewide: replace bazaar with breezy 2020-05-25 09:22:54 +02:00
fetchcvs
fetchdarcs
fetchdocker
fetchfossil fetchfossil: Depend on cacert 2020-10-24 16:43:05 +05:30
fetchgit nix-prefetch-git: also add store path to json output 2020-05-04 17:43:29 +05:30
fetchgithub
fetchgitiles fetchFromGitiles: init 2019-12-02 22:44:33 +00:00
fetchgitlab fetchgitlab: Escape a few more characters in the revision 2020-09-13 12:34:08 +02:00
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact treewide: central.maven.org -> repo1.maven.org 2020-06-12 14:26:08 +00:00
fetchmtn
fetchnuget
fetchpatch fetchpatch: Allow using base64-encoded hash 2020-03-02 23:57:40 +01:00
fetchrepoorcz
fetchrepoproject
fetchs3
fetchsavannah
fetchsvn fetchsvn: Fix for cross 2020-03-09 02:11:45 -04:00
fetchsvnrevision pkgs/*: add final newline to .nix files 2020-11-09 11:39:28 +00:00
fetchsvnssh
fetchurl Merge branch 'master' into fetchurl-no-hash 2020-07-06 14:40:49 -04:00
fetchzip fetchzip: remove write permissions for unpacked files 2020-11-26 15:30:12 -05:00
icon-conv-tools
install-shell-files Recover the complicated situation after my bad merge 2020-10-26 09:01:04 +01:00
kernel makeModulesClosuse: read modules from corrent kernel version 2020-08-27 10:48:18 -07:00
libredirect python3Packages.python-engineio: fix build w/glibc-2.32 2020-09-12 23:04:50 +02:00
make-desktopitem make-desktopitem: desktop-file-utils is a nativeBuildInput 2020-11-27 01:17:32 +01:00
make-startupitem
make-symlinks
mkshell
mono-dll-fixer
nix-gitignore
nuke-references
ocaml ocamlPackages.buildOasis: fix handling of installation prefix 2020-07-02 07:13:34 +02:00
oci-tools
pkg-config-wrapper Revert "utils.bash: also "fix" cc-wrapper and pkg-config-wrapper" 2020-09-07 16:31:59 +02:00
prefer-remote-fetch
references-by-popularity
release nixos/testing: remove remaining coverage-data logic 2020-09-05 16:07:59 +02:00
remove-references-to
rust Merge pull request #105305 from lopsided98/build-rust-crate-platform-hash 2020-11-29 10:50:25 -05:00
setup-hooks Merge master into staging-next 2020-11-29 13:51:10 +01:00
singularity-tools utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
skaware skawarePackages.cleanPackaging: copy docFiles before rm noise 2020-05-21 19:46:38 +02:00
snap
src-only srcOnly: rename buildInputs to nativeBuildInputs 2020-04-27 14:31:40 +02:00
substitute
substitute-files
templaterpm
upstream-updater
vm utillinux: rename to util-linux 2020-11-24 12:42:06 -05:00
wrapper-common Merge #97597: stdenv wrappers: improve purity checking 2020-09-24 10:58:10 +02:00
writers writers.writeNginxConfig: fix cross-compilation 2020-10-29 21:39:22 -04:00
build-maven.nix
build-pecl.nix php.buildPecl: Allow PECLs to depend on other PECLs 2020-05-09 23:38:21 +02:00
closure-info.nix
dhall-to-nix.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
trivial-builders.nix nixos/systemd.tmpfiles.packages: fix an edge case 2020-08-16 10:23:53 +02:00