lol

Revert "Merge pull request #17806 from matthewbauer/emacs-wrapper"

This reverts commit da681277373320321a4e60f3491915b16f0b9f80, reversing
changes made to 2ba494b728ef9ba46e525132457a45a2384cf40e.

These changes are reverted because they cause an incompatibility which
they should not.

+4 -10
+2 -6
pkgs/build-support/emacs/wrapper.nix
··· 36 36 37 37 with lib; let inherit (self) emacs; in 38 38 39 - { 40 - packagesFun ? [], # packages explicitly requested by the user 41 - extraStart ? "" 42 - }: 39 + packagesFun: # packages explicitly requested by the user 43 40 44 41 let 45 42 explicitRequires = ··· 56 53 # Store all paths we want to add to emacs here, so that we only need to add 57 54 # one path to the load lists 58 55 deps = runCommand "emacs-packages-deps" 59 - { inherit explicitRequires lndir emacs extraStart; } 56 + { inherit explicitRequires lndir emacs; } 60 57 '' 61 58 mkdir -p $out/bin 62 59 mkdir -p $out/share/emacs/site-lisp ··· 99 96 (load-file "$emacs/share/emacs/site-lisp/site-start.el") 100 97 (add-to-list 'load-path "$out/share/emacs/site-lisp") 101 98 (add-to-list 'exec-path "$out/bin") 102 - $extraStart 103 99 EOF 104 100 105 101 # Byte-compiling improves start-up time only slightly, but costs nothing.
+2 -4
pkgs/top-level/emacs-packages.nix
··· 63 63 inherit fetchurl lib stdenv texinfo; 64 64 }; 65 65 66 - emacsWrapper = import ../build-support/emacs/wrapper.nix { 66 + emacsWithPackages = import ../build-support/emacs/wrapper.nix { 67 67 inherit lib lndir makeWrapper stdenv runCommand; 68 68 }; 69 69 ··· 71 71 72 72 inherit emacs melpaBuild trivialBuild; 73 73 74 - emacsWrapper = emacsWrapper self; 75 - 76 - emacsWithPackages = packagesFun: emacsWrapper { inherit packagesFun; }; 74 + emacsWithPackages = emacsWithPackages self; 77 75 78 76 ## START HERE 79 77