From 5faa3f9c657f7ee12c6e5536a6e0a5403c80ff29 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 26 Oct 2024 10:48:17 +0200 Subject: fix(users/flokli/nixon-2024): fix pdf gen Change-Id: I02c101fc16e4ce57d53cd423f7aa0b6a98f856df Reviewed-on: https://cl.tvl.fyi/c/depot/+/12685 Tested-by: BuildkiteCI Autosubmit: flokli Reviewed-by: flokli --- users/flokli/presentations/2024-10-25-nixcon-tvix/default.nix | 8 ++++---- 1 file 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 ''; } -- cgit 1.4.1