From cafde8ae634caf28ebec8c9be30245a814e97a40 Mon Sep 17 00:00:00 2001 From: Danny Milosavljevic Date: Sat, 21 Dec 2024 13:30:41 +0100 Subject: [PATCH] gnu: Add rust-c2rust-build-paths. * gnu/packages/c2rust.scm (rust-c2rust-build-paths-0.18): New variable. Change-Id: I84d617f2d86f31ee7aa94bb3ecbaeac0939cb317 --- gnu/packages/c2rust.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/c2rust.scm b/gnu/packages/c2rust.scm index 7e74461d5a..cd3976c0c6 100644 --- a/gnu/packages/c2rust.scm +++ b/gnu/packages/c2rust.scm @@ -124,3 +124,25 @@ (define-public rust-c2rust-ast-builder-0.18 (description "This package provides Rust AST builder support crate for the C2Rust project.") (license license:bsd-3))) + +(define-public rust-c2rust-build-paths-0.18 + (package + (name "rust-c2rust-build-paths") + (version "0.18.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "c2rust-build-paths" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0b2liaxbqksgfbsmr6hacdia6czlq7m0pyqx3l2rrcfcnb2ksgv0")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-print-bytes" ,rust-print-bytes-1)))) + (home-page "https://c2rust.com/") + (synopsis + "C2Rust utilities related to build paths, primarily at build time") + (description + "This package provides C2Rust utilities related to build paths, primarily at build time.") + (license license:bsd-3)))