gnu: Add rust-c2rust-bitfields.

* gnu/packages/c2rust.scm (rust-c2rust-bitfields-0.18): New variable.

Change-Id: I1be51f171bc9c3955868f39d5c103c019c26d294
This commit is contained in:
Danny Milosavljevic 2024-12-21 13:26:35 +01:00
parent 5aef68575f
commit 3fafc8e514
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5

View file

@ -56,3 +56,25 @@ (define-public rust-c2rust-bitfields-derive-0.18
(description
"This package provides C-compatible struct bitfield derive implementation used in the C2Rust project.")
(license license:bsd-3)))
(define-public rust-c2rust-bitfields-0.18
(package
(name "rust-c2rust-bitfields")
(version "0.18.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "c2rust-bitfields" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0h9cnyijk65zypv8dqbmr5r238pqq9pa8njrdzx09xhfmc3kyg5l"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs (("rust-c2rust-bitfields-derive" ,rust-c2rust-bitfields-derive-0.18))))
(home-page "https://c2rust.com/")
(synopsis
"C-compatible struct bitfield implementation used in the C2Rust project")
(description
"This package provides C-compatible struct bitfield implementation used in the C2Rust project.")
(license license:bsd-3)))