summary refs log tree commit diff
diff options
context:
space:
mode:
authorOntje Lünsdorf <ontje.luensdorf@dlr.de>2022-11-10 09:11:11 +0100
committerLudovic Courtès <ludo@gnu.org>2022-12-02 23:11:09 +0100
commit9b016e29912b11f52e67e59b211fa016d88fea4a (patch)
tree8fec52b8ebbff8ae39c275baf3b207446e82250d
parent51d6bd35072d02fa5be2cb89088e039597af1a30 (diff)
downloadguix-9b016e29912b11f52e67e59b211fa016d88fea4a.tar.gz
gnu: python-protobuf: Use C++ implementation.
* gnu/packages/protobuf.scm (python-protobuf): Use C++ implementation.
  [inputs]: Add protobuf.
  [arguments]: Add --cpp_implementation configure flags.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/protobuf.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/packages/protobuf.scm b/gnu/packages/protobuf.scm
index f7184bd49a..ab701b254d 100644
--- a/gnu/packages/protobuf.scm
+++ b/gnu/packages/protobuf.scm
@@ -406,6 +406,12 @@ from protobuf specification files.")
         (base32
          "1ja2vpk9nklllmsirmil2s4l7ni9yfqvbvj47zz5xx17s1k1bhxd"))))
     (build-system python-build-system)
+    (inputs (list protobuf))
+    (arguments
+     `(;; Favor C++ implementation from protobuf over the native Python
+       ;; implementation. The additional dependency yields significant
+       ;; performance improvements for some workloads.
+       #:configure-flags '("--cpp_implementation")))
     (home-page "https://github.com/google/protobuf")
     (synopsis "Protocol buffers is a data interchange format")
     (description