diff options
Diffstat (limited to 'users/flokli/presentations')
-rw-r--r-- | users/flokli/presentations/2023-09-09-nixcon-tvix/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/users/flokli/presentations/2023-09-09-nixcon-tvix/default.nix b/users/flokli/presentations/2023-09-09-nixcon-tvix/default.nix index 1ec0a0bd0ed7..b50309b6c2f6 100644 --- a/users/flokli/presentations/2023-09-09-nixcon-tvix/default.nix +++ b/users/flokli/presentations/2023-09-09-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 = '' @@ -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 ''; } |