about summary refs log tree commit diff
path: root/web/todolist
diff options
context:
space:
mode:
Diffstat (limited to 'web/todolist')
-rw-r--r--web/todolist/default.nix22
1 files changed, 13 insertions, 9 deletions
diff --git a/web/todolist/default.nix b/web/todolist/default.nix
index 938902f31563..a2fcb501bde6 100644
--- a/web/todolist/default.nix
+++ b/web/todolist/default.nix
@@ -4,14 +4,12 @@
 # only for users that are known to us.
 { depot, lib, pkgs, ... }:
 
-with depot.nix.yants;
-
 let
   inherit (pkgs)
     jq
     ripgrep
     runCommandNoCC
-    writeText
+    writeTextFile
     ;
 
   inherit (builtins)
@@ -25,6 +23,13 @@ let
 
   inherit (lib) concatStringsSep;
 
+  inherit (depot.nix.yants)
+    defun
+    int
+    string
+    struct
+    ;
+
   knownUsers = map (u: u.username) depot.ops.users;
 
   todo = struct {
@@ -68,7 +73,10 @@ let
 
   staticUrl = "https://static.tvl.fyi/${depot.web.static.drvHash}";
 
-  todoPage = writeText "index.html" ''
+in writeTextFile {
+  name = "tvl-todos";
+  destination = "/index.html";
+  text = ''
     <!DOCTYPE html>
     <head>
       <meta charset="utf-8">
@@ -104,8 +112,4 @@ let
       </footer>
     </body>
   '';
-
-in runCommandNoCC "tvl-todos" {} ''
-  mkdir $out
-  cp ${todoPage} $out/index.html
-''
+}