aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-11-02 14:58:11 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2022-11-06 00:08:04 -0400
commit32ba6c5ddfd12ad37f815a1930d7fe78b599a8f9 (patch)
tree43648079baa6ebde664de54033d933afb03d5186 /gnu/packages
parent9f6479ecad2acf3f55d33c4dd596db061a9536e6 (diff)
downloadguix-32ba6c5ddfd12ad37f815a1930d7fe78b599a8f9.tar.gz
guix-32ba6c5ddfd12ad37f815a1930d7fe78b599a8f9.zip
gnu: protobuf: Unbundle googletest.
* gnu/packages/protobuf.scm (protobuf) [origin]: Delete third_party directory in snippet. [configure-flags]: Add "-Dprotobuf_USE_EXTERNAL_GTEST=ON". [native-inputs]: Add googletest.
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/protobuf.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index 53c982fc82..ede0933eeb 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -113,7 +113,8 @@ data in motion, or as a file format for data at rest.")
(arguments
(list
;; TODO: Add the BUILD_SHARED_LIBS flag to cmake-build-system.
- #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON")
+ #:configure-flags #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-Dprotobuf_USE_EXTERNAL_GTEST=ON")
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'disable-broken-tests
@@ -154,6 +155,7 @@ data in motion, or as a file format for data at rest.")
(install-file file slib)
(delete-file file))
(find-files lib "\\.a$"))))))))
+ (native-inputs (list googletest))
(inputs (list zlib))
(home-page "https://github.com/protocolbuffers/protobuf")
(synopsis "Data encoding for remote procedure calls (RPCs)")