[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
10/45: gnu: Add rust-libc-0.2.
From: |
guix-commits |
Subject: |
10/45: gnu: Add rust-libc-0.2. |
Date: |
Wed, 23 Oct 2019 03:49:12 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 5fafb361c94f3029820314457a7134a429df8404
Author: Efraim Flashner <address@hidden>
Date: Wed Oct 23 09:47:40 2019 +0300
gnu: Add rust-libc-0.2.
* gnu/packages/rust-cbindgen.scm (rust-libc-0.2): New hidden variable.
---
gnu/packages/rust-cbindgen.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/gnu/packages/rust-cbindgen.scm b/gnu/packages/rust-cbindgen.scm
index 2f8fe40..e02a023 100644
--- a/gnu/packages/rust-cbindgen.scm
+++ b/gnu/packages/rust-cbindgen.scm
@@ -210,3 +210,32 @@ primitives to an @code{io::Write}.")
(properties '((hidden? . #t)))
(license (list license:asl2.0
license:expat))))
+
+(define rust-libc-0.2
+ (package
+ (name "rust-libc")
+ (version "0.2.65")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "libc" version))
+ (file-name (string-append name "-" version ".crate"))
+ (sha256
+ (base32
+ "1s14bjxnz6haw0gr1h3j4sr7s2s407hpgm8dxhwnl7yzgxia0c8s"))))
+ (build-system cargo-build-system)
+ (home-page "https://github.com/rust-lang/libc")
+ (synopsis "Raw FFI bindings to platform libraries like libc")
+ (description
+ "libc provides all of the definitions necessary to easily
+interoperate with C code (or \"C-like\" code) on each of the platforms
+that Rust supports. This includes type definitions (e.g., c_int),
+constants (e.g., EINVAL) as well as function headers (e.g., malloc).
+
+This crate exports all underlying platform types, functions, and
+constants under the crate root, so all items are accessible as
+@samp{libc::foo}. The types and values of all the exported APIs match
+the platform that libc is compiled for.")
+ (properties '((hidden? . #t)))
+ (license (list license:expat
+ license:asl2.0))))
- branch master updated (f3fd5f4 -> 221012e), guix-commits, 2019/10/23
- 02/45: gnu: Add rust-atty-0.2., guix-commits, 2019/10/23
- 05/45: gnu: Add rust-cfg-if-0.1., guix-commits, 2019/10/23
- 07/45: gnu: Add rust-cloudabi-0.0., guix-commits, 2019/10/23
- 09/45: gnu: Add rust-itoa-0.4., guix-commits, 2019/10/23
- 03/45: gnu: Add rust-autocfg-0.1., guix-commits, 2019/10/23
- 04/45: gnu: Add rust-bitflags-1.1., guix-commits, 2019/10/23
- 08/45: gnu: Add rust-fuchsia-cprng-0.1., guix-commits, 2019/10/23
- 10/45: gnu: Add rust-libc-0.2.,
guix-commits <=
- 01/45: gnu: Add rust-ansi-term-0.11., guix-commits, 2019/10/23
- 17/45: gnu: Add rust-rand-core-0.4., guix-commits, 2019/10/23
- 24/45: gnu: Add rust-rand-xorshift-0.1., guix-commits, 2019/10/23
- 26/45: gnu: Add rust-redox-syscall-0.1., guix-commits, 2019/10/23
- 31/45: gnu: Add rust-serde-derive-1.0., guix-commits, 2019/10/23
- 30/45: gnu: Add rust-serde-1.0., guix-commits, 2019/10/23
- 11/45: gnu: Add rust-log-0.4., guix-commits, 2019/10/23
- 06/45: gnu: Add rust-clap-2., guix-commits, 2019/10/23
- 22/45: gnu: Add rust-rand-os-0.1., guix-commits, 2019/10/23
- 20/45: gnu: Add rust-rand-isaac-0.1., guix-commits, 2019/10/23