From 656ed28e8d388d46475af422fd0d2985a14e0805 Mon Sep 17 00:00:00 2001 From: rewine Date: Mon, 6 Jan 2025 15:31:18 +0800 Subject: [PATCH] neocmakelsp: 0.8.13 -> 0.8.15 --- pkgs/by-name/ne/neocmakelsp/package.nix | 33 ++++++++++--------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/ne/neocmakelsp/package.nix b/pkgs/by-name/ne/neocmakelsp/package.nix index 01a36d4b2f67..ec13603654f6 100644 --- a/pkgs/by-name/ne/neocmakelsp/package.nix +++ b/pkgs/by-name/ne/neocmakelsp/package.nix @@ -1,40 +1,33 @@ { lib, - stdenv, - fetchFromGitHub, - meson, - ninja, - python3, rustPlatform, - rustc, - cargo, + fetchFromGitHub, + installShellFiles, }: -stdenv.mkDerivation rec { +rustPlatform.buildRustPackage rec { pname = "neocmakelsp"; - version = "0.8.13"; + version = "0.8.15"; src = fetchFromGitHub { owner = "Decodetalkers"; repo = "neocmakelsp"; rev = "v${version}"; - hash = "sha256-MRno86pi389p2lBTu86LCPx5yFN76CbM5AXAs4bsl7c="; + hash = "sha256-TCzW8QPSCGufLQanwcvgA5YsTV/QqDs7NKgOMPOgGho="; }; - cargoDeps = rustPlatform.fetchCargoTarball { - inherit pname version src; - hash = "sha256-UVXJF8jvZUcEWbsL+UmrO2VSlvowkXNGRbxCEmB89OU="; - }; + cargoHash = "sha256-oRt4af7KqPIckzZ8FhCNjkVC/j2PdprFL91K/qUWV3g="; nativeBuildInputs = [ - meson - ninja - python3 - rustPlatform.cargoSetupHook - rustc - cargo + installShellFiles ]; + postInstall = '' + installShellCompletion --bash completions/bash/neocmakelsp + installShellCompletion --fish completions/fish/neocmakelsp.fish + installShellCompletion --zsh completions/zsh/_neocmakelsp + ''; + meta = { description = "CMake lsp based on tower-lsp and treesitter"; homepage = "https://github.com/Decodetalkers/neocmakelsp";