diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2023-12-21 09:23:18 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:56:30 +0200 |
commit | 6bc38163153d5688b1b0e6acd648d63531841bcd (patch) | |
tree | 44ccbd9fb98aed267409fc94bf643dfd7afd61a4 | |
parent | 26e57ce6fc5a8f2d9d0bcfeada83a84a61e3d1ce (diff) |
gnu: Add rust-winreg-0.50.
* gnu/packages/crates-io.scm (rust-winreg-0.50): New variable.
(rust-winreg-0.10): Inherit from rust-winreg-0.50.
Change-Id: Id1acf665c2bde64a19d8f463dfe3f59e7432deb0
-rw-r--r-- | gnu/packages/crates-io.scm | 42 |
1 files changed, 35 insertions, 7 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 06c1279885..e2b668a7a5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -90670,8 +90670,42 @@ combinators library.") ("rust-memchr" ,rust-memchr-2) ("rust-terminal-size" ,rust-terminal-size-0.2)))))) +(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 @@ -90681,18 +90715,12 @@ combinators library.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "17c6h02z88ijjba02bnxi5k94q5cz490nf3njh9yypf8fbig9l40")))) - (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)))) - (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-winapi" ,rust-winapi-0.3)))))) (define-public rust-winreg-0.8 (package |