diff options
Diffstat (limited to 'gnu/packages/c2rust.scm')
| -rw-r--r-- | gnu/packages/c2rust.scm | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/gnu/packages/c2rust.scm b/gnu/packages/c2rust.scm new file mode 100644 index 00000000000..b2f97e25212 --- /dev/null +++ b/gnu/packages/c2rust.scm | |||
| @@ -0,0 +1,58 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | ||
| 2 | ;;; Copyright © 2024 Danny Milosavljevic <dannym@friendly-machines.com> | ||
| 3 | ;;; | ||
| 4 | ;;; This file is part of GNU Guix. | ||
| 5 | ;;; | ||
| 6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | ||
| 7 | ;;; under the terms of the GNU General Public License as published by | ||
| 8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | ||
| 9 | ;;; your option) any later version. | ||
| 10 | ;;; | ||
| 11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | ||
| 12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 14 | ;;; GNU General Public License for more details. | ||
| 15 | ;;; | ||
| 16 | ;;; You should have received a copy of the GNU General Public License | ||
| 17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | ||
| 18 | |||
| 19 | (define-module (gnu packages c2rust) | ||
| 20 | #:use-module (guix packages) | ||
| 21 | #:use-module (guix download) | ||
| 22 | #:use-module (guix git-download) | ||
| 23 | #:use-module (guix build-system cargo) | ||
| 24 | #:use-module (guix build-system gnu) | ||
| 25 | #:use-module (guix gexp) | ||
| 26 | #:use-module (guix utils) | ||
| 27 | #:use-module (gnu packages) | ||
| 28 | #:use-module (gnu packages cmake) | ||
| 29 | #:use-module (gnu packages crates-io) | ||
| 30 | #:use-module (gnu packages crates-vcs) | ||
| 31 | #:use-module (gnu packages pkg-config) | ||
| 32 | #:use-module (gnu packages qt) | ||
| 33 | #:use-module (gnu packages llvm) | ||
| 34 | #:use-module ((guix licenses) #:prefix license:)) | ||
| 35 | |||
| 36 | (define-public rust-c2rust-bitfields-derive-0.18 | ||
| 37 | (package | ||
| 38 | (name "rust-c2rust-bitfields-derive") | ||
| 39 | (version "0.18.0") | ||
| 40 | (source | ||
| 41 | (origin | ||
| 42 | (method url-fetch) | ||
| 43 | (uri (crate-uri "c2rust-bitfields-derive" version)) | ||
| 44 | (file-name (string-append name "-" version ".tar.gz")) | ||
| 45 | (sha256 | ||
| 46 | (base32 "0i95j6q1d61h1m1pk84i3ih00hsmbn8ib35xr129fz2rw81c3jyk")))) | ||
| 47 | (build-system cargo-build-system) | ||
| 48 | (arguments | ||
| 49 | `(#:skip-build? #t | ||
| 50 | #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) | ||
| 51 | ("rust-quote" ,rust-quote-1) | ||
| 52 | ("rust-syn" ,rust-syn-1)))) | ||
| 53 | (home-page "https://c2rust.com/") | ||
| 54 | (synopsis | ||
| 55 | "C-compatible struct bitfield derive implementation used in the C2Rust project") | ||
| 56 | (description | ||
| 57 | "This package provides C-compatible struct bitfield derive implementation used in the C2Rust project.") | ||
| 58 | (license license:bsd-3))) | ||
