about summary refs log tree commit diff
path: root/pkgs/applications/editors/emacs
diff options
context:
space:
mode:
authorTony Zorman <soliditsallgood@mailbox.org>2023-11-16 19:27:34 +0100
committerTony Zorman <soliditsallgood@mailbox.org>2023-11-17 13:28:28 +0100
commite84c8db9a5742a6e7d2cbad054f8ea88e8bd5784 (patch)
treeb13665647cafe7caa314147cbcbbe92e38a26ba3 /pkgs/applications/editors/emacs
parent0c08ce949ac254843e3b4df2aee7cd3e5019d489 (diff)
downloadnixlib-e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784.tar
nixlib-e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784.tar.gz
nixlib-e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784.tar.bz2
nixlib-e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784.tar.lz
nixlib-e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784.tar.xz
nixlib-e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784.tar.zst
nixlib-e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784.zip
emacs: Add withCompressInstall flag
When enabled (the default), Emacs compresses its files (.c, .el, .info,
and so on) before installing them.

Disabling the option with `withCompressInstall = false` results in the
suppression of that compression step. This increases disk space, but is
slightly faster for some operations; Emacs does not have to decompress
these files on the fly when, for example, jumping to the definition of a
built-in function.
Diffstat (limited to 'pkgs/applications/editors/emacs')
-rw-r--r--pkgs/applications/editors/emacs/make-emacs.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix
index c5cc91c1268d..789420fdfc6e 100644
--- a/pkgs/applications/editors/emacs/make-emacs.nix
+++ b/pkgs/applications/editors/emacs/make-emacs.nix
@@ -90,6 +90,7 @@
 , withXinput2 ? withX && lib.versionAtLeast version "29"
 , withXwidgets ? !stdenv.isDarwin && !noGui && (withGTK3 || withPgtk)
 , withSmallJaDic ? false
+, withCompressInstall ? true
 
 # Options
 , siteStart ? ./site-start.el
@@ -339,6 +340,7 @@ mkDerivation (finalAttrs: {
   ++ lib.optional withXinput2 "--with-xinput2"
   ++ lib.optional withXwidgets "--with-xwidgets"
   ++ lib.optional withSmallJaDic "--with-small-ja-dic"
+  ++ lib.optional (!withCompressInstall) "--without-compress-install"
   ;
 
   env = lib.optionalAttrs withNativeCompilation {