From e57e8c39b1b2a1bc568b4fcea8abdacffce62438 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sat, 21 Dec 2024 13:28:39 +0100 Subject: gnu: Add rust-c2rust-ast-builder. * gnu/packages/c2rust.scm (rust-c2rust-ast-builder-0.18): New variable. Change-Id: Ib7944e20955996f6377abef33a020c64b676eaf8 --- gnu/packages/c2rust.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/c2rust.scm b/gnu/packages/c2rust.scm index 6b14bbdcb0..7e74461d5a 100644 --- a/gnu/packages/c2rust.scm +++ b/gnu/packages/c2rust.scm @@ -102,3 +102,25 @@ (description "This package provides Customized version of libsyntax rust pretty-printer.") (license (list license:expat license:asl2.0)))) + +(define-public rust-c2rust-ast-builder-0.18 + (package + (name "rust-c2rust-ast-builder") + (version "0.18.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "c2rust-ast-builder" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0w63rp66g6axkymxd16avxp3gjnphy3mg9938gsh52p4aak83nq5")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://c2rust.com/") + (synopsis "Rust AST builder support crate for the C2Rust project") + (description + "This package provides Rust AST builder support crate for the C2Rust project.") + (license license:bsd-3))) -- cgit v1.2.3