guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/07: gnu: juCi++: Unbundle embedded copy of "nlohmann" JSON library.


From: guix-commits
Subject: 05/07: gnu: juCi++: Unbundle embedded copy of "nlohmann" JSON library.
Date: Wed, 9 Feb 2022 18:25:08 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit a87ec50b394cffebb6f19b3689fc12c71f974d40
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Feb 9 17:09:11 2022 +0100

    gnu: juCi++: Unbundle embedded copy of "nlohmann" JSON library.
    
    * gnu/packages/text-editors.scm (jucipp)[source](modules, snippet): New
    fields.
    [inputs]: Add JSON-MODERN-CXX.
---
 gnu/packages/text-editors.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index b8f9ae0326..0ae1ca4588 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -52,6 +52,7 @@
   #:use-module (gnu packages base)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages code)
+  #:use-module (gnu packages cpp)
   #:use-module (gnu packages crates-io)
   #:use-module (gnu packages documentation)
   #:use-module (gnu packages fontutils)
@@ -320,7 +321,12 @@ bindings and many of the powerful features of GNU Emacs.")
                                   (recursive? #t)))
               (file-name (git-file-name name version))
               (sha256
-               (base32 
"0xyf1fa7jvxzvg1dxh5vc50fbwjjsar4fmlvbfhicdd1f8bhz1ii"))))
+               (base32 "0xyf1fa7jvxzvg1dxh5vc50fbwjjsar4fmlvbfhicdd1f8bhz1ii"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin
+                  ;; Delete bundled copy of nlohmann/json.
+                  (delete-file-recursively "lib/json")))))
     (build-system cmake-build-system)
     (arguments
      (list #:configure-flags #~(list "-DBUILD_TESTING=ON")
@@ -381,6 +387,7 @@ bindings and many of the powerful features of GNU Emacs.")
            clang-11               ;XXX: must be the same version as Mesas LLVM
            gtkmm-3
            gtksourceviewmm
+           json-modern-cxx
            libgit2
            universal-ctags))
     (synopsis "Lightweight C++ IDE")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]