mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-18 04:37:36 -05:00
gnu: Add rust-memmap2-0.5.
* gnu/packages/crates-io.scm (rust-memmap2-0.5): New variable. (rust-memmap2-0.3): Inherit from above.
This commit is contained in:
parent
289e096fdd
commit
343dd78918
1 changed files with 25 additions and 6 deletions
|
@ -29304,8 +29304,32 @@ (define-public rust-memmap-0.2
|
|||
#:cargo-development-inputs
|
||||
(("rust-tempdir" ,rust-tempdir-0.3))))))
|
||||
|
||||
(define-public rust-memmap2-0.5
|
||||
(package
|
||||
(name "rust-memmap2")
|
||||
(version "0.5.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (crate-uri "memmap2" version))
|
||||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "0vp9pxd20gyq8196v73chxdw6gfxz3g4lkdkvffd5slgawds2is6"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:skip-build? #t
|
||||
#:cargo-inputs
|
||||
(("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.")
|
||||
(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
|
||||
|
@ -29315,15 +29339,10 @@ (define-public rust-memmap2-0.3
|
|||
(file-name (string-append name "-" version ".tar.gz"))
|
||||
(sha256
|
||||
(base32 "1xcg3vv6rg8vhl0wdfy085gx4xsp2dah7anvn5816h6wgczj1zr0"))))
|
||||
(build-system cargo-build-system)
|
||||
(arguments
|
||||
`(#:skip-build? #t
|
||||
#:cargo-inputs
|
||||
(("rust-libc" ,rust-libc-0.2))))
|
||||
(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.")
|
||||
(license (list license:expat license:asl2.0))))
|
||||
(("rust-libc" ,rust-libc-0.2))))))
|
||||
|
||||
(define-public rust-memmap2-0.2
|
||||
(package
|
||||
|
|
Loading…
Reference in a new issue