2024-02-15 12:39:55 +01:00
|
|
|
{ lib
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "typos-lsp";
|
2024-03-07 19:27:08 +01:00
|
|
|
version = "0.1.15";
|
2024-02-15 12:39:55 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tekumara";
|
|
|
|
repo = "typos-lsp";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-03-07 19:27:08 +01:00
|
|
|
hash = "sha256-8mCK/NKik1zf6hqJN4pflDbtFALckHR/8AQborbOoHs=";
|
2024-02-15 12:39:55 +01:00
|
|
|
};
|
|
|
|
|
2024-03-07 19:27:08 +01:00
|
|
|
cargoHash = "sha256-aL7arYAiTpz9jy7Kh8u7OJmPMjayX4JiKoa7u8K0UiE=";
|
2024-02-15 12:39:55 +01:00
|
|
|
|
|
|
|
# fix for compilation on aarch64
|
|
|
|
# see https://github.com/NixOS/nixpkgs/issues/145726
|
|
|
|
prePatch = ''
|
|
|
|
rm .cargo/config.toml
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Source code spell checker";
|
|
|
|
homepage = "https://github.com/tekumara/typos-lsp";
|
|
|
|
changelog = "https://github.com/tekumara/typos-lsp/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ tarantoj ];
|
|
|
|
mainProgram = "typos-lsp";
|
|
|
|
};
|
|
|
|
}
|