From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Craven Subject: [PATCH 11/12] gnu: Add rust-rand. Date: Sun, 11 Dec 2016 18:25:36 +0100 Message-ID: <20161211172537.23315-12-david@craven.ch> References: <20161211172537.23315-1-david@craven.ch> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cG7tK-00006d-5P for guix-devel@gnu.org; Sun, 11 Dec 2016 12:26:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cG7tI-0001HG-AL for guix-devel@gnu.org; Sun, 11 Dec 2016 12:26:26 -0500 Received: from so254-10.mailgun.net ([198.61.254.10]:57967) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cG7tI-00017I-5x for guix-devel@gnu.org; Sun, 11 Dec 2016 12:26:24 -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-rand): New variable. --- gnu/packages/rust.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index acff15e6f..a64f72f03 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -289,3 +289,22 @@ fast, prevents segfaults, and guarantees thread safety.") (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)))) + +(define-public rust-rand + (package + (name "rust-rand") + (version "0.3.15") + (source (origin + (method url-fetch) + (uri (crate-uri "rand" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "178qgglinqawwsw6l8imgnplxkmxcj404jqm92pds695xhv0cbh2")))) + (build-system cargo-build-system) + (inputs + `(("rust-libc" ,rust-libc))) + (home-page "https://github.com/rust-lang/rand") + (synopsis "Random number generators") + (description "Random number generators and other randomness functionality.") + (license (list license:expat license:asl2.0)))) -- 2.11.0