diff options
author | Lin Jian <me@linj.tech> | 2024-06-27 03:06:45 +0800 |
---|---|---|
committer | Lin Jian <me@linj.tech> | 2024-06-27 03:11:27 +0800 |
commit | fdcd6eee1b01fadb5121f31b0d660cab6fe023a3 (patch) | |
tree | c5d3e50c2e1db25cfd93e74ce11207eff0350169 | |
parent | fba0991e11bde8394c104b22fa4bae0fe7e1151a (diff) |
emacs.pkgs.org: stop applying a patch if not needed
Org 9.7.5 has this patch.
This fixes https://github.com/nix-community/emacs-overlay/issues/411.
-rw-r--r-- | pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix | 2 | ||||
-rw-r--r-- | pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix index 9550969adbbe..192320fab674 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/elpa-devel-packages.nix @@ -66,7 +66,7 @@ self: let org = super.org.overrideAttrs (old: { dontUnpack = false; - patches = old.patches or [ ] ++ [ + patches = old.patches or [ ] ++ lib.optionals (lib.versionOlder old.version "9.7.5") [ # security fix backported from 9.7.5 (pkgs.fetchpatch { url = "https://git.savannah.gnu.org/cgit/emacs/org-mode.git/patch/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8"; diff --git a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix index a3d729b636ee..3e8ab4625fec 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/elpa-packages.nix @@ -143,7 +143,7 @@ self: let org = super.org.overrideAttrs (old: { dontUnpack = false; - patches = old.patches or [ ] ++ [ + patches = old.patches or [ ] ++ lib.optionals (lib.versionOlder old.version "9.7.5") [ # security fix backported from 9.7.5 (pkgs.fetchpatch { url = "https://git.savannah.gnu.org/cgit/emacs/org-mode.git/patch/?id=f4cc61636947b5c2f0afc67174dd369fe3277aa8"; |