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!)
++ It's pretty straightforward. +
+ +