mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
emacsPackages.eglot: only build info manual when needed (#342184)
This commit is contained in:
commit
b4af5c7b2d
@ -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 (
|
||||||
eglot = super.eglot.overrideAttrs (old: {
|
finalAttrs: previousAttrs: {
|
||||||
postInstall =
|
postInstall =
|
||||||
old.postInstall or ""
|
previousAttrs.postInstall or ""
|
||||||
+ ''
|
# old versions do not include an info manual
|
||||||
local info_file=eglot.info
|
+ lib.optionalString (lib.versionAtLeast "1.17.0.20240829.5352" finalAttrs.version) ''
|
||||||
pushd $out/share/emacs/site-lisp/elpa/eglot-*
|
local info_file=eglot.info
|
||||||
# specify output info file to override the one defined in eglot.texi
|
pushd $out/share/emacs/site-lisp/elpa/eglot-*
|
||||||
makeinfo --output=$info_file eglot.texi
|
# specify output info file to override the one defined in eglot.texi
|
||||||
install-info $info_file dir
|
makeinfo --output=$info_file eglot.texi
|
||||||
popd
|
install-info $info_file dir
|
||||||
'';
|
popd
|
||||||
});
|
'';
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
jinx = super.jinx.overrideAttrs (old: {
|
jinx = super.jinx.overrideAttrs (old: {
|
||||||
dontUnpack = false;
|
dontUnpack = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user