From b9af3448c1923e9ed459a9535ff893bea503f085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Merlin=20G=C3=B6ttlinger?= Date: Mon, 4 Oct 2021 14:33:36 +0200 Subject: [PATCH] typos: init at 1.1.9 (#140458) Co-authored-by: Sandro --- pkgs/development/tools/typos/default.nix | 22 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 24 insertions(+) create mode 100644 pkgs/development/tools/typos/default.nix diff --git a/pkgs/development/tools/typos/default.nix b/pkgs/development/tools/typos/default.nix new file mode 100644 index 000000000000..5ddfb418432f --- /dev/null +++ b/pkgs/development/tools/typos/default.nix @@ -0,0 +1,22 @@ +{ fetchFromGitHub, rustPlatform, lib }: + +rustPlatform.buildRustPackage rec { + pname = "typos"; + version = "1.1.9"; + + src = fetchFromGitHub { + owner = "crate-ci"; + repo = pname; + rev = "v${version}"; + sha256 = "10ydsp77v4kf1qsq5wyc02iyfsdy0rpcyxycp2lqz9qy3g3ih7vm"; + }; + + cargoSha256 = "1i6999nmg4pahpp4fz4qm4rx8iixa13zjwlhyixwjwbag1w8l3gp"; + + meta = with lib; { + description = "Source code spell checker"; + homepage = "https://github.com/crate-ci/typos/"; + license = with licenses; [ asl20 /* or */ mit ]; + maintainers = [ maintainers.mgttlinger ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 260ccc12f8cf..0bff799cb481 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9924,6 +9924,8 @@ with pkgs; tydra = callPackage ../tools/misc/tydra { }; + typos = callPackage ../development/tools/typos { }; + tz = callPackage ../tools/misc/tz { }; u9fs = callPackage ../servers/u9fs { };