summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-windows.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-12-27 15:31:32 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:00 +0200
commit44d33deb17fcc6c4011daf4013a000f10f6a97dd (patch)
tree1d2b8931e62d150a59fa731dd96f3ddf900343dd /gnu/packages/crates-windows.scm
parent2cce2f8f4f112e1bcedd28c574eb5de3ed680787 (diff)
gnu: rust-winreg: Move to (gnu packages crates-windows).
* gnu/packages/crates-io.scm (rust-winreg-0.50, rust-winreg-0.10, rust-winreg-0.8, rust-winreg-0.7, rust-winreg-0.6, rust-winreg-0.5): Move from here ... * gnu/packages/crates-windows.scm: ... to here. Change-Id: I6f5fe23957b0d3b2fd36f7304f64b182f2fd925e
Diffstat (limited to 'gnu/packages/crates-windows.scm')
-rw-r--r--gnu/packages/crates-windows.scm143
1 files changed, 143 insertions, 0 deletions
diff --git a/gnu/packages/crates-windows.scm b/gnu/packages/crates-windows.scm
index 85074d3917..380372c29e 100644
--- a/gnu/packages/crates-windows.scm
+++ b/gnu/packages/crates-windows.scm
@@ -888,6 +888,149 @@ color in a Windows console.")
#:cargo-inputs
(("rust-winapi" ,rust-winapi-0.3))))))
+(define-public rust-winreg-0.50
+ (package
+ (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)))))))
+ (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-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)))
+
+(define-public rust-winreg-0.10
+ (package
+ (inherit rust-winreg-0.50)
+ (name "rust-winreg")
+ (version "0.10.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winreg" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "17c6h02z88ijjba02bnxi5k94q5cz490nf3njh9yypf8fbig9l40"))))
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-chrono" ,rust-chrono-0.4)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-winapi" ,rust-winapi-0.3))))))
+
+(define-public rust-winreg-0.8
+ (package
+ (inherit rust-winreg-0.10)
+ (name "rust-winreg")
+ (version "0.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winreg" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1364vyx4kh170pxfg8iwlvv8xskvry53xfya0565q8qnx73gh1yi"))))
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-chrono" ,rust-chrono-0.4)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-winapi" ,rust-winapi-0.3))))))
+
+(define-public rust-winreg-0.7
+ (package
+ (inherit rust-winreg-0.8)
+ (name "rust-winreg")
+ (version "0.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winreg" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0sdxcyvda4v1v6a0k1j2v1400z3ng323k9a56gxvkq51x21dn801"))))
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-chrono" ,rust-chrono-0.4)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs
+ (("rust-rand" ,rust-rand-0.3)
+ ("rust-serde-derive" ,rust-serde-derive-1))))))
+
+(define-public rust-winreg-0.6
+ (package
+ (name "rust-winreg")
+ (version "0.6.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winreg" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "1jdcqr6zmvwyrp87h48miasfdvv16gjsb60rc8dy2kqwb3mnv65j"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-chrono" ,rust-chrono-0.4)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-winapi" ,rust-winapi-0.3))
+ #:cargo-development-inputs
+ (("rust-rand" ,rust-rand-0.3)
+ ("rust-serde-derive" ,rust-serde-derive-1))))
+ (home-page "https://github.com/gentoo90/winreg-rs")
+ (synopsis "Rust bindings to MS Windows Registry API")
+ (description
+ "This package provides Rust bindings to MS Windows Registry API.")
+ (license license:expat)))
+
+(define-public rust-winreg-0.5
+ (package
+ (inherit rust-winreg-0.7)
+ (name "rust-winreg")
+ (version "0.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "winreg" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0jkh4jj2g8g0bl7r1xvq9vv9hr4gdzphg9ndqm65q6f1jn9paym2"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-clippy" ,rust-clippy-0.0)
+ ("rust-serde" ,rust-serde-1)
+ ("rust-winapi" ,rust-winapi-0.3))))))
+
(define-public rust-windows-0.48
(package
(name "rust-windows")