Merge pull request #259645 from otavio/bb-lsp

bitbake-language-server: init at 0.0.6

authored by

Thiago Kenji Okada and committed by
GitHub
44673348 006b28f2

+63
+63
pkgs/by-name/bi/bitbake-language-server/package.nix
··· 1 + { lib 2 + , nix-update-script 3 + , python3 4 + , fetchFromGitHub 5 + , cmake 6 + , ninja 7 + }: 8 + let 9 + tree-sitter-bitbake = fetchFromGitHub { 10 + owner = "amaanq"; 11 + repo = "tree-sitter-bitbake"; 12 + rev = "v1.0.0"; 13 + hash = "sha256-HfWUDYiBCmtlu5fFX287BSDHyCiD7gqIVFDTxH5APAE="; 14 + }; 15 + in 16 + python3.pkgs.buildPythonApplication rec { 17 + pname = "bitbake-language-server"; 18 + version = "0.0.6"; 19 + format = "pyproject"; 20 + 21 + src = fetchFromGitHub { 22 + owner = "Freed-Wu"; 23 + repo = pname; 24 + rev = version; 25 + hash = "sha256-UOeOvaQplDn7jM+3sUZip1f05TbczoaRQKMxVm+euDU="; 26 + }; 27 + 28 + nativeBuildInputs = with python3.pkgs; [ 29 + cmake 30 + ninja 31 + pathspec 32 + pyproject-metadata 33 + scikit-build-core 34 + setuptools-scm 35 + ]; 36 + 37 + propagatedBuildInputs = with python3.pkgs; [ 38 + lsprotocol 39 + platformdirs 40 + pygls 41 + tree-sitter 42 + ]; 43 + 44 + SETUPTOOLS_SCM_PRETEND_VERSION = version; 45 + 46 + # The scikit-build-core runs CMake internally so we must let it run the configure step itself. 47 + dontUseCmakeConfigure = true; 48 + SKBUILD_CMAKE_ARGS = lib.strings.concatStringsSep ";" [ 49 + "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" 50 + "-DFETCHCONTENT_QUIET=OFF" 51 + "-DFETCHCONTENT_SOURCE_DIR_TREE-SITTER-BITBAKE=${tree-sitter-bitbake}" 52 + ]; 53 + 54 + passthru.updateScript = nix-update-script { }; 55 + 56 + meta = with lib; { 57 + description = "Language server for bitbake"; 58 + homepage = "https://github.com/Freed-Wu/bitbake-language-server"; 59 + changelog = "https://github.com/Freed-Wu/bitbake-language-server/releases/tag/v${version}"; 60 + license = licenses.gpl3; 61 + maintainers = with maintainers; [ otavio ]; 62 + }; 63 + }