From 8615ce3cbfec7875b755313c88eabd05c4425871 Mon Sep 17 00:00:00 2001 From: Yves Dubromelle Date: Tue, 28 May 2019 00:08:23 +0200 Subject: [PATCH] =?UTF-8?q?r=C3=A9cup=C3=A9ration=20de=20reveal.js=20depui?= =?UTF-8?q?s=20github?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 3 ++- default.nix | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index 830b2dc..3832d43 100644 --- a/build.sh +++ b/build.sh @@ -2,5 +2,6 @@ export PATH="${jre}/bin:${coreutils}/bin:${graphviz}/bin:${asciidoctor_revealjs}/bin" ${asciidoctor}/bin/asciidoctor -r asciidoctor-diagram -o ${out}/page.html ${src}/slides.adoc -asciidoctor-revealjs -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0 -r asciidoctor-diagram -o ${out}/slides.html --trace ${src}/slides.adoc +asciidoctor-revealjs -r asciidoctor-diagram -o ${out}/slides.html --trace ${src}/slides.adoc +cp -r ${revealjs} ${out}/reveal.js diff --git a/default.nix b/default.nix index 4a1246e..6c40e0a 100644 --- a/default.nix +++ b/default.nix @@ -7,11 +7,18 @@ let gemdir = ./.; }; + revealjs = fetchFromGitHub { + owner = "hakimel"; + repo = "reveal.js"; + rev = "3.7.0"; + sha256 = "1raqacq2c6rcbqkli1jygw68nqs090zm59zrbdvflk6y1mzk93nd"; + }; + in derivation { name = "kafetech-fai"; builder = "${bash}/bin/bash"; args = [ ./build.sh ]; - inherit asciidoctor asciidoctor_revealjs coreutils jre graphviz; + inherit asciidoctor asciidoctor_revealjs coreutils jre graphviz revealjs; src = ./src; system = builtins.currentSystem; }