From 44ed673e60aacb4425154271e95e5a2635c4045c Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 16:03:29 +0200 Subject: [PATCH] gnu: rust-scrypt: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-scrypt-0.11, rust-scrypt-0.10, rust-scrypt-0.8): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I4259c52e76e1e1612031453db7d239106b715178 --- gnu/packages/crates-crypto.scm | 71 ++++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 71 ---------------------------------- 2 files changed, 71 insertions(+), 71 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index f515ab3455..daf899cc01 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -3695,6 +3695,77 @@ in pure Rust.") #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.2)))))) +(define-public rust-scrypt-0.11 + (package + (name "rust-scrypt") + (version "0.11.0") + (source (origin + (method url-fetch) + (uri (crate-uri "scrypt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07zxfaqpns9jn0mnxm7wj3ksqsinyfpirkav1f7kc2bchs2s65h5")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-password-hash" ,rust-password-hash-0.5) + ("rust-pbkdf2" ,rust-pbkdf2-0.12) + ("rust-salsa20" ,rust-salsa20-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-password-hash" ,rust-password-hash-0.5)))) + (home-page + "https://github.com/RustCrypto/password-hashes/tree/master/scrypt") + (synopsis "Scrypt password-based key derivation function") + (description + "This package provides a Scrypt password-based key derivation +function.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-scrypt-0.10 + (package + (inherit rust-scrypt-0.11) + (name "rust-scrypt") + (version "0.10.0") + (source (origin + (method url-fetch) + (uri (crate-uri "scrypt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pglmppcl8mdzfxdv2x9dsjrwxhc1bm9zvxjibnlv59jnv9297lz")))) + (arguments + `(#:cargo-inputs + (("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.4) + ("rust-pbkdf2" ,rust-pbkdf2-0.11) + ("rust-salsa20" ,rust-salsa20-0.10) + ("rust-sha2" ,rust-sha2-0.10)) + #:cargo-development-inputs + (("rust-password-hash" ,rust-password-hash-0.4)))))) + +(define-public rust-scrypt-0.8 + (package + (inherit rust-scrypt-0.11) + (name "rust-scrypt") + (version "0.8.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "scrypt" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "09fkz5sc7qx97dyi1nkv69z36diggd2c9mja33cxpsqicdy6sgg7")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-hmac" ,rust-hmac-0.12) + ("rust-password-hash" ,rust-password-hash-0.3) + ("rust-pbkdf2" ,rust-pbkdf2-0.10) + ("rust-salsa20" ,rust-salsa20-0.9) + ("rust-sha2" ,rust-sha2-0.10)))))) + (define-public rust-sha-1-0.10 (package (name "rust-sha-1") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5f4ef77284..1df704ad92 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -60271,77 +60271,6 @@ shareable by multiple crates in a build graph and erased by @code{cargo clean}.") (license (list license:expat license:asl2.0)))) -(define-public rust-scrypt-0.11 - (package - (name "rust-scrypt") - (version "0.11.0") - (source (origin - (method url-fetch) - (uri (crate-uri "scrypt" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "07zxfaqpns9jn0mnxm7wj3ksqsinyfpirkav1f7kc2bchs2s65h5")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs - (("rust-password-hash" ,rust-password-hash-0.5) - ("rust-pbkdf2" ,rust-pbkdf2-0.12) - ("rust-salsa20" ,rust-salsa20-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-password-hash" ,rust-password-hash-0.5)))) - (home-page - "https://github.com/RustCrypto/password-hashes/tree/master/scrypt") - (synopsis "Scrypt password-based key derivation function") - (description - "This package provides a Scrypt password-based key derivation -function.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-scrypt-0.10 - (package - (inherit rust-scrypt-0.11) - (name "rust-scrypt") - (version "0.10.0") - (source (origin - (method url-fetch) - (uri (crate-uri "scrypt" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0pglmppcl8mdzfxdv2x9dsjrwxhc1bm9zvxjibnlv59jnv9297lz")))) - (arguments - `(#:cargo-inputs - (("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.4) - ("rust-pbkdf2" ,rust-pbkdf2-0.11) - ("rust-salsa20" ,rust-salsa20-0.10) - ("rust-sha2" ,rust-sha2-0.10)) - #:cargo-development-inputs - (("rust-password-hash" ,rust-password-hash-0.4)))))) - -(define-public rust-scrypt-0.8 - (package - (inherit rust-scrypt-0.11) - (name "rust-scrypt") - (version "0.8.1") - (source - (origin - (method url-fetch) - (uri (crate-uri "scrypt" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "09fkz5sc7qx97dyi1nkv69z36diggd2c9mja33cxpsqicdy6sgg7")))) - (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-hmac" ,rust-hmac-0.12) - ("rust-password-hash" ,rust-password-hash-0.3) - ("rust-pbkdf2" ,rust-pbkdf2-0.10) - ("rust-salsa20" ,rust-salsa20-0.9) - ("rust-sha2" ,rust-sha2-0.10)))))) - (define-public rust-scroll-0.11 (package (name "rust-scroll")