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 <flokli@flokli.de> Reviewed-by: flokli <flokli@flokli.de>
This commit is contained in:
parent
85132ec606
commit
5faa3f9c65
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 = ''
|
||||
|
@ -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
|
||||
'';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue