8c53ab5310
Change-Id: I2445b977c5bed3e2d4b90e8ad81119d316b29b50 Reviewed-on: https://cl.tvl.fyi/c/depot/+/9281 Reviewed-by: tazjin <tazjin@tvl.su> Reviewed-by: Adam Joseph <adam@westernsemico.com> Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de>
24 lines
657 B
Nix
24 lines
657 B
Nix
{ depot, lib, pkgs, ... }:
|
|
|
|
let
|
|
# All Tvix-related blog posts from the main TVL website
|
|
tvixPosts = builtins.filter
|
|
(post: !(post.draft or false) && (lib.hasInfix "Tvix" post.title))
|
|
depot.web.tvl.blog.posts;
|
|
|
|
postListEntries = map (p: "* [${p.title}](https://tvl.fyi/blog/${p.key})") tvixPosts;
|
|
|
|
landing = depot.web.tvl.template {
|
|
title = "Tvix - A new implementation of Nix";
|
|
content = ''
|
|
${builtins.readFile ./landing-en.md}
|
|
${builtins.concatStringsSep "\n" postListEntries}
|
|
'';
|
|
};
|
|
|
|
in
|
|
pkgs.runCommand "tvix-website" { } ''
|
|
mkdir $out
|
|
cp ${landing} $out/index.html
|
|
cp ${depot.tvix.logo}/logo.webp $out/
|
|
''
|