récupération de reveal.js depuis github
This commit is contained in:
3
build.sh
3
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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user