about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorJames Taranto <taranto.james@gmail.com>2024-02-15 22:39:55 +1100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-05-04 22:38:50 +0000
commite5d2754981d69c75ddfc372b527d9958add7992f (patch)
treed05ae873a105c452f857dd2dd6779223b58f3e86 /pkgs/by-name
parent9b99be3d1ae028ffa93fbe0da1f3613aa328c3d8 (diff)
typos-lsp: init at 0.1.12
https://github.com/tekumara/typos-lsp
(cherry picked from commit cba91a90cc09c8d81ec83ee50f08944c660d14bb)
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/ty/typos-lsp/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/ty/typos-lsp/package.nix b/pkgs/by-name/ty/typos-lsp/package.nix
new file mode 100644
index 0000000000000..b1fafeb701584
--- /dev/null
+++ b/pkgs/by-name/ty/typos-lsp/package.nix
@@ -0,0 +1,32 @@
+{ lib
+, rustPlatform
+, fetchFromGitHub
+}:
+rustPlatform.buildRustPackage rec {
+  pname = "typos-lsp";
+  version = "0.1.12";
+
+  src = fetchFromGitHub {
+    owner = "tekumara";
+    repo = "typos-lsp";
+    rev = "refs/tags/v${version}";
+    hash = "sha256-LzemgHVCuLkLaJyyrJhIsOOn+OnYuiJsMSxITNz6R8g=";
+  };
+
+  cargoHash = "sha256-LFRg/Y/nudrdPw/o3WUH6aM+ThE8N/HII5J0Ikid8GI=";
+
+  # 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";
+  };
+}