guix-commits
[Top][All Lists]
Advanced

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

15/135: gnu: Add rust-k9-0.12.0.


From: guix-commits
Subject: 15/135: gnu: Add rust-k9-0.12.0.
Date: Wed, 27 Mar 2024 04:54:41 -0400 (EDT)

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

commit 72fe531a3ad6209354916e50fbb427364717b034
Author: VÖRÖSKŐI András <voroskoi@gmail.com>
AuthorDate: Sat Feb 24 21:39:16 2024 +0100

    gnu: Add rust-k9-0.12.0.
    
    * gnu/packages/crates-io.scm (rust-k9-0.12): New variable.
    (rust-k9-0.11): Inherit from rust-k9-0.12.
    
    Change-Id: I67f9d7a9abb6fe0afd2cd43fc6eff995a37b5634
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 47 +++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 40 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index acb7753850..7ad83c0286 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -34802,8 +34802,47 @@ passwords/credentials.")
      "This package provides a Log macro for log's kv-unstable backend.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-k9-0.12
+  (package
+    (name "rust-k9")
+    (version "0.12.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "k9" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "056ngrvyla95qj737h7xjw5ja697h07mpw6pci5v3cb8bfxwx2q8"))
+              (snippet
+               #~(begin (use-modules (guix build utils))
+                        (substitute* "Cargo.toml"
+                          ;; k9@0.11.7 was yanked by upstream, provide 0.11.6.
+                          (("0\\.11\\.7") "0.11.6"))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-colored" ,rust-colored-2)
+                       ("rust-diff" ,rust-diff-0.1)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-proc-macro2" ,rust-proc-macro2-1)
+                       ("rust-regex" ,rust-regex-1)
+                       ("rust-syn" ,rust-syn-2)
+                       ("rust-terminal-size" ,rust-terminal-size-0.2))
+       #:cargo-development-inputs
+       (("rust-derive-builder" ,rust-derive-builder-0.9)
+        ("rust-k9" ,rust-k9-0.11)
+        ("rust-rand" ,rust-rand-0.7)
+        ("rust-sha2" ,rust-sha2-0.9)
+        ("rust-strip-ansi-escapes" ,rust-strip-ansi-escapes-0.1))))
+    (home-page "https://github.com/aaronabramov/k9";)
+    (synopsis "Testing library")
+    (description "This package contains helper macros for writing unit tests.")
+    (license license:expat)))
+
 (define-public rust-k9-0.11
   (package
+    (inherit rust-k9-0.12)
     (name "rust-k9")
     (version "0.11.6")
     (source (origin
@@ -34813,7 +34852,6 @@ passwords/credentials.")
               (sha256
                (base32
                 "1a8pxz6fygqzknxdlb4l835kqxgjk7snm4bjhhhn783r025vbp9j"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
@@ -34824,12 +34862,7 @@ passwords/credentials.")
                        ("rust-proc-macro2" ,rust-proc-macro2-1)
                        ("rust-regex" ,rust-regex-1)
                        ("rust-syn" ,rust-syn-1)
-                       ("rust-term-size" ,rust-term-size-0.3))))
-    (home-page "https://github.com/aaronabramov/k9";)
-    (synopsis "Testing library")
-    (description
-     "This package contains helper macros for writing unit tests.")
-    (license license:expat)))
+                       ("rust-term-size" ,rust-term-size-0.3))))))
 
 (define-public rust-language-tags-0.3
   (package



reply via email to

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