diff options
Diffstat (limited to 'pkgs/development/tools/typos')
-rw-r--r-- | pkgs/development/tools/typos/default.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pkgs/development/tools/typos/default.nix b/pkgs/development/tools/typos/default.nix new file mode 100644 index 00000000000..23b6f535fc3 --- /dev/null +++ b/pkgs/development/tools/typos/default.nix @@ -0,0 +1,22 @@ +{ fetchFromGitHub, rustPlatform, lib }: + +rustPlatform.buildRustPackage rec { + pname = "typos"; + version = "1.5.0"; + + src = fetchFromGitHub { + owner = "crate-ci"; + repo = pname; + rev = "v${version}"; + sha256 = "sha256-It112+60ze+5rvq3TYlIU+X4lJ4pgdCO7Gb1ADArDvY="; + }; + + cargoSha256 = "sha256-yiy1xLxCdjIzqXUlkxWoOZ7cPZzJgDuTUvNHpnnTnwE="; + + meta = with lib; { + description = "Source code spell checker"; + homepage = "https://github.com/crate-ci/typos/"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = [ maintainers.mgttlinger ]; + }; +} |