From 1f68b67aa1d8fbf087fac659b49228f889dfa309 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 21 Jan 2024 19:45:30 +0200 Subject: [PATCH] gnu: rust-des: Move to (gnu packages crates-crypto). * gnu/packages/crates-io.scm (rust-des-0.8, rust-des-0.7, rust-des-0.6): Move from here ... * gnu/packages/crates-crypto.scm: ... to here. Change-Id: I18b2044dd95e2da04606377e6cd0e9961b5a512f --- gnu/packages/crates-crypto.scm | 63 +++++++++++++++++++++++++++++++++ gnu/packages/crates-io.scm | 64 ---------------------------------- 2 files changed, 63 insertions(+), 64 deletions(-) diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm index 24154605bf..cf59d88fa0 100644 --- a/gnu/packages/crates-crypto.scm +++ b/gnu/packages/crates-crypto.scm @@ -1777,6 +1777,69 @@ (define-public rust-curve25519-dalek-ng-4 ristretto255 and Curve25519.") (license license:bsd-3))) +(define-public rust-des-0.8 + (package + (name "rust-des") + (version "0.8.1") + (source (origin + (method url-fetch) + (uri (crate-uri "des" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "07kshslxanmg0g6007scvglfhg6mli2a8qzhx4kxx4z9ik781pgz")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-cipher" ,rust-cipher-0.4)) + #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.4)))) + (home-page "https://github.com/RustCrypto/block-ciphers") + (synopsis "DES and Triple DES block ciphers implementation") + (description "This package provides DES and Triple DES (3DES, TDES) block +ciphers implementations.") + (license (list license:expat license:asl2.0)))) + +(define-public rust-des-0.7 + (package + (inherit rust-des-0.8) + (name "rust-des") + (version "0.7.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "des" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0pbsfkkwfqnd4nsv3ik4z09h248f57y7bj2j1l134i2mzd4xshdc")))) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-cipher" ,rust-cipher-0.3) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)))))) + +(define-public rust-des-0.6 + (package + (inherit rust-des-0.7) + (name "rust-des") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "des" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1bigk1x1kxvnfjn1alr8cc383z1flmj8q7g2pjl2zal8i1s7qkmj")))) + (arguments + `(#:cargo-inputs + (("rust-byteorder" ,rust-byteorder-1) + ("rust-cipher" ,rust-cipher-0.2) + ("rust-opaque-debug" ,rust-opaque-debug-0.3)) + #:cargo-development-inputs + (("rust-cipher" ,rust-cipher-0.2)))))) + (define-public rust-digest-0.10 (package (name "rust-digest") diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 296a2a16c6..ede8a7b3ca 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -18951,70 +18951,6 @@ (define-public rust-derive-where-1 (description "Deriving with custom trait bounds.") (license (list license:expat license:asl2.0)))) -(define-public rust-des-0.8 - (package - (name "rust-des") - (version "0.8.1") - (source (origin - (method url-fetch) - (uri (crate-uri "des" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "07kshslxanmg0g6007scvglfhg6mli2a8qzhx4kxx4z9ik781pgz")))) - (build-system cargo-build-system) - (arguments - `(#:cargo-inputs (("rust-cipher" ,rust-cipher-0.4)) - #:cargo-development-inputs (("rust-cipher" ,rust-cipher-0.4)))) - (home-page "https://github.com/RustCrypto/block-ciphers") - (synopsis "DES and Triple DES block ciphers implementation") - (description "This package provides DES and Triple DES (3DES, TDES) block -ciphers implementations.") - (license (list license:expat license:asl2.0)))) - -(define-public rust-des-0.7 - (package - (inherit rust-des-0.8) - (name "rust-des") - (version "0.7.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "des" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0pbsfkkwfqnd4nsv3ik4z09h248f57y7bj2j1l134i2mzd4xshdc")))) - (arguments - `(#:skip-build? - #t - #:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-cipher" ,rust-cipher-0.3) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)))))) - -(define-public rust-des-0.6 - (package - (inherit rust-des-0.7) - (name "rust-des") - (version "0.6.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "des" version)) - (file-name - (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1bigk1x1kxvnfjn1alr8cc383z1flmj8q7g2pjl2zal8i1s7qkmj")))) - (arguments - `(#:cargo-inputs - (("rust-byteorder" ,rust-byteorder-1) - ("rust-cipher" ,rust-cipher-0.2) - ("rust-opaque-debug" ,rust-opaque-debug-0.3)) - #:cargo-development-inputs - (("rust-cipher" ,rust-cipher-0.2)))))) - (define-public rust-deunicode-0.4 (package (name "rust-deunicode")