2018-03-12 01:08:42 +01:00
|
|
|
# This derivation builds the LaTeX presentation.
|
|
|
|
|
2019-12-21 02:07:29 +01:00
|
|
|
{ pkgs, ... }:
|
2018-03-12 01:08:42 +01:00
|
|
|
|
2020-02-21 13:47:29 +01:00
|
|
|
with pkgs;
|
2019-12-21 02:07:29 +01:00
|
|
|
|
|
|
|
let tex = texlive.combine {
|
2018-03-12 01:08:42 +01:00
|
|
|
inherit (texlive)
|
|
|
|
beamer
|
|
|
|
beamertheme-metropolis
|
|
|
|
etoolbox
|
|
|
|
euenc
|
|
|
|
extsizes
|
|
|
|
fontspec
|
|
|
|
lualibs
|
|
|
|
luaotfload
|
|
|
|
luatex
|
|
|
|
minted
|
|
|
|
ms
|
|
|
|
pgfopts
|
2019-12-21 02:07:29 +01:00
|
|
|
scheme-basic
|
|
|
|
translator;
|
2018-03-12 01:08:42 +01:00
|
|
|
};
|
|
|
|
in stdenv.mkDerivation {
|
2019-12-21 02:07:29 +01:00
|
|
|
name = "nuug-bootstrapping-slides";
|
2018-03-12 01:08:42 +01:00
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
FONTCONFIG_FILE = makeFontsConf {
|
|
|
|
fontDirectories = [ fira fira-code fira-mono ];
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ tex fira fira-code fira-mono ];
|
|
|
|
buildPhase = ''
|
|
|
|
# LaTeX needs a cache folder in /home/ ...
|
|
|
|
mkdir home
|
|
|
|
export HOME=$PWD/home
|
|
|
|
# ${tex}/bin/luaotfload-tool -ufv
|
|
|
|
|
|
|
|
# As usual, TeX needs to be run twice ...
|
|
|
|
function run() {
|
|
|
|
${tex}/bin/lualatex presentation.tex
|
|
|
|
}
|
|
|
|
run && run
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
2019-12-21 02:07:29 +01:00
|
|
|
mkdir -p $out
|
|
|
|
cp presentation.pdf $out/
|
2018-03-12 01:08:42 +01:00
|
|
|
'';
|
|
|
|
}
|