From ab1da43942868d28b5655d520177801a8f3191e4 Mon Sep 17 00:00:00 2001 From: jfvillablanca <31008330+jfvillablanca@users.noreply.github.com> Date: Mon, 6 Nov 2023 08:38:31 +0800 Subject: [PATCH] llm-ls: init at 0.4.0 --- pkgs/by-name/ll/llm-ls/package.nix | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 pkgs/by-name/ll/llm-ls/package.nix diff --git a/pkgs/by-name/ll/llm-ls/package.nix b/pkgs/by-name/ll/llm-ls/package.nix new file mode 100644 index 0000000000000..a29db52765a5f --- /dev/null +++ b/pkgs/by-name/ll/llm-ls/package.nix @@ -0,0 +1,31 @@ +{ lib +, rustPlatform +, fetchFromGitHub +}: + +let + pname = "llm-ls"; + version = "0.4.0"; +in +rustPlatform.buildRustPackage { + inherit pname version; + + src = fetchFromGitHub { + owner = "huggingface"; + repo = "llm-ls"; + rev = version; + sha256 = "sha256-aMoT/rH6o4dHCSiSI/btdKysFfIbHvV7R5dRHIOF/Qs="; + }; + + cargoHash = "sha256-Z6BO4kDtlIrVdDk1fiwyelpu1rj7e4cibgFZRsl1pfA="; + + meta = with lib; { + description = "LSP server leveraging LLMs for code completion (and more?)"; + homepage = "https://github.com/huggingface/llm-ls"; + license = licenses.asl20; + maintainers = with maintainers; [ jfvillablanca ]; + platforms = platforms.all; + badPlatforms = platforms.darwin; + mainProgram = "llm-ls"; + }; +}