diff options
author | stuebinm | 2025-08-22 01:38:26 +0200 |
---|---|---|
committer | stuebinm | 2025-08-22 01:38:26 +0200 |
commit | 0d55fadca6d93ef885a4c22822c5852f9b0638db (patch) | |
tree | e34e3866494773ed6345a45834ce26d70ad2311d /flora | |
parent | b03cbcf51ebf859daaacbf81b82b875c40228eb7 (diff) |
blog: validate feed xml during builds
Diffstat (limited to 'flora')
-rw-r--r-- | flora/services/blog.nix | 7 |
1 files changed, 6 insertions, 1 deletions
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}/"; }; |