diff --git a/pkgs/development/tools/misc/cmake-language-server/default.nix b/pkgs/development/tools/misc/cmake-language-server/default.nix index e245128aa28c..9c2641487df4 100644 --- a/pkgs/development/tools/misc/cmake-language-server/default.nix +++ b/pkgs/development/tools/misc/cmake-language-server/default.nix @@ -11,17 +11,17 @@ buildPythonApplication rec { pname = "cmake-language-server"; - version = "unstable-2023-01-08"; + version = "0.1.7"; format = "pyproject"; src = fetchFromGitHub { owner = "regen100"; - repo = pname; - rev = "60c376a5fda29835060687569cb212350a292116"; - hash = "sha256-vNG43sZy2wMetY5mbgxIoei5jCCj1f8vWiovWtwzbPc="; + repo = "cmake-language-server"; + rev = "refs/tags/v${version}"; + hash = "sha256-ExEAi47hxxEJeoT3FCwpRwJrf3URnI47/5FDL7fS5sY="; }; - PDM_PEP517_SCM_VERSION = "2023.1"; + PDM_PEP517_SCM_VERSION = version; patches = [ # Test timeouts occasionally cause the build to fail diff --git a/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch b/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch index 6b66681056bb..237558bb6603 100644 --- a/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch +++ b/pkgs/development/tools/misc/cmake-language-server/disable-test-timeouts.patch @@ -1,10 +1,10 @@ diff --git a/tests/test_server.py b/tests/test_server.py -index 2d09bb2..59a122a 100644 +index f349329..d130a2e 100644 --- a/tests/test_server.py +++ b/tests/test_server.py -@@ -26,7 +26,7 @@ from pygls.lsp.types import ( - ) - from pygls.server import LanguageServer +@@ -27,7 +27,7 @@ from pygls.server import LanguageServer + + from cmake_language_server.server import CMakeLanguageServer -CALL_TIMEOUT = 2 +CALL_TIMEOUT = None