From 8c93f33a4a1d241e0a357bd8146fa397cf6c4f06 Mon Sep 17 00:00:00 2001 From: Lin Jian Date: Sat, 15 Mar 2025 20:59:12 +0800 Subject: [PATCH] emacs.pkgs.codesearch: ignore comilation error https://hydra.nix-community.org/build/4121422 --- .../emacs/elisp-packages/melpa-packages.nix | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix index ad7b2db682ba..ff999ef427c3 100644 --- a/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix +++ b/pkgs/applications/editors/emacs/elisp-packages/melpa-packages.nix @@ -923,21 +923,24 @@ let code-review = ignoreCompilationError super.code-review; # elisp error - codesearch = super.codesearch.overrideAttrs ( - finalAttrs: previousAttrs: { - patches = - if lib.versionOlder finalAttrs.version "20240827.805" then - previousAttrs.patches or [ ] - ++ [ - (pkgs.fetchpatch { - name = "remove-unused-dash.patch"; - url = "https://github.com/abingham/emacs-codesearch/commit/bd24a152ab6ea9f69443ae8e5b7351bb2f990fb6.patch"; - hash = "sha256-cCHY8Ak2fHuuhymjSF7w2MLPDJa84mBUdKg27mB9yto="; - }) - ] - else - previousAttrs.patches or null; - } + # elisp error + codesearch = ignoreCompilationError ( + super.codesearch.overrideAttrs ( + finalAttrs: previousAttrs: { + patches = + if lib.versionOlder finalAttrs.version "20240827.805" then + previousAttrs.patches or [ ] + ++ [ + (pkgs.fetchpatch { + name = "remove-unused-dash.patch"; + url = "https://github.com/abingham/emacs-codesearch/commit/bd24a152ab6ea9f69443ae8e5b7351bb2f990fb6.patch"; + hash = "sha256-cCHY8Ak2fHuuhymjSF7w2MLPDJa84mBUdKg27mB9yto="; + }) + ] + else + previousAttrs.patches or null; + } + ) ); # https://github.com/hying-caritas/comint-intercept/issues/2