Merge pull request #294057 from GaetanLepage/luarocks-packages-update

luaPackages: update on 2024-04-12
This commit is contained in:
Matthieu Coudron
2024-04-14 00:24:17 +02:00
committed by GitHub
3 changed files with 370 additions and 340 deletions
File diff suppressed because it is too large Load Diff
+25 -15
View File
@@ -91,7 +91,7 @@ in
];
postConfigure = ''
substituteInPlace ''${rockspecFilename} \
--replace "'lua_cliargs = 3.0-1'," "'lua_cliargs >= 3.0-1',"
--replace "'lua_cliargs = 3.0'," "'lua_cliargs >= 3.0',"
'';
postInstall = ''
installShellCompletion --cmd busted \
@@ -146,16 +146,6 @@ in
'';
});
# Until https://github.com/swarn/fzy-lua/pull/8 is merged,
# we have to invoke busted manually
fzy = prev.fzy.overrideAttrs(oa: {
doCheck = true;
nativeCheckInputs = [ prev.busted ];
checkPhase = ''
busted test/test.lua
'';
});
http = prev.http.overrideAttrs (oa: {
patches = [
(fetchpatch {
@@ -387,6 +377,14 @@ in
];
});
luasnip = prev.luasnip.overrideAttrs (_: {
# Until https://github.com/L3MON4D3/LuaSnip/issues/1139 is solved
postConfigure = ''
substituteInPlace ''${rockspecFilename} \
--replace "'jsregexp >= 0.0.5, <= 0.0.6'" "'jsregexp >= 0.0.5'"
'';
});
luaossl = prev.luaossl.overrideAttrs (_: {
externalDeps = [
{ name = "CRYPTO"; dep = openssl; }
@@ -427,6 +425,13 @@ in
# meta.broken = true;
# });
lua-resty-openidc = prev.lua-resty-openidc.overrideAttrs (_: {
postConfigure = ''
substituteInPlace ''${rockspecFilename} \
--replace '"lua-resty-session >= 2.8, <= 3.10",' '"lua-resty-session >= 2.8",'
'';
});
lua-yajl = prev.lua-yajl.overrideAttrs (oa: {
buildInputs = oa.buildInputs ++ [
yajl
@@ -672,12 +677,13 @@ in
toml = prev.toml.overrideAttrs (oa: {
patches = [ ./toml.patch ];
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ magic-enum sol2 ];
nativeBuildInputs = oa.nativeBuildInputs ++ [ tomlplusplus ];
propagatedBuildInputs = oa.propagatedBuildInputs ++ [ sol2 ];
postPatch = ''
substituteInPlace CMakeLists.txt --replace \
"TOML_PLUS_PLUS_SRC" \
"${tomlplusplus.src}"
substituteInPlace CMakeLists.txt \
--replace "TOML_PLUS_PLUS_SRC" "${tomlplusplus.src}" \
--replace "MAGIC_ENUM_SRC" "${magic-enum.src}"
'';
});
@@ -705,6 +711,10 @@ in
});
vusted = prev.vusted.overrideAttrs (_: {
postConfigure = ''
substituteInPlace ''${rockspecFilename} \
--replace '"luasystem = 0.2.1",' '"luasystem",'
'';
# make sure vusted_entry.vim doesn't get wrapped
postInstall = ''
chmod -x $out/bin/vusted_entry.vim
+17 -8
View File
@@ -1,5 +1,5 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ab3884c..9432df7 100644
index faae37a..6990d4a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -38,26 +38,17 @@ include(FetchContent)
@@ -9,8 +9,8 @@ index ab3884c..9432df7 100644
- GIT_REPOSITORY "https://github.com/marzer/tomlplusplus.git"
- GIT_SHALLOW ON
- GIT_SUBMODULES ""
- GIT_TAG "v3.3.0"
+ DOWNLOAD_COMMAND true
- GIT_TAG "v3.4.0"
+ DOWNLOAD_COMMAND true
)
FetchContent_Declare(
@@ -19,7 +19,7 @@ index ab3884c..9432df7 100644
- GIT_SHALLOW ON
- GIT_SUBMODULES ""
- GIT_TAG "v3.3.0"
+ DOWNLOAD_COMMAND true
+ DOWNLOAD_COMMAND true
)
FetchContent_Declare(
@@ -27,17 +27,26 @@ index ab3884c..9432df7 100644
- GIT_REPOSITORY "https://github.com/Neargye/magic_enum.git"
- GIT_SHALLOW ON
- GIT_SUBMODULES ""
- GIT_TAG "v0.8.2"
+ DOWNLOAD_COMMAND true
- GIT_TAG "v0.9.5"
+ DOWNLOAD_COMMAND true
)
FetchContent_GetProperties(${TOML++})
@@ -113,7 +104,7 @@ if(NOT LUA_INCLUDE_DIR OR (WIN32 AND NOT LUA_LIBRARIES))
@@ -112,7 +103,7 @@ if(NOT LUA_INCLUDE_DIR OR (WIN32 AND NOT LUA_LIBRARIES))
find_package(Lua)
endif()
-include_directories(${LUA_INCLUDE_DIR} src src/include ${${TOML++}_SOURCE_DIR} ${${SOL2}_SOURCE_DIR}/include ${${MAGIC_ENUM}_SOURCE_DIR}/include)
+include_directories(${LUA_INCLUDE_DIR} src src/include TOML_PLUS_PLUS_SRC ${${SOL2}_SOURCE_DIR}/include ${${MAGIC_ENUM}_SOURCE_DIR}/include)
+include_directories(${LUA_INCLUDE_DIR} src src/include TOML_PLUS_PLUS_SRC ${${SOL2}_SOURCE_DIR}/include MAGIC_ENUM_SRC/include)
set(SOURCES
src/toml.cpp
@@ -129,7 +120,7 @@ source_group(src FILES ${SOURCES})
if(WIN32 AND "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang" OR MSVC)
target_link_options(toml.lua PUBLIC ${PROJECT_SOURCE_DIR}\\libs\\lua51.lib)
else()
- target_link_libraries(toml.lua ${LUA_LIBRARIES} tomlplusplus::tomlplusplus)
+ target_link_libraries(toml.lua ${LUA_LIBRARIES} tomlplusplus)
endif()
if (LINK_FLAGS)