mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-04 03:03:42 +00:00
33 lines
840 B
Nix
33 lines
840 B
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "typos-lsp";
|
|
version = "0.1.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tekumara";
|
|
repo = "typos-lsp";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-wXwdAPaj2dY6R6rUl/3WGeUwV+/waQdHv1dmzTqFNow=";
|
|
};
|
|
|
|
cargoHash = "sha256-qXQPxMlBwLb2NVae+vKZPzufNrQeuz0cAdMflpsjDf4=";
|
|
|
|
# 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";
|
|
};
|
|
}
|