3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/blspy/dont_fetch_dependencies.patch

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.9 KiB
Diff
Raw Normal View History

2021-09-10 14:07:34 +01:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6922167..23d8da6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,29 +31,18 @@ set(CMAKE_MODULE_PATH
include(FetchContent)
2021-05-09 15:30:13 +01:00
2021-09-10 14:07:34 +01:00
FetchContent_Declare(Sodium
- GIT_REPOSITORY https://github.com/AmineKhaldi/libsodium-cmake.git
- # Latest commit at the moment this was added here
- # Anchored to libsodium v1.0.18
- GIT_TAG f73a3fe1afdc4e37ac5fe0ddd401bf521f6bba65
+ URL @sodium_src@
2021-05-09 15:30:13 +01:00
)
2021-09-10 14:07:34 +01:00
set(SODIUM_PCH "on" CACHE STRING "")
set(SODIUM_DISABLE_TESTS "on" CACHE STRING "")
set(SODIUM_CHIA_MINIMAL "on" CACHE STRING "")
FetchContent_MakeAvailable(Sodium)
2021-05-09 15:30:13 +01:00
-if (DEFINED ENV{RELIC_MAIN})
- set(RELIC_GIT_TAG "origin/main")
-else ()
2021-09-10 14:07:34 +01:00
- # This is currently anchored to upstream aecdcae7956f542fbee2392c1f0feb0a8ac41dc5
2022-04-21 17:19:51 +01:00
- set(RELIC_GIT_TAG "215c69966cb78b255995f0ee9c86bbbb41c3c42b")
2021-05-09 15:30:13 +01:00
-endif ()
-
2021-09-10 14:07:34 +01:00
message(STATUS "Relic will be built from: ${RELIC_GIT_TAG}")
2021-05-09 15:30:13 +01:00
FetchContent_Declare(
relic
2021-09-10 14:07:34 +01:00
- GIT_REPOSITORY https://github.com/Chia-Network/relic.git
- GIT_TAG ${RELIC_GIT_TAG}
2021-05-09 15:30:13 +01:00
+ SOURCE_DIR @relic_src@
)
2021-09-10 14:07:34 +01:00
# Relic related options
diff --git a/python-bindings/CMakeLists.txt b/python-bindings/CMakeLists.txt
index 5a8c381..d9aa940 100644
--- a/python-bindings/CMakeLists.txt
+++ b/python-bindings/CMakeLists.txt
@@ -1,8 +1,7 @@
FetchContent_Declare(
pybind11
- GIT_REPOSITORY https://github.com/pybind/pybind11.git
- GIT_TAG v2.6.2
+ SOURCE_DIR @pybind11_src@
)
FetchContent_MakeAvailable(pybind11 relic)
2021-05-09 15:30:13 +01:00
2021-12-15 01:11:21 +00:00
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 449164a..15a955e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -37,8 +37,7 @@ install(FILES $<TARGET_FILE:bls> DESTINATION lib)
if(BUILD_BLS_TESTS)
FetchContent_Declare(
Catch2
- GIT_REPOSITORY https://github.com/catchorg/Catch2.git
2022-04-21 17:19:51 +01:00
- GIT_TAG v3.0.0-preview5
2021-12-15 01:11:21 +00:00
+ URL @catch2_src@
)
FetchContent_MakeAvailable(Catch2)
add_executable(runtest test.cpp)