From 51bd7cf0d05f996c74b8fabebc755a2fe253b50e Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Wed, 8 Jun 2022 02:41:06 +0800 Subject: emacs: enable native-comp --- .../from_md/release-notes/rl-2211.section.xml | 28 ++++++++++++++++++++++ nixos/doc/manual/release-notes/rl-2211.section.md | 4 ++++ 2 files changed, 32 insertions(+) (limited to 'nixos') diff --git a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml index 2e3dfea8cb6ed..ce161fca5b406 100644 --- a/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml +++ b/nixos/doc/manual/from_md/release-notes/rl-2211.section.xml @@ -70,6 +70,34 @@ with any supported NixOS release. + + + emacs enables native compilation which + means: + + + + + emacs packages from nixpkgs, builtin or not, will do + native compilation ahead of time so you can enjoy the + benefit of native compilation without compiling them on + you machine; + + + + + emacs packages from somewhere else, e.g. + package-install, will do asynchronously + deferred native compilation. If you do not want this, + maybe to avoid CPU consumption for compilation, you can + use + (setq native-comp-deferred-compilation nil) + to disable it while still enjoy the benefit of native + compilation for packages from nixpkgs. + + + + nixos-generate-config now generates diff --git a/nixos/doc/manual/release-notes/rl-2211.section.md b/nixos/doc/manual/release-notes/rl-2211.section.md index 6bc7d1917cae8..eea3eef264066 100644 --- a/nixos/doc/manual/release-notes/rl-2211.section.md +++ b/nixos/doc/manual/release-notes/rl-2211.section.md @@ -35,6 +35,10 @@ In addition to numerous new and upgraded packages, this release has the followin for a transition period so that in time the ecosystem can switch without breaking compatibility with any supported NixOS release. +- `emacs` enables native compilation which means: + - emacs packages from nixpkgs, builtin or not, will do native compilation ahead of time so you can enjoy the benefit of native compilation without compiling them on you machine; + - emacs packages from somewhere else, e.g. `package-install`, will do asynchronously deferred native compilation. If you do not want this, maybe to avoid CPU consumption for compilation, you can use `(setq native-comp-deferred-compilation nil)` to disable it while still enjoy the benefit of native compilation for packages from nixpkgs. + - `nixos-generate-config` now generates configurations that can be built in pure mode. This is achieved by setting the new `nixpkgs.hostPlatform` option. -- cgit 1.4.1