Install corrosion as submodule. (#3348)

This will enable nixpkgs -- and any other distribution that builds in a
network sandbox and/or wants to use their own corrosion package rather
than building another one -- to do so without patching taskwarrior.

Since we're already using submodules for libshared I don't think this
should make the build process any more complicated for anyone else.

See
https://github.com/NixOS/nixpkgs/issues/300679#issuecomment-2041252688
for context.
This commit is contained in:
ryneeverett 2024-04-07 12:10:54 -04:00 committed by GitHub
parent b5aa7c6ae2
commit fd306712b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 6 deletions

3
.gitmodules vendored
View file

@ -1,3 +1,6 @@
[submodule "src/libshared"]
path = src/libshared
url = https://github.com/GothenburgBitFactory/libshared.git
[submodule "src/tc/corrosion"]
path = src/tc/corrosion
url = https://github.com/corrosion-rs/corrosion.git

View file

@ -1,11 +1,6 @@
cmake_minimum_required (VERSION 3.22)
FetchContent_Declare (
Corrosion
GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git
GIT_TAG v0.4.7
)
FetchContent_MakeAvailable(Corrosion)
add_subdirectory(${CMAKE_SOURCE_DIR}/src/tc/corrosion)
# Import taskchampion-lib as a CMake library.
corrosion_import_crate(

1
src/tc/corrosion Submodule

@ -0,0 +1 @@
Subproject commit 8ddd6d56ca597cb855f532e9ba4c7bc1cbe0803b