From 0d55fadca6d93ef885a4c22822c5852f9b0638db Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 22 Aug 2025 01:38:26 +0200 Subject: blog: validate feed xml during builds --- flora/services/blog.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'flora/services/blog.nix') diff --git a/flora/services/blog.nix b/flora/services/blog.nix index 9a9339c..e77cc7c 100644 --- a/flora/services/blog.nix +++ b/flora/services/blog.nix @@ -40,7 +40,12 @@ in enableACME = true; forceSSL = true; locations."/".root = (import inputs.blog { inherit pkgs; }).overrideAttrs (old: { - buildInputs = old.buildInputs ++ [ pkgs.exiftool ]; + buildInputs = old.buildInputs ++ [ pkgs.exiftool pkgs.libxml2 ]; + + doCheck = true; + checkPhase = '' + xmllint _site/rss.xml + ''; }); locations."/bookshelf/".alias = "${gtfsBooks.outPath}/"; }; -- cgit v1.2.3