git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit64ba7b53f189e0cb268fe42eb8496bfb765aac2e authorThomas Tuegel <ttuegel@gmail.com> dateFri 19 Aug 2016, 15:09 (10 years ago) parent4574f22
2 files changed+4−10
pkgs/build-support/emacs/wrapper.nix+2−6 pkgs/top-level/emacs-packages.nix+2−4
pkgs/build-support/emacs/wrapper.nix+2−6
@@ -36,10 +36,7 @@ in customEmacsPackages.emacsWithPackages (epkgs: [ epkgs.evil epkgs.magit ])
3636
3737with lib; let inherit (self) emacs; in
3838
39−{
40− packagesFun ? [], # packages explicitly requested by the user
41− extraStart ? ""
42−}:
39+packagesFun: # packages explicitly requested by the user
4340
4441let
4542 explicitRequires =
@@ -56,7 +53,7 @@ stdenv.mkDerivation {
5653 # Store all paths we want to add to emacs here, so that we only need to add
5754 # one path to the load lists
5855 deps = runCommand "emacs-packages-deps"
59− { inherit explicitRequires lndir emacs extraStart; }
56+ { inherit explicitRequires lndir emacs; }
6057 ''
6158 mkdir -p $out/bin
6259 mkdir -p $out/share/emacs/site-lisp
@@ -99,7 +96,6 @@ stdenv.mkDerivation {
9996(load-file "$emacs/share/emacs/site-lisp/site-start.el")
10097(add-to-list 'load-path "$out/share/emacs/site-lisp")
10198(add-to-list 'exec-path "$out/bin")
102−$extraStart
10399EOF
104100
105101 # Byte-compiling improves start-up time only slightly, but costs nothing.
pkgs/top-level/emacs-packages.nix+2−4
@@ -63,7 +63,7 @@ let
6363 inherit fetchurl lib stdenv texinfo;
6464 };
6565
66− emacsWrapper = import ../build-support/emacs/wrapper.nix {
66+ emacsWithPackages = import ../build-support/emacs/wrapper.nix {
6767 inherit lib lndir makeWrapper stdenv runCommand;
6868 };
6969
@@ -71,9 +71,7 @@ let
7171
7272 inherit emacs melpaBuild trivialBuild;
7373
74− emacsWrapper = emacsWrapper self;
75−
76− emacsWithPackages = packagesFun: emacsWrapper { inherit packagesFun; };
74+ emacsWithPackages = emacsWithPackages self;
7775
7876 ## START HERE
7977