guix-commits
[Top][All Lists]
Advanced

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

01/02: gnu: Add castxml.


From: guix-commits
Subject: 01/02: gnu: Add castxml.
Date: Wed, 27 Mar 2024 05:33:01 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit d5a5d50932fd17981550f0416dcfddbd2b09af28
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Mar 26 15:45:26 2024 +0100

    gnu: Add castxml.
    
    * gnu/packages/cpp.scm (castxml): New variable.
    
    Change-Id: I11fe3bce19a1bdb1170aa81547574836a823bcb8
---
 gnu/packages/cpp.scm | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index d451eea2fd..acbe3e4836 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -91,6 +91,7 @@
   #:use-module (gnu packages glib)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages libevent)
+  #:use-module (gnu packages libffi)
   #:use-module (gnu packages libunwind)
   #:use-module (gnu packages linux)
   #:use-module (gnu packages llvm)
@@ -184,6 +185,37 @@ allocator that makes it easy to generate complex code 
without a significant
 development effort.")
       (license license:zlib))))
 
+(define-public castxml
+  (package
+    (name "castxml")
+    (version "0.6.4")
+    (source (origin
+              (method git-fetch)
+              (uri
+               (git-reference
+                (url "https://github.com/CastXML/CastXML";)
+                (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32 
"0l5ys9zmllfgwhjrm897akbsf38iswfcarhxg27xfhiy0bmzcwsg"))))
+    (build-system cmake-build-system)
+    (arguments
+     (list
+      #:configure-flags
+      #~(list
+         (string-append "-DCLANG_RESOURCE_DIR="
+                        #$(this-package-native-input "clang") "/lib/clang/"
+                        #$(version-major
+                           (package-version (this-package-native-input 
"clang")))))))
+    (inputs (list libffi))
+    (native-inputs (list clang-17 llvm-17))
+    (home-page "https://github.com/CastXML/CastXML";)
+    (synopsis "C-family abstract syntax tree XML output")
+    (description "CastXML is a C-family abstract syntax tree XML output tool.
+This project is maintained by Kitware in support of ITK, the Insight
+Segmentation and Registration Toolkit.")
+    (license license:asl2.0)))
+
 (define-public range-v3
   (package
     (name "range-v3")



reply via email to

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