From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 44/86] gnu: Add rust-rustc-serialize. Date: Tue, 3 Jan 2017 23:36:00 +0000 Message-ID: <20170103233642.3181-45-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54277) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYee-0003vu-9s for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYed-0001k5-BS for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:08 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYed-0001j9-3v for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:07 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYeb-0002OL-VP for guix-devel@gnu.org; Wed, 04 Jan 2017 00:38:06 +0100 In-Reply-To: <20170103233642.3181-1-ng0@libertad.pw> 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-rustc-serialize): New variable. --- gnu/packages/rust.scm | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index c85697173..0ddea98f9 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1240,3 +1240,26 @@ allocations in Rust programs.") display of mixed right-to-left and left-to-right text. It is written in safe Rust, compatible with the current stable release.") (license (list license:expat license:asl2.0)))) + +(define-public rust-rustc-serialize + (package + (name "rust-rustc-serialize") + (version "0.3.22") + (source + (origin + (method url-fetch) + (uri (crate-uri "rustc-serialize" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0ywmsdk4l4q68hkw37743cf8kl7dp71p6317h14v82zji734cx93")))) + (build-system cargo-build-system) + (native-inputs `(("rust-rand" ,rust-rand "src"))) + (home-page "https://github.com/rust-lang/rustc-serialize") + (synopsis "Generic serialization/deserialization support") + (description + "Generic serialization/deserialization support corresponding to the +@code{derive(RustcEncodable, RustcDecodable)} mode in the compiler. It also +includes support for hex, base64, and json encoding and decoding.") + (license (list license:expat license:asl2.0)))) -- 2.11.0