From 5dcbff58611d750a013f28483d26f5ce7e44e719 Mon Sep 17 00:00:00 2001 From: ng0 Date: Thu, 29 Dec 2016 20:47:57 +0000 Subject: [PATCH] gnu: Add rust-libc. * gnu/packages/rust.scm (rust-libc): New variable. --- gnu/packages/rust.scm | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 1ba857d36..04327bdfe 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2016 David Craven ;;; Copyright © 2016 Eric Le Bihan -;;; Copyright © 2016 ng0 +;;; Copyright © 2016, 2018 ng0 ;;; Copyright © 2017 Ben Woodcroft ;;; Copyright © 2017 Nikolai Merinov ;;; Copyright © 2017 Efraim Flashner @@ -45,6 +45,7 @@ #:use-module (guix build-system cargo) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) + #:use-module (guix build-system cargo) #:use-module (guix download) #:use-module (guix base16) ;for generated "cargo" native-inputs #:use-module ((guix licenses) #:prefix license:) @@ -1468,3 +1469,23 @@ dependencies and ensures a reproducible build.") ;; Cargo is dual licensed Apache and MIT. Also contains ;; code from openssl which is GPL2 with linking exception. (license (list license:asl2.0 license:expat license:gpl2)))) + +(define-public rust-libc + (package + (name "rust-libc") + (version "0.2.21") + (source + (origin + (method url-fetch) + (uri (crate-uri "libc" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0d9i6sii2cqfnkv9k7j0kq7my2n6q6kzw1p3j7wvy14zby483vl8")))) + (build-system cargo-build-system) + (home-page "https://github.com/rust-lang/libc") + (synopsis "Raw bindings to platform APIs for Rust") + (description + "Libc provides a library for types and bindings to native +C functions often found in libc or other common platform libraries.") + (license (list license:expat license:asl2.0)))) -- 2.16.1