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 <sternenseemann@systemli.org>
This commit is contained in:
parent
b1f52b2617
commit
69ed4984e3
1 changed files with 7 additions and 2 deletions
|
@ -2,11 +2,16 @@
|
||||||
# `drvHash` attribute which can be used for cache-busting.
|
# `drvHash` attribute which can be used for cache-busting.
|
||||||
{ depot, lib, pkgs, ... }:
|
{ 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" {
|
in lib.fix(self: pkgs.runCommand "tvl-static" {
|
||||||
passthru = {
|
passthru = {
|
||||||
drvHash = lib.substring storeDirLength 32 self.drvPath;
|
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
|
||||||
'')
|
'')
|
||||||
|
|
Loading…
Reference in a new issue