nixpkgs/pkgs/build-support
Daniel Nagy 4489718d8f
emacsWrapper: preload autoloads
This commits changes the Emacs wrapper, in order to preload all autoload
definitions when built with additional packages. The list of all
definitions is generated at build-time. Packages do not need to
be (require)d for them to work.

Before this change, a code like

```sh
nix-shell -I "nixpkgs=$PWD" -p "emacs.pkgs.withPackages(e:[e.magit])" \
          --run "emacs -Q -nw -f magit"
```

will fail with the message `Symbol’s function definition is void: magit`

After the change, the same code above will open Emacs with magit
enabled.

A slightly longer startup time of ~10ms was detected in local, informal
experiments.

More information on autoloading:
https://www.gnu.org/software/emacs/manual/html_node/eintr/Autoload.html
2022-04-17 14:36:24 +02:00
..
add-opengl-runpath
agda
alternatives lapack,blas: allow for more flexible use of ILP64 interface 2022-02-11 17:51:35 +01:00
appimage Merge pull request #161739 from Artturin/gsettingsfhsenv 2022-03-15 00:03:56 +02:00
bintools-wrapper Check link type based on expanded parameters 2022-01-01 20:30:56 +08:00
build-bazel-package buildBazelPackage: Pass --curses=no for terse logs 2021-12-04 23:36:40 +00:00
build-fhs-userenv buildFHSUserEnv: append graphics share to XDG_DATA_DIR 2022-03-24 12:53:39 -07:00
build-fhs-userenv-bubblewrap Merge pull request #164825 from ilya-fedin/fhs-less-copy 2022-04-11 16:37:01 +03:00
build-graalvm-native-image buildGraalvmNativeImage: mark as broken if Native Image is not available 2022-04-15 23:20:52 +01:00
build-setupcfg
buildenv
cc-wrapper cc-wrapper: change cflags order from cc/crt1/libc to crt1/libc/cc 2022-02-20 10:45:45 +00:00
coq coqPackages: tree-wide move packages to nativeBuildInputs and add strictDeps = true 2022-02-25 07:54:17 +01:00
dhall dhallDirectoryToNix: add this utility function 2021-12-07 13:36:21 +09:00
docker dockerTools: misc fixes 2022-04-05 17:04:59 +10:00
dotnet nuget-to-nix: add missing comma 2022-03-14 18:59:53 +01:00
emacs emacsWrapper: preload autoloads 2022-04-17 14:36:24 +02:00
expand-response-params
fake-nss fakeNss: move to toplevel 2022-03-24 18:47:30 +01:00
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdocker
fetchfirefoxaddon
fetchfossil
fetchgit fetchgit: split off deterministic-git functions 2022-02-19 14:33:20 +01:00
fetchgitea
fetchgithub fetchFromGitHub: perserve originating position 2022-02-10 10:18:16 -08:00
fetchgitiles
fetchgitlab fetchgitlab: fix unexpected argument 2021-11-18 21:53:46 +03:00
fetchgitlocal
fetchgx
fetchhg
fetchipfs treewide: clean up obsolete version checks 2022-03-22 10:54:11 +00:00
fetchmavenartifact
fetchmtn
fetchnextcloudapp
fetchpatch fetchpatch: add relative 2022-03-25 01:00:36 +01:00
fetchrepoorcz
fetchrepoproject
fetchs3
fetchsavannah
fetchsourcehut fetchFromSourcehut: allow recursive fetching 2022-01-03 16:37:16 +07:00
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl treewide: clean up obsolete version checks 2022-03-22 10:54:11 +00:00
fetchzip fetchzip: remove need for overrideAttrs 2022-02-26 08:58:08 -08:00
flutter flutter.mkFlutterApp: fix installing .desktop 2022-02-23 15:10:59 +01:00
go garble: 20200107 -> 0.5.1, switch to go_1_17 2022-01-30 07:42:46 +10:00
icon-conv-tools
install-shell-files
java
kernel nixos/stage-1-init: Pass all parameters to the builder 2022-04-16 20:36:18 +01:00
libredirect Merge remote-tracking branch 'nixpkgs/staging-next' into staging 2022-01-24 15:39:34 +00:00
make-darwin-bundle write-darwin-bundle: Invert squircle logic 2022-03-21 14:20:03 +01:00
make-desktopitem build-support/makeDesktopItem: remove workaround, fix quoting 2022-03-10 13:30:45 +03:00
make-startupitem
make-symlinks
mkshell mkShell: make it buildable (#153194) 2022-01-08 01:54:04 +01:00
mono-dll-fixer mono-dll-fixer: remove builder.sh 2021-11-20 18:01:00 +01:00
nix-gitignore treewide: clean up obsolete version checks 2022-03-22 10:54:11 +00:00
node/fetch-yarn-deps fetchYarnDeps: support more url types 2021-12-30 11:13:25 +01:00
nuke-references
ocaml ocamlPackages.buildDunePackage: add support for dune 3 2022-03-28 07:08:14 +02:00
oci-tools
pkg-config-wrapper pkg-config: make comment clearer for non-natives 2021-12-02 16:11:43 -08:00
prefer-remote-fetch
references-by-popularity
release
remove-references-to
replace-secret
rust buildRustCrate: don't try to set CARGO_FEATURE_ variables for dep: features 2022-04-16 06:53:45 -04:00
setup-hooks autoPatchelfHook: fix precise dependency ignorance 2022-04-15 10:35:11 +08:00
singularity-tools singularity: enable setting vm mem in buildImage 2022-03-03 17:09:48 -05:00
skaware skawarePackages.buildPackage: reformat with nixpkgs-fmt 2022-01-15 22:06:56 +01:00
snap
src-only
substitute
substitute-files
templaterpm
trivial-builders build-support/writeTextFile: add test for weird file names 2022-03-10 13:30:46 +03:00
vm vmTools/test: fix pcmanfm instead of pan 2021-12-31 16:47:22 +01:00
wrapper-common
writers config.allowAliases: Define as option 2022-04-01 11:33:10 +02:00
build-maven.nix
build-pecl.nix
closure-info.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
test-equal-derivation.nix testEqualDerivation: Rely on mkDerivation to sanitize name 2022-03-30 10:29:19 +02:00
trivial-builders.nix Merge #165406: staging-next 2022-03-23 2022-04-05 20:34:08 +02:00