feat(web/tvl): Add rendered graphviz graph to the page
This commit is contained in:
parent
4683b24e14
commit
1faf44b3b3
2 changed files with 21 additions and 1 deletions
5
third_party/default.nix
vendored
5
third_party/default.nix
vendored
|
@ -30,6 +30,7 @@ let
|
||||||
c-ares
|
c-ares
|
||||||
cacert
|
cacert
|
||||||
cachix
|
cachix
|
||||||
|
cairo
|
||||||
cargo
|
cargo
|
||||||
cgit
|
cgit
|
||||||
clang_9
|
clang_9
|
||||||
|
@ -48,16 +49,20 @@ let
|
||||||
fira
|
fira
|
||||||
fira-code
|
fira-code
|
||||||
fira-mono
|
fira-mono
|
||||||
|
fontconfig
|
||||||
|
freetype
|
||||||
gettext
|
gettext
|
||||||
glibc
|
glibc
|
||||||
gnutar
|
gnutar
|
||||||
go
|
go
|
||||||
google-cloud-sdk
|
google-cloud-sdk
|
||||||
|
graphviz
|
||||||
grpc
|
grpc
|
||||||
gzip
|
gzip
|
||||||
haskell
|
haskell
|
||||||
iana-etc
|
iana-etc
|
||||||
imagemagickBig
|
imagemagickBig
|
||||||
|
jetbrains-mono
|
||||||
jq
|
jq
|
||||||
kontemplate
|
kontemplate
|
||||||
lib
|
lib
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
{ depot, pkgs, ... }:
|
{ depot, pkgs, ... }:
|
||||||
|
|
||||||
let
|
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" ''
|
homepage = writeText "index.html" ''
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
@ -43,6 +49,14 @@ let
|
||||||
<i>(Hope you've checked that it's open!)</i>
|
<i>(Hope you've checked that it's open!)</i>
|
||||||
</p>
|
</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>
|
<hr>
|
||||||
<footer>
|
<footer>
|
||||||
<p class="footer">
|
<p class="footer">
|
||||||
|
@ -60,6 +74,7 @@ in runCommandNoCC "website" {} ''
|
||||||
mkdir -p $out/static
|
mkdir -p $out/static
|
||||||
cp ${homepage} $out/index.html
|
cp ${homepage} $out/index.html
|
||||||
cp -r ${./static}/* $out/static
|
cp -r ${./static}/* $out/static
|
||||||
|
cp ${tvlGraph} $out/static/tvl.png
|
||||||
|
|
||||||
# Some assets are stolen from the blog
|
# Some assets are stolen from the blog
|
||||||
cp ${depot.web.homepage}/static/jetbrains-* $out/static
|
cp ${depot.web.homepage}/static/jetbrains-* $out/static
|
||||||
|
|
Loading…
Reference in a new issue