diff options
Diffstat (limited to 'default.nix')
-rw-r--r-- | default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/default.nix b/default.nix index 5f6663d..c664429 100644 --- a/default.nix +++ b/default.nix @@ -22,6 +22,15 @@ in rec { touch $out ''; }); + assertContent = utils.baseTask.overrideAttrs (baseAttrs: { + name = "${baseAttrs.name}-assert-content"; + buildInputs = baseAttrs.buildInputs ++ [ pkgs.jq ]; + buildPhase = '' + patchShebangs . + ./scripts/assert-content.sh "${subtasks.docs}/site.json" + touch $out + ''; + }); docs = utils.baseTask.overrideAttrs (baseAttrs: { name = "${baseAttrs.name}-docs"; buildInputs = [ jekyllEnv ]; @@ -35,6 +44,7 @@ in rec { (utils.shellcheck null) (utils.fixme null) subtasks.hunspellCheck + subtasks.assertContent ]; shell = pkgs.mkShell rec { name = "website-shell"; |