From e84c8db9a5742a6e7d2cbad054f8ea88e8bd5784 Mon Sep 17 00:00:00 2001 From: Tony Zorman Date: Thu, 16 Nov 2023 19:27:34 +0100 Subject: [PATCH] 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. --- pkgs/applications/editors/emacs/make-emacs.nix | 2 ++ 1 file changed, 2 insertions(+) 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 {