Skip to content

Instantly share code, notes, and snippets.

@alyssais
Created January 22, 2019 11:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alyssais/caa98fc9c0463d3796fc8063cd49d114 to your computer and use it in GitHub Desktop.
Save alyssais/caa98fc9c0463d3796fc8063cd49d114 to your computer and use it in GitHub Desktop.
Nix expression for building a reveal.js presentation using pandoc.
{ 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