diff options
Diffstat (limited to '')
-rw-r--r-- | default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/default.nix b/default.nix index a5d6f4e..fd02d59 100644 --- a/default.nix +++ b/default.nix @@ -87,6 +87,13 @@ with pkgs.stdenv; rec { exit 1 } + HTML_DIR="${subtasks.docs}" + hunspell -l -p spelling/en_US-dict.txt -d en_US -i utf-8 $(find "$HTML_DIR" -type f) | tee spelling.txt + [[ -s spelling.txt ]] && { + echo "Mispelled words detected by hunspell." + exit 1 + } + touch $out ''; }); |