aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2021-12-03 22:12:58 +0100
committerLeo Famulari <leo@famulari.name>2021-12-28 14:09:54 -0500
commit343dd78918d271c3c605ab0c0c5cafe0b52a2008 (patch)
tree6a0aba21cfdb1bddd81e90f565d528220afc99a0
parent289e096fddcab4aab444fae150cb69913aa31cca (diff)
downloadguix-343dd78918d271c3c605ab0c0c5cafe0b52a2008.tar
guix-343dd78918d271c3c605ab0c0c5cafe0b52a2008.tar.gz
gnu: Add rust-memmap2-0.5.
* gnu/packages/crates-io.scm (rust-memmap2-0.5): New variable. (rust-memmap2-0.3): Inherit from above.
-rw-r--r--gnu/packages/crates-io.scm29
1 files changed, 24 insertions, 5 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 45f2e4ace1..35dd6b156f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29304,27 +29304,46 @@ file IO.")
#:cargo-development-inputs
(("rust-tempdir" ,rust-tempdir-0.3))))))
-(define-public rust-memmap2-0.3
+(define-public rust-memmap2-0.5
(package
(name "rust-memmap2")
- (version "0.3.0")
+ (version "0.5.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "memmap2" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1xcg3vv6rg8vhl0wdfy085gx4xsp2dah7anvn5816h6wgczj1zr0"))))
+ (base32 "0vp9pxd20gyq8196v73chxdw6gfxz3g4lkdkvffd5slgawds2is6"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
- (("rust-libc" ,rust-libc-0.2))))
+ (("rust-libc" ,rust-libc-0.2)
+ ("rust-stable-deref-trait" ,rust-stable-deref-trait-1))))
(home-page "https://github.com/RazrFalcon/memmap2-rs")
(synopsis "Cross-platform Rust API for memory-mapped file IO")
- (description "This package provides a Rust API for memory-mapped file IO.")
+ (description
+ "This package provides a Rust API for memory-mapped file IO.")
(license (list license:expat license:asl2.0))))
+(define-public rust-memmap2-0.3
+ (package
+ (inherit rust-memmap2-0.5)
+ (name "rust-memmap2")
+ (version "0.3.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "memmap2" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1xcg3vv6rg8vhl0wdfy085gx4xsp2dah7anvn5816h6wgczj1zr0"))))
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-libc" ,rust-libc-0.2))))))
+
(define-public rust-memmap2-0.2
(package
(inherit rust-memmap2-0.3)