about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-10-26T08·48+0200
committerflokli <flokli@flokli.de>2024-10-26T10·13+0000
commit5faa3f9c657f7ee12c6e5536a6e0a5403c80ff29 (patch)
treea6d5656a893f61e707e9716f7dbce0275ce9e8a2 /users
parent85132ec6068a16e1df3f7d6e0e8daa200fdf96be (diff)
fix(users/flokli/nixon-2024): fix pdf gen r/8857
Change-Id: I02c101fc16e4ce57d53cd423f7aa0b6a98f856df
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12685
Tested-by: BuildkiteCI
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: flokli <flokli@flokli.de>
Diffstat (limited to 'users')
-rw-r--r--users/flokli/presentations/2024-10-25-nixcon-tvix/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/users/flokli/presentations/2024-10-25-nixcon-tvix/default.nix b/users/flokli/presentations/2024-10-25-nixcon-tvix/default.nix
index 88417a4a896a..763104cfd5ca 100644
--- a/users/flokli/presentations/2024-10-25-nixcon-tvix/default.nix
+++ b/users/flokli/presentations/2024-10-25-nixcon-tvix/default.nix
@@ -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 = ''
@@ -30,6 +27,9 @@ stdenv.mkDerivation {
 
     mkdir -p $out
     reveal-md --static $out presentation.md
-    reveal-md --print $out/slides.pdf 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
   '';
 }