me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-object-0.28.

* gnu/packages/crates-io.scm (rust-object-0.28): New variable.
(rust-object-0.24): Inherit from above.

Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Z572 2022-01-12 23:27:51 +08:00 committed by Nicolas Goaziou
parent a3684cff9b
commit b6924ef65a
No known key found for this signature in database
GPG Key ID: DA00B4F048E92F2D
1 changed files with 48 additions and 7 deletions

View File

@ -35705,8 +35705,55 @@ Foundation framework.")
"This package provides utilities for testing Objective-C interop.")
(license license:expat)))
(define-public rust-object-0.28
(package
(name "rust-object")
(version "0.28.2")
(source
(origin
(method url-fetch)
(uri (crate-uri "object" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"1wgv6gx69rpn4jjqs24kvafwsic1q06iaafs5mb9hy34hp7c3x89"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
(("rust-compiler-builtins"
,rust-compiler-builtins-0.1)
("rust-crc32fast" ,rust-crc32fast-1)
("rust-flate2" ,rust-flate2-1)
("rust-hashbrown" ,rust-hashbrown-0.11)
("rust-indexmap" ,rust-indexmap-1)
("rust-memchr" ,rust-memchr-2)
("rust-rustc-std-workspace-alloc"
,rust-rustc-std-workspace-alloc-1)
("rust-rustc-std-workspace-core"
,rust-rustc-std-workspace-core-1)
("rust-wasmparser" ,rust-wasmparser-0.57))
#:cargo-development-inputs
(("rust-memmap" ,rust-memmap-0.7))
#:phases
(modify-phases %standard-phases
(add-after 'unpack 'fix-version-requirements
(lambda _
(substitute* "Cargo.toml"
(("1.6.\\*")
,(package-version rust-indexmap-1)))
#t)))))
(home-page "https://github.com/gimli-rs/object")
(synopsis "Unified interface for reading and writing object file formats")
(description
"This package provides a unified interface for reading and writing object
file formats.")
(license (list license:asl2.0 license:expat))))
(define-public rust-object-0.24
(package
(inherit rust-object-0.28)
(name "rust-object")
(version "0.24.0")
(source
@ -35733,13 +35780,7 @@ Foundation framework.")
,rust-rustc-std-workspace-core-1)
("rust-wasmparser" ,rust-wasmparser-0.57))
#:cargo-development-inputs
(("rust-memmap" ,rust-memmap-0.7))))
(home-page "https://github.com/gimli-rs/object")
(synopsis "Unified interface for reading and writing object file formats")
(description
"This package provides a unified interface for reading and writing object
file formats.")
(license (list license:asl2.0 license:expat))))
(("rust-memmap" ,rust-memmap-0.7))))))
(define-public rust-object-0.23
(package