chore(web/tvl): Move TVL static assets out of //users/tazjin

It's now more like my personal homepage depends on TVL assets, not the
other way around.

Change-Id: Ifb9d61aa8ec2cab549e25de3a3dfbbd08f3d336c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3435
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2021-08-26 20:28:06 +03:00 committed by tazjin
parent 60b25b49de
commit da0b330756
10 changed files with 11 additions and 7 deletions

View file

@ -71,5 +71,7 @@ in runCommandNoCC "website" {} ''
mkdir $out mkdir $out
cp ${homepage} $out/index.html cp ${homepage} $out/index.html
cp ${atomFeed} $out/feed.atom cp ${atomFeed} $out/feed.atom
cp -r ${./static} $out/static mkdir $out/static
cp -r ${depot.web.static}/* $out/static
cp -rf ${./static}/* $out/static
'' ''

6
web/static/default.nix Normal file
View file

@ -0,0 +1,6 @@
{ pkgs, ... }:
# Needs to be a derivation ...
pkgs.runCommand "tvl-static" {} ''
cp -r ${./.} $out
''

View file

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View file

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

View file

@ -41,11 +41,7 @@ let
''; '';
}; };
in runCommandNoCC "website" {} '' in runCommandNoCC "website" {} ''
mkdir -p $out/static mkdir $out
cp ${homepage} $out/index.html cp ${homepage} $out/index.html
cp -r ${./static}/* $out/static cp -r ${depot.web.static} $out/static
# Some assets are stolen from tazjin's blog
cp ${depot.users.tazjin.homepage}/static/jetbrains-* $out/static
cp ${depot.users.tazjin.homepage}/static/tazjin.css $out/static
'' ''