diff options
author | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-21 13:27:12 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-21 13:27:12 +0100 |
commit | 591f4f1b98a7b89c637cb597fdd16f3eea0464c2 (patch) | |
tree | 3e386e1b1d1242657cb393bc5699d12c18d7d117 | |
parent | 3fafc8e51439a8acb644928bf3fb9d102da6bfdb (diff) | |
download | guix-591f4f1b98a7b89c637cb597fdd16f3eea0464c2.tar.gz guix-591f4f1b98a7b89c637cb597fdd16f3eea0464c2.zip |
gnu: Add rust-c2rust-ast-printer.
* gnu/packages/c2rust.scm (rust-c2rust-ast-printer-0.18): New variable.
Change-Id: I9730eef9e26834ce4dd74ada406d4aa78685f24a
-rw-r--r-- | gnu/packages/c2rust.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/c2rust.scm b/gnu/packages/c2rust.scm index b23227e209..6b14bbdcb0 100644 --- a/gnu/packages/c2rust.scm +++ b/gnu/packages/c2rust.scm @@ -78,3 +78,27 @@ (description "This package provides C-compatible struct bitfield implementation used in the C2Rust project.") (license license:bsd-3))) + +(define-public rust-c2rust-ast-printer-0.18 + (package + (name "rust-c2rust-ast-printer") + (version "0.18.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "c2rust-ast-printer" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1a02bnnxn1difq917c2rv8b7654ni65lyk37hdyklv9n96inr07r")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-log" ,rust-log-0.4) + ("rust-prettyplease" ,rust-prettyplease-0.1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-syn" ,rust-syn-1)))) + (home-page "https://c2rust.com/") + (synopsis "Customized version of libsyntax rust pretty-printer") + (description + "This package provides Customized version of libsyntax rust pretty-printer.") + (license (list license:expat license:asl2.0)))) |