aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--default.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/default.nix b/default.nix
index e79da46..31b82f2 100644
--- a/default.nix
+++ b/default.nix
@@ -13,6 +13,16 @@ in rec {
gemset = ./gemset.nix;
};
subtasks = rec {
+ hunspellCheck = utils.baseTask.overrideAttrs (baseAttrs: {
+ name = "${baseAttrs.name}-hunspell";
+ buildInputs = baseAttrs.buildInputs
+ ++ [ (pkgs.hunspellWithDicts (with pkgs.hunspellDicts; [ en-us ])) ];
+ buildPhase = ''
+ patchShebangs .
+ ./spelling/check-spelling.sh "${subtasks.docs}"
+ touch $out
+ '';
+ });
docs = utils.baseTask.overrideAttrs (baseAttrs: {
name = "${baseAttrs.name}-docs";
buildInputs = [ jekyllEnv ];
@@ -26,6 +36,7 @@ in rec {
utils.formatNix
(utils.shellcheck null)
(utils.fixme null)
+ subtasks.hunspellCheck
];
shell = pkgs.mkShell rec {
name = "website-shell";