aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-04 11:57:33 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:20 +0200
commit82d4666445d5496ff80e471b9554955b98b7e6e7 (patch)
tree348775bfa75c5582673baaef5bd8c6dcfe8f2c42 /gnu
parent12a5eec12d45c9edce3c23c9e81f10e9b35f427c (diff)
downloadguix-82d4666445d5496ff80e471b9554955b98b7e6e7.tar.gz
guix-82d4666445d5496ff80e471b9554955b98b7e6e7.zip
gnu: Add rust-winreg-0.51.
* gnu/packages/crates-windows.scm (rust-winreg-0.51): New variable. (rust-winreg-0.50): Inherit from rust-winreg-0.51. Change-Id: Ic7d039d0197ac7d5548674b93658ef18bf1d5862
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-windows.scm34
1 files changed, 31 insertions, 3 deletions
diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index 5b7941c472..5b67742003 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -923,17 +923,17 @@ color in a Windows console.")
#:cargo-inputs
(("rust-winapi" ,rust-winapi-0.3))))))
-(define-public rust-winreg-0.50
+(define-public rust-winreg-0.51
(package
(name "rust-winreg")
- (version "0.50.0")
+ (version "0.51.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "winreg" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "1cddmp929k882mdh6i9f2as848f13qqna6czwsqzkh1pqnr5fkjj"))
+ (base32 "1z48nmaskwsiyyq9576sgf8ya3fvf1xg3kma8q7n8ml1jkvkszwk"))
(snippet
#~(begin (use-modules (guix build utils))
(substitute* "Cargo.toml"
@@ -956,6 +956,34 @@ color in a Windows console.")
"This package provides Rust bindings to MS Windows Registry API.")
(license license:expat)))
+(define-public rust-winreg-0.50
+ (package
+ (inherit rust-winreg-0.51)
+ (name "rust-winreg")
+ (version "0.50.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winreg" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1cddmp929k882mdh6i9f2as848f13qqna6czwsqzkh1pqnr5fkjj"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ (substitute* "Cargo.toml"
+ (("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+ (string-append "\"^" version)))))))
+ (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-bytes" ,rust-serde-bytes-0.11)
+ ("rust-serde-derive" ,rust-serde-derive-1)
+ ("rust-tempfile" ,rust-tempfile-3))))))
+
(define-public rust-winreg-0.10
(package
(inherit rust-winreg-0.50)