2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonApplication
|
|
|
|
, fetchFromGitHub
|
2022-08-12 12:06:08 +00:00
|
|
|
, cmake-format
|
2021-10-04 12:37:57 +00:00
|
|
|
, pygls
|
|
|
|
, cmake
|
2023-02-02 18:25:31 +00:00
|
|
|
, pdm-pep517
|
2021-10-04 12:37:57 +00:00
|
|
|
, pytest-datadir
|
|
|
|
, pytestCheckHook
|
2020-05-29 06:06:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "cmake-language-server";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "unstable-2023-01-08";
|
2020-05-29 06:06:01 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "regen100";
|
|
|
|
repo = pname;
|
2023-02-02 18:25:31 +00:00
|
|
|
rev = "60c376a5fda29835060687569cb212350a292116";
|
|
|
|
hash = "sha256-vNG43sZy2wMetY5mbgxIoei5jCCj1f8vWiovWtwzbPc=";
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
PDM_PEP517_SCM_VERSION = "2023.1";
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
patches = [
|
2021-10-04 12:37:57 +00:00
|
|
|
# Test timeouts occasionally cause the build to fail
|
2021-05-28 09:39:13 +00:00
|
|
|
./disable-test-timeouts.patch
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [
|
2023-02-02 18:25:31 +00:00
|
|
|
pdm-pep517
|
2022-08-12 12:06:08 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
cmake-format
|
|
|
|
pygls
|
|
|
|
];
|
2022-03-05 16:20:37 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
cmake
|
|
|
|
cmake-format
|
|
|
|
pytest-datadir
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
|
|
|
dontUseCmakeConfigure = true;
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"cmake_language_server"
|
|
|
|
];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-29 06:06:01 +00:00
|
|
|
description = "CMake LSP Implementation";
|
2021-10-04 12:37:57 +00:00
|
|
|
homepage = "https://github.com/regen100/cmake-language-server";
|
2020-05-29 06:06:01 +00:00
|
|
|
license = licenses.mit;
|
2021-05-28 09:39:13 +00:00
|
|
|
maintainers = with maintainers; [ kira-bruneau ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|