From f1aa5a9ca7939b9a44bea720e264cf0b672e57ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Sun, 30 Aug 2020 19:10:08 +0200 Subject: [PATCH] Fix `(org +present)` by downloading `reveal.js` See the following commit in doom-emacs: > commit 723583e8d737fac93a05fe9dc06a233f3efdc305 > Author: Diego Zamboni > Date: Thu Aug 27 07:15:14 2020 +0200 > > Automatically download reveal.js and use local copy, default to v4 (#3846) > > * Automatically download reveal.js upgrade to v4 > > The +present option now automatically checks out the reveal.js > repository and configures org-re-reveal to use it. It also now uses > reveal.js 4 instead of 3.9.2. > > * Changed :init to :config --- nix/sources.json | 12 ++++++++++++ overrides.nix | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/nix/sources.json b/nix/sources.json index 472081c..e2c7835 100644 --- a/nix/sources.json +++ b/nix/sources.json @@ -167,6 +167,18 @@ "url": "https://github.com/arnested/php-extras/archive/d410c5af663c30c01d461ac476d1cbfbacb49367.tar.gz", "url_template": "https://github.com///archive/.tar.gz" }, + "reveal.js": { + "branch": "master", + "description": "The HTML Presentation Framework", + "homepage": "https://revealjs.com", + "owner": "hakimel", + "repo": "reveal.js", + "rev": "15815efe05ca69c35ce66cfdbf93316e1db66ecb", + "sha256": "1g3h710rhpyq4vnh6rgyay2dyjpw4rw99p062yhwhgrjkgjyzrc2", + "type": "tarball", + "url": "https://github.com/hakimel/reveal.js/archive/15815efe05ca69c35ce66cfdbf93316e1db66ecb.tar.gz", + "url_template": "https://github.com///archive/.tar.gz" + }, "rotate-text.el": { "branch": "master", "description": "Emacs: cycle through words, symbols and patterns", diff --git a/overrides.nix b/overrides.nix index ccae250..e59f414 100644 --- a/overrides.nix +++ b/overrides.nix @@ -71,6 +71,18 @@ self: super: { pname = "php-extras"; }; + revealjs = self.straightBuild { + pname = "reveal.js"; + ename = "revealjs"; + + installPhase = '' + LISPDIR=$out/share/emacs/site-lisp + install -d $LISPDIR + + cp -r * $LISPDIR + ''; + }; + rotate-text = self.straightBuild { pname = "rotate-text.el"; ename = "rotate-text";