From 70a0b79689052de20d0b9860fa4b8d557d42e751 Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 16 Nov 2024 14:32:00 +0000 Subject: [PATCH] install check that the RSS feed is actually generated --- default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/default.nix b/default.nix index 362a0d1..f4fc7dd 100644 --- a/default.nix +++ b/default.nix @@ -15,5 +15,16 @@ stdenv.mkDerivation { postInstall = '' rm $out/share/uninsane-dot-org/404.html ''; + + installCheckPhase = '' + runHook preInstallCheck + + test -f $out/share/uninsane-dot-org/atom.xml + + runHook postInstallCheck + ''; + + doInstallCheck = true; + installFlags = [ "PREFIX=$(out)/share/uninsane-dot-org" ]; }