diff options
author | sterni <sternenseemann@systemli.org> | 2021-11-13T12·36+0100 |
---|---|---|
committer | sterni <sternenseemann@systemli.org> | 2021-11-13T13·28+0000 |
commit | 3d4e992c6fc2147e0f0ab9cf3dcc253b777b3a32 (patch) | |
tree | 36961c0c2a828da2a3b05c06e821aac92303ae13 | |
parent | 53ab5716aac5e2a0d40c4c412e6105730942940f (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>
-rw-r--r-- | web/tvl/template/default.nix | 4 |
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> |