Fix revealjs build for org +present

Noticed through upcoming test coverage improvements.
This commit is contained in:
Marien Zwart 2024-05-26 17:19:44 +10:00
parent f7a4b53913
commit 78ad78072d
No known key found for this signature in database
3 changed files with 21 additions and 0 deletions

View file

@ -18,6 +18,7 @@
esuper,
git,
makeWrapper,
stdenvNoCC,
writeText,
}:
{
@ -185,6 +186,17 @@
./elisp-patches/helm-taskrunner-version.patch
];
};
# reveal.js is not actually an ELisp package. Doom gets straight.el to install it,
# then makes org-re-reveal use it as data.
revealjs = stdenvNoCC.mkDerivation {
pname = "revealjs";
version = "9999snapshot";
buildPhase = ''
siteDir=$out/share/emacs/site-lisp/revealjs
mkdir -p $siteDir
cp -r css dist js plugin $siteDir/
'';
};
# Make it byte-compile properly.
code-review = esuper.code-review.overrideAttrs (attrs: {
nativeBuildInputs = (attrs.nativeBuildInputs or [ ]) ++ [ git ];