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 addOpenGLRunpath: only apply to ELF files 2019-05-23 16:52:45 -04:00
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 all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchbower
fetchbzr treewide: replace bazaar with breezy 2020-05-25 09:22:54 +02:00
fetchcvs
fetchdarcs
fetchdocker treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
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 all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
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 prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
fetchipfs prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
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 all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
fetchrepoproject fetchRepoProject: add manifestName parameter 2019-09-11 16:11:43 +00:00
fetchs3
fetchsavannah all-packages: move fetch* to pkgs/build-support/ 2019-01-26 22:47:54 -05:00
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 fetchsvnssh: move defaults to package file 2019-02-03 15:30:27 +00:00
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 mkshell: improve mergeInputs 2019-06-23 22:20:10 +02:00
mono-dll-fixer
nix-gitignore nix-gitignore: init at v3.0.0 (#46112) 2019-02-18 09:57:30 +00:00
nuke-references nukeReferences: Use stdenvNoCC 2019-10-11 17:12:09 +02:00
ocaml ocamlPackages.buildOasis: fix handling of installation prefix 2020-07-02 07:13:34 +02:00
oci-tools ociTools: init 2019-09-04 22:46:42 +00:00
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 prefer-fetch-remote: an overlay to fetch on remote builders 2019-01-18 14:41:10 +00:00
references-by-popularity references-by-popularity: cache computation to avoid memory bloat 2019-03-05 16:37:52 -05:00
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 doc: fix after snaptools merge 2019-07-10 08:02:14 -07:00
src-only srcOnly: rename buildInputs to nativeBuildInputs 2020-04-27 14:31:40 +02:00
substitute substituteAll: allowSubstitutes = false; 2019-02-07 22:20:42 +00:00
substitute-files substituteAllFiles: allowSubstitutes = false 2019-02-08 00:22:51 +00:00
templaterpm treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
upstream-updater treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
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 buildMaven: Support metadata-only dependencies 2018-11-29 17:29:59 +00:00
build-pecl.nix php.buildPecl: Allow PECLs to depend on other PECLs 2020-05-09 23:38:21 +02:00
closure-info.nix treewide: remove unused variables (#63177) 2019-06-16 19:59:05 +00:00
dhall-to-nix.nix treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix treewide: Change URLs to HTTPS 2019-04-22 10:19:54 +02:00
trivial-builders.nix nixos/systemd.tmpfiles.packages: fix an edge case 2020-08-16 10:23:53 +02:00