From 69ed4984e311d74b6d952a517599a9cd6c3c6fa4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Fri, 1 Oct 2021 02:12:07 +0300 Subject: feat(web/static): Add TVL logo to static files Change-Id: Ie5ee4fe9d137cde9502ded1558fae3ad685b8863 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3661 Tested-by: BuildkiteCI Reviewed-by: sterni --- web/static/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'web/static') diff --git a/web/static/default.nix b/web/static/default.nix index ef346f9c746f..7a17dec36279 100644 --- a/web/static/default.nix +++ b/web/static/default.nix @@ -2,11 +2,16 @@ # `drvHash` attribute which can be used for cache-busting. { depot, lib, pkgs, ... }: -let storeDirLength = with builtins; (stringLength storeDir) + 1; +let + storeDirLength = with builtins; (stringLength storeDir) + 1; + logo = depot.web.tvl.logo; in lib.fix(self: pkgs.runCommand "tvl-static" { passthru = { drvHash = lib.substring storeDirLength 32 self.drvPath; }; } '' - cp -r ${./.} $out + mkdir $out + cp -r ${./.}/* $out + cp ${logo.pastelRainbow} $out/logo-animated.svg + cp ${logo.redPng} $out/logo-red.png '') -- cgit 1.4.1