forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / by-name / ty / typos / package.nix
blob868e2a1158f1761e2410d8b8a2d624342f393df8
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   testers,
6   nix-update-script,
7   typos,
8 }:
10 rustPlatform.buildRustPackage rec {
11   pname = "typos";
12   version = "1.27.3";
14   src = fetchFromGitHub {
15     owner = "crate-ci";
16     repo = pname;
17     rev = "v${version}";
18     hash = "sha256-4vIRhhBvK2R0nAdG4zDTJ+6F3WOI9sAB/ongBMnzsWk=";
19   };
21   cargoHash = "sha256-cn1jy8kQ6R+JU6w/sqcNP+uzSKKg3V4H97qnJAIESd0=";
23   passthru = {
24     tests.version = testers.testVersion { package = typos; };
26     updateScript = nix-update-script { };
27   };
29   meta = with lib; {
30     description = "Source code spell checker";
31     mainProgram = "typos";
32     homepage = "https://github.com/crate-ci/typos";
33     changelog = "https://github.com/crate-ci/typos/blob/${src.rev}/CHANGELOG.md";
34     license = with licenses; [
35       asl20 # or
36       mit
37     ];
38     maintainers = with maintainers; [
39       figsoda
40       mgttlinger
41     ];
42   };