me
/
guix
Archived
1
0
Fork 0

gnu: Add rust-winreg-0.52.

* gnu/packages/crates-windows.scm (rust-winreg-0.52): New variable.
(rust-winreg-0.51): Inherit from rust-winreg-0.52.

Change-Id: Ibb4ca45b3cd5c81a6319a2debd2f9d707d8a3e05
master
Efraim Flashner 2024-03-31 14:27:04 +03:00
parent 67fcf752e7
commit 2b0d43beea
No known key found for this signature in database
GPG Key ID: 41AAE7DCCA3D8351
1 changed files with 37 additions and 6 deletions

View File

@ -958,8 +958,44 @@ color in a Windows console.")
#:cargo-inputs
(("rust-winapi" ,rust-winapi-0.3))))))
(define-public rust-winreg-0.52
(package
(name "rust-winreg")
(version "0.52.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "winreg" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "19gh9vp7mp1ab84kc3ag48nm9y7xgjhh3xa4vxss1gylk1rsaxx2"))
(snippet
#~(begin (use-modules (guix build utils))
(substitute* "Cargo.toml"
(("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
(string-append "\"^" version)))))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t ; OS not supported
#:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1)
("rust-chrono" ,rust-chrono-0.4)
("rust-serde" ,rust-serde-1)
("rust-windows-sys" ,rust-windows-sys-0.48))
#:cargo-development-inputs (("rust-rand" ,rust-rand-0.3)
("rust-serde-transcode" ,rust-serde-transcode-1)
("rust-serde-bytes" ,rust-serde-bytes-0.11)
("rust-serde-derive" ,rust-serde-derive-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-tempfile" ,rust-tempfile-3))))
(home-page "https://github.com/gentoo90/winreg-rs")
(synopsis "Rust bindings to the MS Windows Registry API")
(description
"This package provides Rust bindings to MS Windows Registry API.")
(license license:expat)))
(define-public rust-winreg-0.51
(package
(inherit rust-winreg-0.52)
(name "rust-winreg")
(version "0.51.0")
(source
@ -984,12 +1020,7 @@ color in a Windows console.")
#:cargo-development-inputs (("rust-rand" ,rust-rand-0.3)
("rust-serde-bytes" ,rust-serde-bytes-0.11)
("rust-serde-derive" ,rust-serde-derive-1)
("rust-tempfile" ,rust-tempfile-3))))
(home-page "https://github.com/gentoo90/winreg-rs")
(synopsis "Rust bindings to the MS Windows Registry API")
(description
"This package provides Rust bindings to MS Windows Registry API.")
(license license:expat)))
("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-winreg-0.50
(package