btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / ty / typos / package.nix
blob07231664a3c149370cca4761857478eba98308af
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "typos";
9   version = "1.27.3";
11   src = fetchFromGitHub {
12     owner = "crate-ci";
13     repo = pname;
14     rev = "v${version}";
15     hash = "sha256-4vIRhhBvK2R0nAdG4zDTJ+6F3WOI9sAB/ongBMnzsWk=";
16   };
18   cargoHash = "sha256-cn1jy8kQ6R+JU6w/sqcNP+uzSKKg3V4H97qnJAIESd0=";
20   meta = with lib; {
21     description = "Source code spell checker";
22     mainProgram = "typos";
23     homepage = "https://github.com/crate-ci/typos";
24     changelog = "https://github.com/crate-ci/typos/blob/${src.rev}/CHANGELOG.md";
25     license = with licenses; [
26       asl20 # or
27       mit
28     ];
29     maintainers = with maintainers; [
30       figsoda
31       mgttlinger
32     ];
33   };