mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-27 02:34:53 +00:00
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
diff --git a/packaging/cmake/Modules/NetdataSQLite.cmake b/packaging/cmake/Modules/NetdataSQLite.cmake
|
|
index de3e0c0..b691e8a 100644
|
|
--- a/packaging/cmake/Modules/NetdataSQLite.cmake
|
|
+++ b/packaging/cmake/Modules/NetdataSQLite.cmake
|
|
@@ -19,6 +19,8 @@ set(SQLITE_GIT_SHA "92a6c5c3636faa021ecc3be5403a00f50f65eda7") # tag is: version
|
|
|
|
option(SQLITE_USE_GIT "Fetch SQLite sources via git clone instead of tarball" OFF)
|
|
|
|
+set(NETDATA_SQLITE_SOURCE_PATH "" CACHE FILEPATH "")
|
|
+
|
|
function(netdata_bundle_sqlite3)
|
|
message(STATUS "Preparing SQLite ${SQLITE_VERSION}")
|
|
|
|
@@ -28,7 +30,13 @@ function(netdata_bundle_sqlite3)
|
|
|
|
file(MAKE_DIRECTORY "${sqlite_OUTPUT_DIR}")
|
|
|
|
- if(SQLITE_USE_GIT)
|
|
+ if(NETDATA_SQLITE_SOURCE_PATH)
|
|
+ message(STATUS "Using local SQLite source archive: ${NETDATA_SQLITE_SOURCE_PATH}")
|
|
+ set(SQLITE_FETCH_ARGS
|
|
+ URL "${NETDATA_SQLITE_SOURCE_PATH}"
|
|
+ URL_HASH "SHA256=${SQLITE_TARBALL_SHA256}"
|
|
+ )
|
|
+ elseif(SQLITE_USE_GIT)
|
|
message(STATUS "Fetching SQLite via git clone")
|
|
set(SQLITE_FETCH_ARGS
|
|
GIT_REPOSITORY https://github.com/sqlite/sqlite.git
|