about summary refs log tree commit diff
path: root/pkgs/by-name/ty
diff options
context:
space:
mode:
authorJames Taranto <taranto.james@gmail.com>2024-02-15 22:39:55 +1100
committerJames Taranto <taranto.james@gmail.com>2024-02-17 09:38:14 +1100
commitcba91a90cc09c8d81ec83ee50f08944c660d14bb (patch)
treeaf912100fd251121b69b3aa6f65ced130f92bb34 /pkgs/by-name/ty
parent1a5fce43cf3ebb9ddf64b7975ce3eb25b375f711 (diff)
downloadnixlib-cba91a90cc09c8d81ec83ee50f08944c660d14bb.tar
nixlib-cba91a90cc09c8d81ec83ee50f08944c660d14bb.tar.gz
nixlib-cba91a90cc09c8d81ec83ee50f08944c660d14bb.tar.bz2
nixlib-cba91a90cc09c8d81ec83ee50f08944c660d14bb.tar.lz
nixlib-cba91a90cc09c8d81ec83ee50f08944c660d14bb.tar.xz
nixlib-cba91a90cc09c8d81ec83ee50f08944c660d14bb.tar.zst
nixlib-cba91a90cc09c8d81ec83ee50f08944c660d14bb.zip
typos-lsp: init at 0.1.12
https://github.com/tekumara/typos-lsp
Diffstat (limited to 'pkgs/by-name/ty')
-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 000000000000..b1fafeb70158
--- /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";
+  };
+}