From 0dfffa1b87b6378d48cfa14edd195bc4228a9dd9 Mon Sep 17 00:00:00 2001 From: adisbladis Date: Tue, 20 Jun 2023 01:59:32 +1200 Subject: [PATCH] emacs: add nativeComp passthru As reported by @terlar in https://github.com/NixOS/nixpkgs/pull/235859#issuecomment-1597012885 the removal of nativeComp in passthru breaks external tooling. This adds back `passthru.nativeComp` with a deprecation notice which sets the removal for 23.11. (cherry picked from commit 75650d79da6c841ae27cd4b1392a11d74b117c26) --- pkgs/applications/editors/emacs/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/editors/emacs/generic.nix b/pkgs/applications/editors/emacs/generic.nix index 30da08920a8f..2275cacea8bd 100644 --- a/pkgs/applications/editors/emacs/generic.nix +++ b/pkgs/applications/editors/emacs/generic.nix @@ -386,6 +386,8 @@ mkDerivation (finalAttrs: (lib.optionalAttrs withNativeCompilation { inherit withTreeSitter; pkgs = recurseIntoAttrs (emacsPackagesFor finalAttrs.finalPackage); tests = { inherit (nixosTests) emacs-daemon; }; + # Backwards compatibility aliases. Remove this at some point before 23.11 release cut-off. + nativeComp = builtins.trace "emacs.passthru: nativeComp was renamed to withNativeCompilation and will be removed in 23.11" withNativeCompilation; }; meta = {