about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix
diff options
context:
space:
mode:
authorLin Jian <me@linj.tech>2022-10-04 03:25:16 +0800
committerLin Jian <me@linj.tech>2022-10-04 03:25:16 +0800
commit92e4b65d22e0f47469337e6f7cff58fc3ac4e8fb (patch)
tree97d6cb03d076a9cceb13cf137f0c900549026f77 /pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix
parent2f42903346a8927d7450bb426594dad0e8ca698f (diff)
elisp-packages: fix AOT native-comp for several packages
Currently, AOT native-comp for emacs packages is implemented[1] in
postInstall. These packages override postInstall and do not keep
old.postInstall, so they do not do AOT native-comp. This patch fixes
this by keeping the old.postInstall in their overrides.

Note that I do not fix emacspeak because I have not found an elegant
way to do so.

[1]: a7cb8e36ac17526ffc2255c9c48c94be675c4d67
Diffstat (limited to 'pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix')
-rw-r--r--pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix
index 2bfc2f18e97dd..94ca0cdf0b6d8 100644
--- a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix
+++ b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix
@@ -96,7 +96,7 @@ self: let
           ./build.sh -j$NIX_BUILD_CORES
         '';
 
-        postInstall = ''
+        postInstall = (old.postInstall or "") + "\n" + ''
           ./install.sh --prefix=$out
         '';