diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-10-20 22:09:03 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-10-20 22:09:03 +0000 |
commit | 50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e (patch) | |
tree | f2556b911180125ccbb7ed0e78a54e92da89adce /nixpkgs/pkgs/by-name/bi/bitbake-language-server/package.nix | |
parent | 4c16d4548a98563c9d9ad76f4e5b2202864ccd54 (diff) | |
parent | cfc75eec4603c06503ae750f88cf397e00796ea8 (diff) | |
download | nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.gz nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.bz2 nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.lz nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.xz nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.tar.zst nixlib-50c21d167f7114fa1dbd95e5c4fb30eeb1a2d02e.zip |
Merge commit 'cfc75eec4603c06503ae750f88cf397e00796ea8'
Conflicts: nixpkgs/pkgs/build-support/rust/build-rust-package/default.nix
Diffstat (limited to 'nixpkgs/pkgs/by-name/bi/bitbake-language-server/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/bi/bitbake-language-server/package.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/bi/bitbake-language-server/package.nix b/nixpkgs/pkgs/by-name/bi/bitbake-language-server/package.nix new file mode 100644 index 000000000000..8d314053e7bc --- /dev/null +++ b/nixpkgs/pkgs/by-name/bi/bitbake-language-server/package.nix @@ -0,0 +1,63 @@ +{ lib +, nix-update-script +, python3 +, fetchFromGitHub +, cmake +, ninja +}: +let + tree-sitter-bitbake = fetchFromGitHub { + owner = "amaanq"; + repo = "tree-sitter-bitbake"; + rev = "v1.0.0"; + hash = "sha256-HfWUDYiBCmtlu5fFX287BSDHyCiD7gqIVFDTxH5APAE="; + }; +in +python3.pkgs.buildPythonApplication rec { + pname = "bitbake-language-server"; + version = "0.0.6"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "Freed-Wu"; + repo = pname; + rev = version; + hash = "sha256-UOeOvaQplDn7jM+3sUZip1f05TbczoaRQKMxVm+euDU="; + }; + + nativeBuildInputs = with python3.pkgs; [ + cmake + ninja + pathspec + pyproject-metadata + scikit-build-core + setuptools-scm + ]; + + propagatedBuildInputs = with python3.pkgs; [ + lsprotocol + platformdirs + pygls + tree-sitter + ]; + + SETUPTOOLS_SCM_PRETEND_VERSION = version; + + # The scikit-build-core runs CMake internally so we must let it run the configure step itself. + dontUseCmakeConfigure = true; + SKBUILD_CMAKE_ARGS = lib.strings.concatStringsSep ";" [ + "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" + "-DFETCHCONTENT_QUIET=OFF" + "-DFETCHCONTENT_SOURCE_DIR_TREE-SITTER-BITBAKE=${tree-sitter-bitbake}" + ]; + + passthru.updateScript = nix-update-script { }; + + meta = with lib; { + description = "Language server for bitbake"; + homepage = "https://github.com/Freed-Wu/bitbake-language-server"; + changelog = "https://github.com/Freed-Wu/bitbake-language-server/releases/tag/v${version}"; + license = licenses.gpl3; + maintainers = with maintainers; [ otavio ]; + }; +} |