Unverified Commit 13cdb077 authored by Lin Jian's avatar Lin Jian
Browse files

emacsPackages.eglot: only build info manual when needed

parent 072a6830
Loading
Loading
Loading
Loading
+15 −13
Original line number Diff line number Diff line
@@ -54,11 +54,12 @@ in
    }
  );

  # TODO delete this when we get upstream fix https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73241
  eglot = super.eglot.overrideAttrs (old: {
  eglot = super.eglot.overrideAttrs (
    finalAttrs: previousAttrs: {
      postInstall =
      old.postInstall or ""
      + ''
        previousAttrs.postInstall or ""
        # old versions do not include an info manual
        + lib.optionalString (lib.versionAtLeast "1.17.0.20240829.5352" finalAttrs.version) ''
          local info_file=eglot.info
          pushd $out/share/emacs/site-lisp/elpa/eglot-*
          # specify output info file to override the one defined in eglot.texi
@@ -66,7 +67,8 @@ in
          install-info $info_file dir
          popd
        '';
  });
    }
  );

  jinx = super.jinx.overrideAttrs (old: {
    dontUnpack = false;