1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00

emacsPackages.eglot: only build info manual when needed (#342184)

This commit is contained in:
Lin Jian 2024-09-16 11:06:10 +08:00 committed by GitHub
commit b4af5c7b2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -54,19 +54,21 @@ in
}
);
# TODO delete this when we get upstream fix https://debbugs.gnu.org/cgi/bugreport.cgi?bug=73241
eglot = super.eglot.overrideAttrs (old: {
postInstall =
old.postInstall or ""
+ ''
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
makeinfo --output=$info_file eglot.texi
install-info $info_file dir
popd
'';
});
eglot = super.eglot.overrideAttrs (
finalAttrs: previousAttrs: {
postInstall =
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
makeinfo --output=$info_file eglot.texi
install-info $info_file dir
popd
'';
}
);
jinx = super.jinx.overrideAttrs (old: {
dontUnpack = false;