feat(web/tvl/template): add title to derivation name

This should help when debugging template generated derivations.

Change-Id: I9958a7e67c8442c5ad97da2a9d3622a0556b6a1a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/3861
Tested-by: BuildkiteCI
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
sterni 2021-11-13 13:36:35 +01:00
parent 53ab5716aa
commit 3d4e992c6f

View file

@ -1,4 +1,4 @@
{ depot, pkgs, ... }:
{ depot, pkgs, lib, ... }:
{ # content of the <title> tag
title
@ -17,7 +17,7 @@ let
inherit (depot.tools) cheddar;
in
runCommandNoCC "index.html" {
runCommandNoCC "${lib.strings.sanitizeDerivationName title}-index.html" {
headerPart = ''
<!DOCTYPE html>
<head>