summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorGuillaume Maudoux <layus.on@gmail.com>2016-08-30 10:27:57 +0200
committerGuillaume Maudoux <layus.on@gmail.com>2016-08-30 11:00:54 +0200
commit5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42 (patch)
treeccd9a0cbddf1b5dc563df3ae44aacaa73f12b1c4 /pkgs/applications
parent84bcaf5461579fbcbbd6f3c068d69d02ac38793b (diff)
downloadnixlib-5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42.tar
nixlib-5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42.tar.gz
nixlib-5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42.tar.bz2
nixlib-5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42.tar.lz
nixlib-5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42.tar.xz
nixlib-5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42.tar.zst
nixlib-5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42.zip
emacs24: nuke extra references to buildInputs
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/editors/emacs-24/default.nix4
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 =