Created
January 22, 2019 11:32
-
-
Save alyssais/caa98fc9c0463d3796fc8063cd49d114 to your computer and use it in GitHub Desktop.
Nix expression for building a reveal.js presentation using pandoc.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import (builtins.fetchTarball { | |
# nixpkgs-unstable 2019-01-22 | |
url = https://github.com/NixOS/nixpkgs/archive/a5de41088031e6d3d4f799ef3964317a74e72169.tar.gz; | |
sha256 = "0ycsai65dbcwmns36a0pkxpsgpl86q273c27ag80nijfb1w88201"; | |
}) {} | |
, revealjs ? pkgs.fetchFromGitHub { | |
owner = "hakimel"; | |
repo = "reveal.js"; | |
rev = "3.7.0"; | |
sha256 = "1raqacq2c6rcbqkli1jygw68nqs090zm59zrbdvflk6y1mzk93nd"; | |
} | |
}: | |
pkgs.runCommand "ruby-talk" {} '' | |
mkdir $out | |
ln -s ${revealjs} $out/reveal.js | |
${pkgs.pandoc}/bin/pandoc -s -t revealjs -o $out/index.html ${./slides.md} | |
'' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment