fix(users/flokli/slides/2023-nixcon): fix pdf gen
reveal-md didn't exit with a nonzero exit code and just didn't contain the PDF. Fix this. Change-Id: Ie4bc7cbf4b9117b0a672a3294e9e64fb13459247 Reviewed-on: https://cl.tvl.fyi/c/depot/+/12683 Autosubmit: flokli <flokli@flokli.de> Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
5faa3f9c65
commit
f3f20c2080
1 changed files with 4 additions and 4 deletions
|
@ -18,9 +18,6 @@ stdenv.mkDerivation {
|
|||
fontDirectories = with pkgs; [ jetbrains-mono fira fira-code fira-mono lato ];
|
||||
};
|
||||
|
||||
PUPPETEER_EXECUTABLE_PATH = "${pkgs.chromium}/bin/chromium";
|
||||
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = "1";
|
||||
|
||||
nativeBuildInputs = [ pkgs.reveal-md pkgs.graphviz ];
|
||||
|
||||
buildPhase = ''
|
||||
|
@ -31,7 +28,10 @@ stdenv.mkDerivation {
|
|||
|
||||
mkdir -p $out
|
||||
reveal-md --static $out presentation.md
|
||||
reveal-md --print $out/slides.pdf presentation.md
|
||||
cp tvixbolt.webm $out
|
||||
|
||||
CHROME_CONFIG_HOME=/build/.config reveal-md presentation.md --print $out/slides.pdf --puppeteer-chromium-executable="${pkgs.chromium}/bin/chromium"
|
||||
# Above command doesn't fail on error, ensure file has been created
|
||||
[[ -f "$out/slides.pdf" ]] || exit 1
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue