17 rustPlatform.buildRustPackage {
18 inherit pname version;
20 src = fetchFromGitHub {
21 owner = "huggingface";
24 hash = "sha256-ICMM2kqrHFlKt2/jmE4gum1Eb32afTJkT3IRoqcjJJ8=";
27 cargoHash = "sha256-m/w9aJZCCh1rgnHlkGQD/pUDoWn2/WRVt5X4pFx9nC4=";
30 # https://github.com/huggingface/llm-ls/pull/102
31 ./fix-time-compilation-failure.patch
33 name = "fix-version.patch";
34 url = "https://github.com/huggingface/llm-ls/commit/479401f3a5173f2917a888c8068f84e29b7dceed.patch?full_index=1";
35 hash = "sha256-4gXasfMqlrrP8II+FiV/qGfO7a9qFkDQMiax7yEua5E=";
39 buildAndTestSubdir = "crates/llm-ls";
41 nativeBuildInputs = [ pkg-config ];
45 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
46 darwin.apple_sdk.frameworks.Security
49 passthru.tests.version = testers.testVersion {
54 description = "LSP server leveraging LLMs for code completion (and more?)";
55 homepage = "https://github.com/huggingface/llm-ls";
56 license = licenses.asl20;
57 maintainers = with maintainers; [ jfvillablanca ];
58 platforms = platforms.all;
59 mainProgram = "llm-ls";