feat(users/flokli/nixon-2024): init
Change-Id: I547a5504f6782169dd7280c0b5c21cbe66068a2e Reviewed-on: https://cl.tvl.fyi/c/depot/+/12682 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: flokli <flokli@flokli.de>
This commit is contained in:
parent
2225b52cb5
commit
85132ec606
11 changed files with 297 additions and 0 deletions
|
@ -0,0 +1,35 @@
|
|||
{ 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 = "2024-nixcon-tvix";
|
||||
src = ./.;
|
||||
|
||||
FONTCONFIG_FILE = pkgs.makeFontsConf {
|
||||
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 = ''
|
||||
cp ${depot.tvix.logo}/logo.png tvix-logo.png
|
||||
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
|
||||
reveal-md --print $out/slides.pdf presentation.md
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue