From 3db8bc60c0983e018c5bca3fa2151611f86e8c61 Mon Sep 17 00:00:00 2001 From: Yves Dubromelle Date: Sun, 19 May 2019 19:49:44 +0200 Subject: [PATCH] ajout de asciidoctor-revealjs pour construire les diapos --- Makefile | 3 ++- default.nix | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0dff20f..8d2c393 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ all: - ${asciidoctor}/bin/asciidoctor -o ${out}/slides.html ${src}/slides.adoc + ${asciidoctor}/bin/asciidoctor -o ${out}/page.html ${src}/slides.adoc + ${asciidoctor-revealjs}/bin/asciidoctor-revealjs -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0 -o ${out}/slides.html ${src}/slides.adoc diff --git a/default.nix b/default.nix index 487263b..0c03806 100644 --- a/default.nix +++ b/default.nix @@ -1,9 +1,17 @@ with (import {}); +let asciidoctor-revealjs = bundlerApp { + pname = "asciidoctor-revealjs"; + exes = [ "asciidoctor-revealjs" ]; + + gemdir = ./.; +}; + +in derivation { name = "kafetech-fai"; builder = "${gnumake}/bin/make"; args = [ "-f" ./Makefile ]; - inherit asciidoctor; + inherit asciidoctor asciidoctor-revealjs; src = ./src; system = builtins.currentSystem; }