oom pushed a commit to branch c++-team
in repository guix.

commit a081dc56a2eabaa482e4c5775d05a25763419a84
Author: Greg Hogan <c...@greghogan.com>
AuthorDate: Tue May 6 17:32:34 2025 +0000

    gnu: yaml-cpp: Update to 0.8.0-2f86d1377.
    
    * gnu/packages/serialization.scm (yaml-cpp): Update to 0.8.0-2f86d1377.
    [source](snippet): Delete bundled googletest.
    [arguments]<#:configure-flags>: Enable tests.
    [inputs]: Add googletest.
    
    Change-Id: I2b8f248fe90809643bf4a2c10343057af3332bad
---
 gnu/packages/serialization.scm | 49 ++++++++++++++++++++++++------------------
 1 file changed, 28 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/serialization.scm b/gnu/packages/serialization.scm
index 67d2b59438..03d865359a 100644
--- a/gnu/packages/serialization.scm
+++ b/gnu/packages/serialization.scm
@@ -605,27 +605,34 @@ character limit for implicit keys.")
     (license license:expat)))
 
 (define-public yaml-cpp
-  (package
-    (name "yaml-cpp")
-    (version "0.8.0")
-    (source
-     (origin
-       (method git-fetch)
-       (uri (git-reference
-             (url "https://github.com/jbeder/yaml-cpp";)
-             (commit version)))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32 "0whdn6pqa56532ml20h89p6rchcrrazdrvi5fz6zpmrkl15yiki7"))))
-    (build-system cmake-build-system)
-    (arguments
-     '(#:configure-flags '("-DYAML_BUILD_SHARED_LIBS=ON")))
-    (native-inputs
-     (list python))
-    (home-page "https://github.com/jbeder/yaml-cpp";)
-    (synopsis "YAML parser and emitter in C++")
-    (description "YAML parser and emitter in C++ matching the YAML 1.2 spec.")
-    (license license:bsd-3)))
+  (let ((commit "2f86d13775d119edbb69af52e5f566fd65c6953b")
+        (revision "0"))
+    (package
+      (name "yaml-cpp")
+      (version (git-version "0.8.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/jbeder/yaml-cpp";)
+               (commit commit)))
+         (modules '((guix build utils)))
+         (snippet #~(delete-file-recursively "test/googletest-1.13.0"))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "12ncx2hlsl5vp9yfja6myxalg85j0kgxwbargn37yiwi8rn17m8s"))))
+      (build-system cmake-build-system)
+      (arguments
+       '(#:configure-flags '("-DYAML_BUILD_SHARED_LIBS=ON"
+                             "-DYAML_CPP_BUILD_TESTS=ON"
+                             "-DYAML_USE_SYSTEM_GTEST=ON")))
+      (native-inputs
+       (list python))
+      (inputs (list googletest))
+      (home-page "https://github.com/jbeder/yaml-cpp";)
+      (synopsis "YAML parser and emitter in C++")
+      (description "YAML parser and emitter in C++ matching the YAML 1.2 
spec.")
+      (license license:bsd-3))))
 
 (define-public jsoncpp
   (package

Reply via email to