evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / ty / typos-lsp / package.nix
blob8d8b04efa0069e5ef4fb9541477fcd89083609d9
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 }:
5 rustPlatform.buildRustPackage rec {
6   pname = "typos-lsp";
7   # Please update the corresponding VSCode extension too.
8   # See pkgs/applications/editors/vscode/extensions/tekumara.typos-vscode/default.nix
9   version = "0.1.30";
11   src = fetchFromGitHub {
12     owner = "tekumara";
13     repo = "typos-lsp";
14     rev = "refs/tags/v${version}";
15     hash = "sha256-MnN7cMbvQef3UEQzsrH6i0O+f1nnfHJVI8O8NmBUpuo=";
16   };
18   cargoHash = "sha256-F9e6GLWcZNJZo2kc8f2o1tCvv0JeAJnmltAuSTqQKwY=";
20   # fix for compilation on aarch64
21   # see https://github.com/NixOS/nixpkgs/issues/145726
22   prePatch = ''
23     rm .cargo/config.toml
24   '';
26   meta = with lib; {
27     description = "Source code spell checker";
28     homepage = "https://github.com/tekumara/typos-lsp";
29     changelog = "https://github.com/tekumara/typos-lsp/blob/${src.rev}/CHANGELOG.md";
30     license = licenses.mit;
31     maintainers = with maintainers; [ tarantoj ];
32     mainProgram = "typos-lsp";
33   };