Skip to content

Commit

Permalink
emacs: add nativeComp passthru
Browse files Browse the repository at this point in the history
As reported by @terlar in
#235859 (comment)
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.
  • Loading branch information
adisbladis committed Jun 19, 2023
1 parent 5938a09 commit 75650d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/applications/editors/emacs/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 75650d7

Please sign in to comment.