From 1faf44b3b325fe81f0d69b804778ae5d8f92dcd7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Tue, 21 Apr 2020 03:38:30 +0100 Subject: [PATCH] feat(web/tvl): Add rendered graphviz graph to the page --- third_party/default.nix | 5 +++++ web/tvl/default.nix | 17 ++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/third_party/default.nix b/third_party/default.nix index e510373e2..205d29d8d 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -30,6 +30,7 @@ let c-ares cacert cachix + cairo cargo cgit clang_9 @@ -48,16 +49,20 @@ let fira fira-code fira-mono + fontconfig + freetype gettext glibc gnutar go google-cloud-sdk + graphviz grpc gzip haskell iana-etc imagemagickBig + jetbrains-mono jq kontemplate lib diff --git a/web/tvl/default.nix b/web/tvl/default.nix index 17936599f..2b2d2df21 100644 --- a/web/tvl/default.nix +++ b/web/tvl/default.nix @@ -1,7 +1,13 @@ { depot, pkgs, ... }: let - inherit (pkgs) writeText runCommandNoCC; + inherit (pkgs) graphviz runCommandNoCC writeText; + + tvlGraph = runCommandNoCC "tvl.png" { + nativeBuildInputs = with pkgs; [ fontconfig freetype cairo jetbrains-mono ]; + } '' + ${graphviz}/bin/neato -Tpng ${./tvl.dot} > $out + ''; homepage = writeText "index.html" '' @@ -43,6 +49,14 @@ let (Hope you've checked that it's open!)

+
+

Where did all these people come from?

+ +

+ It's pretty straightforward. +

+ Who's who? +