2023-10-19 13:55:26 +00:00
|
|
|
{ lib
|
|
|
|
, nix-update-script
|
|
|
|
, python3
|
2024-04-21 15:54:59 +00:00
|
|
|
, oelint-adv
|
2023-10-19 13:55:26 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "bitbake-language-server";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.0.14";
|
2023-10-19 13:55:26 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Freed-Wu";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-aGj9lW420A+iTQWSCdIITAJj3p89VUkPvdhQ/0M6uXo=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
setuptools-scm
|
2024-01-13 08:15:51 +00:00
|
|
|
setuptools-generate
|
2023-10-19 13:55:26 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
pygls
|
2024-04-21 15:54:59 +00:00
|
|
|
] ++ [ oelint-adv ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
meta = {
|
2023-10-19 13:55:26 +00:00
|
|
|
description = "Language server for bitbake";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bitbake-language-server";
|
2023-10-19 13:55:26 +00:00
|
|
|
homepage = "https://github.com/Freed-Wu/bitbake-language-server";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/Freed-Wu/bitbake-language-server/releases/tag/${version}";
|
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.otavio ];
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
}
|