guix-commits
[Top][All Lists]
Advanced

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

29/68: gnu: Add rust-config-0.13.


From: guix-commits
Subject: 29/68: gnu: Add rust-config-0.13.
Date: Wed, 20 Mar 2024 11:24:31 -0400 (EDT)

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

commit 8cdcea82db8d2a40e312e2257f7ff8e6eb5d9950
Author: Herman Rimm <herman@rimm.ee>
AuthorDate: Sun Feb 18 22:08:10 2024 +0100

    gnu: Add rust-config-0.13.
    
    * gnu/packages/crates-io.scm (rust-config-0.13): Add variable.
    (rust-config-0.11): Inherit from rust-config-0.13.
    
    Change-Id: I485b25be348c9fc1962917d018eb60c196efcf15
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 59 +++++++++++++++++++++++++++++++++++++++-------
 1 file changed, 51 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 2d606c502e..d3847f341d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14195,8 +14195,58 @@ queue.")
        (("rust-easy-parallel" ,rust-easy-parallel-3)
         ("rust-fastrand" ,rust-fastrand-1))))))
 
+(define-public rust-config-0.13
+  (package
+    (name "rust-config")
+    (version "0.13.4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "config" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1jjag1x3rl77zjykbrykzhd5fsiv8vy40y4lxkj46xicjw8qwwr3"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  (("\"= ?([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+                   (string-append "\"^" version)))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-async-trait" ,rust-async-trait-0.1)
+                       ("rust-indexmap" ,rust-indexmap-1)
+                       ("rust-json5" ,rust-json5-0.4)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-pathdiff" ,rust-pathdiff-0.2)
+                       ("rust-ron" ,rust-ron-0.7)
+                       ("rust-rust-ini" ,rust-rust-ini-0.18)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-toml" ,rust-toml-0.5)
+                       ("rust-yaml-rust" ,rust-yaml-rust-0.4))
+       #:cargo-development-inputs (("rust-chrono" ,rust-chrono-0.4)
+                                   ("rust-float-cmp" ,rust-float-cmp-0.9)
+                                   ("rust-futures" ,rust-futures-0.3)
+                                   ("rust-glob" ,rust-glob-0.3)
+                                   ("rust-notify" ,rust-notify-4)
+                                   ("rust-reqwest" ,rust-reqwest-0.11)
+                                   ("rust-serde-derive" ,rust-serde-derive-1)
+                                   ("rust-temp-env" ,rust-temp-env-0.2)
+                                   ("rust-tokio" ,rust-tokio-1)
+                                   ("rust-warp" ,rust-warp-0.3))))
+    (native-inputs (list pkg-config))
+    (inputs (list openssl))
+    (home-page "https://github.com/mehcode/config-rs";)
+    (synopsis "Layered configuration system for Rust applications")
+    (description
+     "This package provides a layered configuration system for Rust
+applications.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-config-0.11
   (package
+    (inherit rust-config-0.13)
     (name "rust-config")
     (version "0.11.0")
     (source
@@ -14206,7 +14256,6 @@ queue.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0sdkxv77m65frsn3bx0r3v7asxar3gy3hmghcfk6h4rbijars6qv"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
@@ -14217,13 +14266,7 @@ queue.")
         ("rust-serde-hjson" ,rust-serde-hjson-0.9)
         ("rust-serde-json" ,rust-serde-json-1)
         ("rust-toml" ,rust-toml-0.5)
-        ("rust-yaml-rust" ,rust-yaml-rust-0.4))))
-    (home-page "https://github.com/mehcode/config-rs";)
-    (synopsis "Layered configuration system for Rust applications")
-    (description
-     "This package provides a layered configuration system for Rust
-applications.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-yaml-rust" ,rust-yaml-rust-0.4))))))
 
 (define-public rust-config-0.10
   (package



reply via email to

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