Unverified Commit 882fac47 authored by Lin Jian's avatar Lin Jian
Browse files

emacsPackages.dap-mode: fix build

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

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
parent 7149c14d
Loading
Loading
Loading
Loading
+13 −8
Original line number Diff line number Diff line
@@ -977,14 +977,19 @@ let

        cssh = ignoreCompilationError super.cssh; # elisp error

        dap-mode = super.dap-mode.overrideAttrs (old: {
        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
                ''
            + old.preBuild or "";
        });
                + previousAttrs.preBuild or ""
              else
                previousAttrs.preBuild or null;
          }
        );

        db-pg = ignoreCompilationError super.db-pg; # elisp error