about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/default.nix5
-rw-r--r--web/tvl/default.nix17
2 files changed, 21 insertions, 1 deletions
diff --git a/third_party/default.nix b/third_party/default.nix
index e510373e229e..205d29d8df71 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 17936599fd00..2b2d2df211cb 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" ''
     <!DOCTYPE html>
@@ -44,6 +50,14 @@ let
       </p>
 
       <hr>
+      <h2>Where did all these people come from?</h2>
+
+      <p>
+        It's pretty straightforward.
+      </p>
+      <img src="/static/tvl.png" alt="Who's who?">
+
+      <hr>
       <footer>
         <p class="footer">
           <a class="uncoloured-link" href="https://tazj.in">homepage</a>
@@ -60,6 +74,7 @@ in runCommandNoCC "website" {} ''
   mkdir -p $out/static
   cp ${homepage} $out/index.html
   cp -r ${./static}/* $out/static
+  cp ${tvlGraph} $out/static/tvl.png
 
   # Some assets are stolen from the blog
   cp ${depot.web.homepage}/static/jetbrains-* $out/static