From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: [PATCH 54/86] gnu: Add rust-memmap. Date: Tue, 3 Jan 2017 23:36:10 +0000 Message-ID: <20170103233642.3181-55-ng0@libertad.pw> References: <20170103233642.3181-1-ng0@libertad.pw> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cOYf6-0004KA-US for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cOYf3-000227-E1 for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:36 -0500 Received: from aibo.runbox.com ([91.220.196.211]:33482) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cOYf3-00021e-7O for guix-devel@gnu.org; Tue, 03 Jan 2017 18:38:33 -0500 Received: from [10.9.9.212] (helo=mailfront12.runbox.com) by bars.runbox.com with esmtp (Exim 4.71) (envelope-from ) id 1cOYf2-0002jt-27 for guix-devel@gnu.org; Wed, 04 Jan 2017 00:38:32 +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-memmap): New variable. --- gnu/packages/rust.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 951423565..1b2352b9e 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1491,3 +1491,28 @@ Koen Claessen's QuickCheck for Haskell.") (description "@code{fs2} provides cross-platform file locks and file duplication.") (license (list license:expat license:asl2.0)))) + +(define-public rust-memmap + (package + (name "rust-memmap") + (version "0.5.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "memmap" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1lmbkx92xlqb5yqh4cj2k4qfrm3x4jkbs04i84nfl60wyfdfap06")))) + (build-system cargo-build-system) + (native-inputs + `(("rust-tempdir" ,rust-tempdir "src"))) + (inputs + `(("rust-fs2" ,rust-fs2 "src") + ("rust-libc" ,rust-libc "src"))) + (home-page "https://github.com/danburkert/memmap-rs") + (synopsis "Cross-platform Rust API for memory-mapped file IO") + (description + "@code{memmap} provides a cross-platform Rust API for memory-mapped file IO.") + (license (list license:expat license:asl2.0)))) -- 2.11.0