diff --git a/pkgs/applications/editors/emacs/make-emacs.nix b/pkgs/applications/editors/emacs/make-emacs.nix index 841ab42f23f31..1a1211d6bf842 100644 --- a/pkgs/applications/editors/emacs/make-emacs.nix +++ b/pkgs/applications/editors/emacs/make-emacs.nix @@ -172,9 +172,7 @@ mkDerivation (finalAttrs: { ++ lib.optionals withNativeCompilation [ (replaceVars ( - if lib.versionOlder finalAttrs.version "29" then - ./native-comp-driver-options-28.patch - else if lib.versionOlder finalAttrs.version "30" then + if lib.versionOlder finalAttrs.version "30" then ./native-comp-driver-options.patch else ./native-comp-driver-options-30.patch diff --git a/pkgs/applications/editors/emacs/native-comp-driver-options-28.patch b/pkgs/applications/editors/emacs/native-comp-driver-options-28.patch deleted file mode 100644 index 98c6da305145d..0000000000000 --- a/pkgs/applications/editors/emacs/native-comp-driver-options-28.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/lisp/emacs-lisp/comp.el b/lisp/emacs-lisp/comp.el -index a5ab12ae38..e33e71cb55 100644 ---- a/lisp/emacs-lisp/comp.el -+++ b/lisp/emacs-lisp/comp.el -@@ -178,7 +178,7 @@ native-comp-compiler-options - :type '(repeat string) - :version "28.1") - --(defcustom native-comp-driver-options nil -+(defcustom native-comp-driver-options '(@backendPath@) - "Options passed verbatim to the native compiler's back-end driver. - Note that not all options are meaningful; typically only the options - affecting the assembler and linker are likely to be useful. --- -2.37.3 -