From 5b00f4037e90d29aa1b4fc297f3e3f0dea2c6b42 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Tue, 30 Aug 2016 10:27:57 +0200 Subject: [PATCH] emacs24: nuke extra references to buildInputs --- pkgs/applications/editors/emacs-24/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/editors/emacs-24/default.nix b/pkgs/applications/editors/emacs-24/default.nix index 7f765b9afc8..05454aaa9c9 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 =