diff options
Diffstat (limited to 'pkgs/applications/editors/emacs-24/default.nix')
-rw-r--r-- | pkgs/applications/editors/emacs-24/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix index 7f765b9afc85..05454aaa9c93 100644 --- a/pkgs/applications/editors/emacs-24/default.nix +++ b/pkgs/applications/editors/emacs-24/default.nix @@ -44,6 +44,10 @@ stdenv.mkDerivation rec { postPatch = '' sed -i 's|/usr/share/locale|${gettext}/share/locale|g' lisp/international/mule-cmds.el + # emacs runs then dumps itself. In the process, it keeps a copy of the + # PATH env var, holding all the build inputs in it's closure. + # Prevent that by running the self-dumping emacs with an empty PATH. + sed -i 's|^RUN_TEMACS = |&PATH= |' src/Makefile.in ''; buildInputs = |