guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

147/350: gnu: rust-aes-0.3: Mark as deprecated.


From: guix-commits
Subject: 147/350: gnu: rust-aes-0.3: Mark as deprecated.
Date: Sun, 15 Dec 2024 02:14:24 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit c555ea369cec948b9e0f3775e19a286e7b05dae3
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Dec 4 10:16:45 2024 +0200

    gnu: rust-aes-0.3: Mark as deprecated.
    
    * gnu/packages/crates-crypto.scm (rust-aes-0.3): Rename to
    rust-aes-0.3.2-yanked.
    [source]: Add 'yanked' to the source file-name.
    (rust-aes-0.3): New deprecated package pointing to
    rust-aes-0.3.2-yanked.
    
    Change-Id: I7be9ae6673af70975d929babdb5f8f0e46fd3903
---
 gnu/packages/crates-crypto.scm | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 2339a3711e..021ab5ba6e 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -243,16 +243,16 @@ ciphers implementations.")
        #:cargo-development-inputs
        (("rust-block-cipher" ,rust-block-cipher-0.7))))))
 
-(define-public rust-aes-0.3
+(define-public rust-aes-0.3.2-yanked
   (package
     (inherit rust-aes-0.4)
     (name "rust-aes")
-    (version "0.3.2")
+    (version "0.3.2") ; This version was yanked!
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "aes" version))
-       (file-name (string-append name "-" version ".tar.gz"))
+       (file-name (string-append name "-" version "-yanked.tar.gz"))
        (sha256
         (base32 "1j90iwpax0y1dqq14i8y9xgpcnnlgnljwkxg3mhzrralwf7ivssl"))))
     (arguments
@@ -261,7 +261,12 @@ ciphers implementations.")
         ("rust-aesni" ,rust-aesni-0.6)
         ("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6))
        #:cargo-development-inputs
-       (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6))))))
+       (("rust-block-cipher-trait" ,rust-block-cipher-trait-0.6))))
+    (properties '((crate-version-yanked? . #t)))))
+
+(define-public rust-aes-0.3
+  ;; There are no non-yanked versions of this semver.
+  (deprecated-package "rust-aes" rust-aes-0.3.2-yanked))
 
 (define-public rust-aes-ctr-0.6
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]