spelling.nix

 1{
 2  pkgs,
 3  src ? ./../..,
 4}:
 5
 6pkgs.runCommand "check-spelling"
 7  {
 8    inherit src;
 9    nativeBuildInputs = with pkgs; [ codespell ];
10    description = "Check for spelling mistakes";
11  }
12  ''
13    cd "$src"
14    codespell --disable-colors */** | tee $out
15  ''