diff options
author | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-21 13:26:35 +0100 |
---|---|---|
committer | Danny Milosavljevic <dannym@friendly-machines.com> | 2024-12-21 13:26:35 +0100 |
commit | 3fafc8e51439a8acb644928bf3fb9d102da6bfdb (patch) | |
tree | a539de081f96e0b3d9e81b43a04c2427aa9bf613 | |
parent | 5aef68575f1a89bc98bcd9bbe82425a3f82106f8 (diff) | |
download | guix-3fafc8e51439a8acb644928bf3fb9d102da6bfdb.tar.gz guix-3fafc8e51439a8acb644928bf3fb9d102da6bfdb.zip |
gnu: Add rust-c2rust-bitfields.
* gnu/packages/c2rust.scm (rust-c2rust-bitfields-0.18): New variable.
Change-Id: I1be51f171bc9c3955868f39d5c103c019c26d294
-rw-r--r-- | gnu/packages/c2rust.scm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/c2rust.scm b/gnu/packages/c2rust.scm index b2f97e2521..b23227e209 100644 --- a/gnu/packages/c2rust.scm +++ b/gnu/packages/c2rust.scm @@ -56,3 +56,25 @@ (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))) |