nixpkgs/pkgs/development/tools/misc/cmake-language-server/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.1 KiB
Nix
Raw Normal View History

2021-10-04 04:53:33 +00:00
{ lib
, buildPythonApplication
, fetchFromGitHub
2022-11-29 05:20:12 +00:00
, poetry-core
, pythonRelaxDepsHook
2022-08-03 01:02:11 +00:00
, cmake-format
2021-10-04 04:53:33 +00:00
, pygls
, cmake
, pytest-datadir
, pytestCheckHook
2020-05-27 23:21:24 +00:00
}:
buildPythonApplication rec {
pname = "cmake-language-server";
2022-08-04 16:52:30 +00:00
version = "0.1.6";
2020-05-27 23:21:24 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "regen100";
repo = pname;
2022-08-03 01:02:11 +00:00
rev = "refs/tags/v${version}";
2022-08-04 16:52:30 +00:00
sha256 = "sha256-B7dhCQo3g2E8+fzyl1RhaYQE6TFoqoLtp9Z7sZcv5xk=";
2020-05-27 23:21:24 +00:00
};
patches = [
2021-10-04 04:53:33 +00:00
# Test timeouts occasionally cause the build to fail
./disable-test-timeouts.patch
];
pythonRelaxDeps = [
"pygls"
];
2022-08-03 01:02:11 +00:00
nativeBuildInputs = [
2022-11-29 05:20:12 +00:00
poetry-core
pythonRelaxDepsHook
2022-08-03 01:02:11 +00:00
];
propagatedBuildInputs = [
cmake-format
pygls
];
checkInputs = [
cmake
cmake-format
pytest-datadir
pytestCheckHook
];
2020-05-27 23:21:24 +00:00
dontUseCmakeConfigure = true;
2021-10-04 04:53:33 +00:00
pythonImportsCheck = [ "cmake_language_server" ];
2020-05-27 23:21:24 +00:00
meta = with lib; {
2020-05-27 23:21:24 +00:00
description = "CMake LSP Implementation";
2021-10-04 04:53:33 +00:00
homepage = "https://github.com/regen100/cmake-language-server";
2020-05-27 23:21:24 +00:00
license = licenses.mit;
maintainers = with maintainers; [ kira-bruneau ];
2020-05-27 23:21:24 +00:00
};
}