void-packages/srcpkgs/neovim/patches/disable-parser-download.patch

21 lines
824 B
Diff

diff --git a/cmake.deps/cmake/BuildTreesitterParsers.cmake b/cmake.deps/cmake/BuildTreesitterParsers.cmake
index 837d075..6c3fccb 100644
--- a/cmake.deps/cmake/BuildTreesitterParsers.cmake
+++ b/cmake.deps/cmake/BuildTreesitterParsers.cmake
@@ -19,13 +19,12 @@ function(BuildTSParser)
get_externalproject_options(${NAME} ${DEPS_IGNORE_SHA})
ExternalProject_Add(${NAME}
- DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/${NAME}
+ SOURCE_DIR ${DEPS_BUILD_DIR}/src/${NAME}
PATCH_COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/cmake/${TS_CMAKE_FILE}
${DEPS_BUILD_DIR}/src/${NAME}/CMakeLists.txt
CMAKE_ARGS ${DEPS_CMAKE_ARGS}
- -D PARSERLANG=${TS_LANG}
- ${EXTERNALPROJECT_OPTIONS})
+ -D PARSERLANG=${TS_LANG})
endfunction()
foreach(lang c lua vim vimdoc query python bash)