diff options
Diffstat (limited to 'release/checks/codespell.nix')
-rw-r--r-- | release/checks/codespell.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/release/checks/codespell.nix b/release/checks/codespell.nix new file mode 100644 index 0000000..01aeb8c --- /dev/null +++ b/release/checks/codespell.nix @@ -0,0 +1,17 @@ +# SPDX-License-Identifier: MIT +# SPDX-FileCopyrightText: 2023 Alyssa Ross <hi@alyssa.is> + +import ../../lib/call-package.nix ({ srcWithNix, lib, runCommand, codespell }: + +runCommand "spectrum-codespell" { + src = lib.fileset.toSource { + root = ../..; + fileset = srcWithNix; + }; + nativeBuildInputs = [ codespell ]; +} '' + cd $src + codespell + touch $out +'' +) (_: {}) |