* Bump Emacs 29 to 30 to address CVEs in prior versions: https://github.com/NixOS/nixpkgs/pull/386174 * //3p/overlays/tvl: - Drop upstreamed fix for buildkite-agent - Drop tpm2-pkcs11 patch for an issue that has been addressed in 1.9.1. - Drop Nix 2.3 patch for home-manager. An alternative to it has been upstreamed in <https://github.com/nix-community/home-manager/pull/5067>. * //users/flokli/presentations: disable derivations that have been failing since the latest chromium upgrade (presumably). reveal-md … --print fails to export a PDF. Enabling debug output reveals that a timeout in pupeteer is hit. Change-Id: Id83eb5e5fe2db77e648817c5c737b2f95b43deeb Reviewed-on: https://cl.tvl.fyi/c/depot/+/13217 Autosubmit: sterni <sternenseemann@systemli.org> Reviewed-by: sterni <sternenseemann@systemli.org> Reviewed-by: flokli <flokli@flokli.de> Reviewed-by: tazjin <tazjin@tvl.su> Tested-by: BuildkiteCI
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{ depot, pkgs, ... }:
|
|
|
|
let
|
|
inherit (pkgs)
|
|
fontconfig qrencode runCommand stdenv;
|
|
mkQr = url: runCommand "qrcode.png" { } ''
|
|
${qrencode}/bin/qrencode -o $out -t SVG -s 5 \
|
|
--background=fafafa \
|
|
--foreground=000000 \
|
|
${url}
|
|
'';
|
|
in
|
|
stdenv.mkDerivation {
|
|
name = "2023-nixcon-tvix";
|
|
src = ./.;
|
|
|
|
FONTCONFIG_FILE = pkgs.makeFontsConf {
|
|
fontDirectories = with pkgs; [ jetbrains-mono fira fira-code fira-mono lato ];
|
|
};
|
|
|
|
nativeBuildInputs = [ pkgs.reveal-md pkgs.graphviz ];
|
|
|
|
buildPhase = ''
|
|
cp ${depot.tvix.logo}/logo.png tvix-logo.png
|
|
dot -Tsvg crate-deps.dot > crate-deps.svg
|
|
cp ${mkQr "https://flokli.de"} qrcode-flokli.svg
|
|
cp ${mkQr "https://tvix.dev"} qrcode-tvix.svg
|
|
|
|
mkdir -p $out
|
|
reveal-md --static $out 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
|
|
'';
|
|
|
|
# reveal-md presentation.md --print started timing out possibly due to
|
|
# chromium: 133.0.6943.141 -> 134.0.6998.35
|
|
meta.ci.skip = true;
|
|
}
|