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.

60 lines
1.1 KiB
Nix
Raw Normal View History

2021-10-04 04:53:33 +00:00
{ lib
, buildPythonApplication
, fetchFromGitHub
2022-08-03 01:02:11 +00:00
, cmake-format
2021-10-04 04:53:33 +00:00
, pygls
, cmake
, pdm-pep517
2021-10-04 04:53:33 +00:00
, pytest-datadir
, pytestCheckHook
2020-05-27 23:21:24 +00:00
}:
buildPythonApplication rec {
pname = "cmake-language-server";
version = "0.1.7";
2020-05-27 23:21:24 +00:00
format = "pyproject";
src = fetchFromGitHub {
owner = "regen100";
repo = "cmake-language-server";
rev = "refs/tags/v${version}";
hash = "sha256-ExEAi47hxxEJeoT3FCwpRwJrf3URnI47/5FDL7fS5sY=";
2020-05-27 23:21:24 +00:00
};
PDM_PEP517_SCM_VERSION = version;
patches = [
2021-10-04 04:53:33 +00:00
# Test timeouts occasionally cause the build to fail
./disable-test-timeouts.patch
];
2022-08-03 01:02:11 +00:00
nativeBuildInputs = [
pdm-pep517
2022-08-03 01:02:11 +00:00
];
propagatedBuildInputs = [
cmake-format
pygls
];
nativeCheckInputs = [
2022-08-03 01:02:11 +00:00
cmake
cmake-format
pytest-datadir
pytestCheckHook
];
2020-05-27 23:21:24 +00:00
dontUseCmakeConfigure = true;
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
};
}