emacsPackages.dap-mode: fix build

https://hydra.nix-community.org/build/2991612
(cherry picked from commit fe5312cd44)

This was originally committed to the staging-next branch.  To make it
reach users sooner, we revert it on the staging-next branch and
reapply it to the master branch.

Closes: https://github.com/nix-community/emacs-overlay/issues/467
This commit is contained in:
Lin Jian
2025-02-11 12:24:42 +08:00
parent 7149c14d35
commit 882fac4717
@@ -977,14 +977,19 @@ let
cssh = ignoreCompilationError super.cssh; # elisp error
dap-mode = super.dap-mode.overrideAttrs (old: {
# empty file causing native-compiler-error-empty-byte
preBuild =
''
rm --verbose dapui.el
''
+ old.preBuild or "";
});
dap-mode = super.dap-mode.overrideAttrs (
finalAttrs: previousAttrs: {
# empty file causing native-compiler-error-empty-byte
preBuild =
if lib.versionOlder finalAttrs.version "20250131.1624" then
''
rm --verbose dapui.el
''
+ previousAttrs.preBuild or ""
else
previousAttrs.preBuild or null;
}
);
db-pg = ignoreCompilationError super.db-pg; # elisp error