about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-10-26T08·37+0200
committerflokli <flokli@flokli.de>2024-10-26T10·13+0000
commit0bc686448c30704f91f1cfaf7bcec8e69402d1b8 (patch)
tree4a307c95b130bba4ac5e35d7926408d82510e693
parentf3f20c2080f1721d099d0c472740763ee062543a (diff)
feat(users/flokli/slides/2023-asg): add pdf r/8859
Change-Id: I85b1f2a9bb99df01546f3d0d3f60d9953f1d8d61
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12684
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: flokli <flokli@flokli.de>
-rw-r--r--users/flokli/presentations/2023-09-13-asg-tvix-store/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/users/flokli/presentations/2023-09-13-asg-tvix-store/default.nix b/users/flokli/presentations/2023-09-13-asg-tvix-store/default.nix
index 840f21de8103..e1709a06786d 100644
--- a/users/flokli/presentations/2023-09-13-asg-tvix-store/default.nix
+++ b/users/flokli/presentations/2023-09-13-asg-tvix-store/default.nix
@@ -28,5 +28,9 @@ stdenv.mkDerivation {
     mkdir -p $out
     cp tvix-store-graph-blob-directory.svg $out/
     reveal-md --static $out presentation.md
+
+    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
   '';
 }