From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 09/12] gnu: Add rust-libc. Date: Sun, 11 Dec 2016 18:25:34 +0100 Message-ID: <20161211172537.23315-10-david@craven.ch> References: <20161211172537.23315-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG7tH-0008TL-8k for guix-devel@gnu.org; Sun, 11 Dec 2016 12:26:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cG7tG-0001FI-C2 for guix-devel@gnu.org; Sun, 11 Dec 2016 12:26:23 -0500 Received: from so254-10.mailgun.net ([198.61.254.10]:42341) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cG7tG-000172-7R for guix-devel@gnu.org; Sun, 11 Dec 2016 12:26:22 -0500 In-Reply-To: <20161211172537.23315-1-david@craven.ch> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/rust.scm (rust-libc): New variable. --- gnu/packages/rust.scm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 8bbb5d116..acff15e6f 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -27,6 +27,7 @@ #:use-module (gnu packages llvm) #:use-module (gnu packages python) #:use-module (gnu packages version-control) + #:use-module (guix build-system cargo) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (guix download) @@ -269,3 +270,22 @@ to be deprecated.") fast, prevents segfaults, and guarantees thread safety.") (home-page "https://www.rust-lang.org") (license (list license:asl2.0 license:expat)))) + +(define-public rust-libc + (package + (name "rust-libc") + (version "0.2.16") + (source (origin + (method url-fetch) + (uri (crate-uri "libc" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "139fl308mb5wxap5fyd5c7n779a60sc1fi8wgdv0zvihrv519020")))) + (build-system cargo-build-system) + (home-page "https://github.com/rust-lang/libc") + (synopsis + "Types and bindings to native C functions") + (description "This package 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.11.0