guix-commits
[Top][All Lists]
Advanced

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

05/13: gnu: Add rust-clang-ast-0.1.


From: guix-commits
Subject: 05/13: gnu: Add rust-clang-ast-0.1.
Date: Thu, 10 Jun 2021 16:28:14 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit bbf3497c37f7ca63d0bfad7beea969e83b4338af
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Jun 10 23:08:30 2021 +0300

    gnu: Add rust-clang-ast-0.1.
    
    * gnu/packages/crates-io.scm (rust-clang-ast-0.1): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e7f3aa7..71d3385 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -7289,6 +7289,34 @@ coding.")
      "This package provides current CI environment information.")
     (license license:asl2.0)))
 
+(define-public rust-clang-ast-0.1
+  (package
+    (name "rust-clang-ast")
+    (version "0.1.6")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (crate-uri "clang-ast" version))
+        (file-name
+         (string-append name "-" version ".tar.gz"))
+        (sha256
+         (base32
+          "1sfqyxszas78s78nga88fl0i5qlr87qsj22vlxarhvx96q86impf"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t     ; Uses unstable features.
+       #:cargo-inputs
+       (("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs
+       (("rust-clang-ast-test-suite" ,rust-clang-ast-test-suite-0.0.0)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/dtolnay/clang-ast";)
+    (synopsis "Data structures for processing Clang's ast format")
+    (description "This package contains data structures for processing Clang's
+@code{-ast-dump=json} format.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-clang-ast-test-suite-0.0.0
   (package
     (name "rust-clang-ast-test-suite")



reply via email to

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