* [bug#66954] [PATCH 1/2] gnu: rust-cpufeatures-0.2: Update to 0.2.11.
@ 2023-11-05 16:25 VÖRÖSKŐI András
2023-11-05 16:25 ` [bug#66955] [PATCH 2/2] gnu: Add rust-argon2-0.5 VÖRÖSKŐI András
0 siblings, 1 reply; 2+ messages in thread
From: VÖRÖSKŐI András @ 2023-11-05 16:25 UTC (permalink / raw)
To: 66954; +Cc: VÖRÖSKŐI András
* gnu/packages/crates-io.scm (rust-cpufeatures-0.2): Update to 0.2.11.
* use the already packaged rust-libc version
Change-Id: Id1da527ab89b28b1a8f71a28bedd97e33d42abbb
---
gnu/packages/crates-io.scm | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index d42ff60a20..747561564d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -16273,16 +16273,24 @@ (define-public rust-cpp-demangle-0.3
(define-public rust-cpufeatures-0.2
(package
(name "rust-cpufeatures")
- (version "0.2.1")
+ (version "0.2.11")
(source
(origin
(method url-fetch)
(uri (crate-uri "cpufeatures" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
- (base32 "0sgllzsvs8hinylaiigmd9c908gd8wclxnqz8dinpxbdyql981cm"))))
+ (base32 "1l0gzsyy576n017g9bf0vkv5hhg9cpz1h1libxyfdlzcgbh0yhnf"))))
(build-system cargo-build-system)
- (arguments `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
+ (arguments `(#:cargo-inputs (("rust-libc" ,rust-libc-0.2))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-version-requirements
+ (lambda _
+ (substitute* "Cargo.toml"
+ (("0.2.149")
+ ,(package-version rust-libc-0.2)))
+ #t)))))
(home-page "https://github.com/RustCrypto/utils")
(synopsis "Alternative to the @code{is_x86_feature_detected!} macro")
(description
base-commit: 175532b749df65519d10699d49cc8b65b14a1f96
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [bug#66955] [PATCH 2/2] gnu: Add rust-argon2-0.5.
2023-11-05 16:25 [bug#66954] [PATCH 1/2] gnu: rust-cpufeatures-0.2: Update to 0.2.11 VÖRÖSKŐI András
@ 2023-11-05 16:25 ` VÖRÖSKŐI András
0 siblings, 0 replies; 2+ messages in thread
From: VÖRÖSKŐI András @ 2023-11-05 16:25 UTC (permalink / raw)
To: 66955; +Cc: VÖRÖSKŐI András
* gnu/packages/crates-io.scm (rust-argon2-0.5): New variable.
Change-Id: Ifde2533fd7b0d2ed8f92f6cc5a808c1be36355bb
---
gnu/packages/crates-io.scm | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 747561564d..26e8a4331c 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -4021,6 +4021,44 @@ (define-public rust-argmax-0.3
too long errors.")
(license (list license:expat license:asl2.0))))
+(define-public rust-argon2-0.5
+ (package
+ (name "rust-argon2")
+ (version "0.5.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "argon2" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1y820hkza66lfliaxg49zskz7agj8wf7aak528livg261an4rfhp"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-base64ct" ,rust-base64ct-1)
+ ("rust-blake2" ,rust-blake2-0.10)
+ ("rust-cpufeatures" ,rust-cpufeatures-0.2)
+ ("rust-password-hash" ,rust-password-hash-0.5)
+ ("rust-zeroize" ,rust-zeroize-1))
+ #:cargo-development-inputs
+ (("rust-hex-literal" ,rust-hex-literal-0.4)
+ ("rust-password-hash" ,rust-password-hash-0.5))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'fix-cpufeatures-version
+ (lambda _
+ (substitute* "guix-vendor/rust-cpufeatures-0.2.11.tar.gz/Cargo.toml"
+ (("0.2.149")
+ ,(package-version rust-libc-0.2)))
+ #t)))))
+ (home-page
+ "https://github.com/RustCrypto/password-hashes/tree/master/argon2")
+ (synopsis "Rust argon2 library")
+ (description
+ "Pure Rust implementation of the Argon2 password hashing function with support
+for the Argon2d, Argon2i, and Argon2id algorithmic variants.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-ariadne-0.1
(package
(name "rust-ariadne")
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-11-05 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-05 16:25 [bug#66954] [PATCH 1/2] gnu: rust-cpufeatures-0.2: Update to 0.2.11 VÖRÖSKŐI András
2023-11-05 16:25 ` [bug#66955] [PATCH 2/2] gnu: Add rust-argon2-0.5 VÖRÖSKŐI András
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.