about summary refs log tree commit diff
path: root/web/tvl/template
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2021-11-13T12·36+0100
committersterni <sternenseemann@systemli.org>2021-11-13T13·28+0000
commit3d4e992c6fc2147e0f0ab9cf3dcc253b777b3a32 (patch)
tree36961c0c2a828da2a3b05c06e821aac92303ae13 /web/tvl/template
parent53ab5716aac5e2a0d40c4c412e6105730942940f (diff)
feat(web/tvl/template): add title to derivation name r/3055
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>
Diffstat (limited to 'web/tvl/template')
-rw-r--r--web/tvl/template/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/tvl/template/default.nix b/web/tvl/template/default.nix
index f33274f02edd..f89c49b8ccbf 100644
--- a/web/tvl/template/default.nix
+++ b/web/tvl/template/default.nix
@@ -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>