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 ++++++- npins/sources.json | 4 ++-- 2 files changed, 8 insertions(+), 3 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}/"; }; diff --git a/npins/sources.json b/npins/sources.json index dc71158..cff3c16 100644 --- a/npins/sources.json +++ b/npins/sources.json @@ -45,9 +45,9 @@ }, "branch": "main", "submodules": false, - "revision": "e8a0bde0abae13290cdf5d46c8696719a2e385c9", + "revision": "258036ea544d07079eb278302f2fdfed2ed7718a", "url": null, - "hash": "1bim55q28ibclhvzhksmkpjfj15sz35r4i43iw3m401a9lvjin3w" + "hash": "12fgrihy9ns477wgq1pcchavyhjxj9966z26lppdc7wp36skf2pm" }, "deploy-rs": { "type": "Git", -- cgit v1.2.3