cmake-language-server: move to by-name (#437676)
This commit is contained in:
+7
-12
@@ -1,23 +1,17 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonApplication,
|
||||
python3Packages,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
pdm-backend,
|
||||
|
||||
# dependencies
|
||||
cmake-format,
|
||||
pygls,
|
||||
|
||||
# tests
|
||||
cmake,
|
||||
pytest-datadir,
|
||||
pytestCheckHook,
|
||||
versionCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "cmake-language-server";
|
||||
version = "0.1.11";
|
||||
pyproject = true;
|
||||
@@ -37,13 +31,12 @@ buildPythonApplication rec {
|
||||
"CALL_TIMEOUT = 10"
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
build-system = with python3Packages; [
|
||||
pdm-backend
|
||||
];
|
||||
dontUseCmakeConfigure = true;
|
||||
|
||||
dependencies = [
|
||||
cmake-format
|
||||
dependencies = with python3Packages; [
|
||||
pygls
|
||||
];
|
||||
|
||||
@@ -52,10 +45,12 @@ buildPythonApplication rec {
|
||||
nativeCheckInputs = [
|
||||
cmake
|
||||
cmake-format
|
||||
]
|
||||
++ (with python3Packages; [
|
||||
pytest-datadir
|
||||
pytestCheckHook
|
||||
versionCheckHook
|
||||
];
|
||||
]);
|
||||
versionCheckProgramArg = "--version";
|
||||
|
||||
# version.py generated by pdm, no idea why it's not present in test phase
|
||||
@@ -6788,12 +6788,6 @@ with pkgs;
|
||||
|
||||
cmake-format = python3Packages.callPackage ../development/tools/cmake-format { };
|
||||
|
||||
cmake-language-server =
|
||||
python3Packages.callPackage ../development/tools/misc/cmake-language-server
|
||||
{
|
||||
inherit cmake cmake-format;
|
||||
};
|
||||
|
||||
# Does not actually depend on Qt 5
|
||||
inherit (plasma5Packages) extra-cmake-modules;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user