guix-commits
[Top][All Lists]
Advanced

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

119/409: gnu: Add rust-shadow-rs-0.36.


From: guix-commits
Subject: 119/409: gnu: Add rust-shadow-rs-0.36.
Date: Thu, 19 Dec 2024 02:22:01 -0500 (EST)

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

commit 3a3aef63581db813dda3e0129c1e7cc3ff8f5880
Author: Jordan Moore <lockbox@struct.foo>
AuthorDate: Mon Dec 2 22:00:39 2024 -0500

    gnu: Add rust-shadow-rs-0.36.
    
    * gnu/packages/crates-io.scm (rust-shadow-rs-0.36): New variable.
    (rust-shadow-rs-0.26): Inherit from rust-shadow-rs-0.36.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
    Change-Id: I6177774aff22f1ab19e4fe6cc1c32bed5bb7890f
---
 gnu/packages/crates-io.scm | 50 +++++++++++++++++++++++++++++++++++++---------
 1 file changed, 41 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 39e4fae94d..765d9338a9 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -74894,8 +74894,48 @@ functionality and without weak references.")
      "This package provides a 7z decompressor/compressor written in pure 
rust.")
     (license license:asl2.0)))
 
+(define-public rust-shadow-rs-0.36
+  (package
+    (name "rust-shadow-rs")
+    (version "0.36.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "shadow-rs" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "064srz17klcgxqjzsj29pqn238y4pkn3l1h20mw9yyj98c3cvksq"))))
+    (build-system cargo-build-system)
+    (native-inputs (list pkg-config))
+    (inputs (list zlib libgit2-1.8))
+    (arguments
+     `(#:cargo-test-flags '("--release" "--"
+                            ;; Skip tests with missing files
+                            
"--skip=date_time::tests::test_local_now_human_format"
+                            ;; Broken tests
+                            "--skip=git::tests::test_command_last_tag"
+                            "--skip=git::tests::test_current_branch"
+                            "--skip=git::tests::test_git")
+       #:cargo-inputs (("rust-cargo-metadata" ,rust-cargo-metadata-0.18)
+                       ("rust-const-format" ,rust-const-format-0.2)
+                       ("rust-document-features" ,rust-document-features-0.2)
+                       ("rust-git2" ,rust-git2-0.19)
+                       ("rust-is-debug" ,rust-is-debug-1)
+                       ("rust-serde-json" ,rust-serde-json-1)
+                       ("rust-time" ,rust-time-0.3)
+                       ("rust-tzdb" ,rust-tzdb-0.6))
+       #:cargo-development-inputs (("rust-winnow" ,rust-winnow-0.6))))
+    (home-page "https://github.com/baoyachi/shadow-rs";)
+    (synopsis "Store build-time information in your rust project")
+    (description
+     "@code{shadow-rs} allows you to recall properties of the build process
+and environment at run time.  You can use this tool to check in production
+exactly where a binary came from and how it was built.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-shadow-rs-0.26
   (package
+    (inherit rust-shadow-rs-0.36)
     (name "rust-shadow-rs")
     (version "0.26.1")
     (source
@@ -74905,7 +74945,6 @@ functionality and without weak references.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "15xrlf66f10773k9kwpvz8909akfjspyy0yy9ss665wrfs15qp1y"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-test-flags
        '("--release" "--"
@@ -74921,14 +74960,7 @@ functionality and without weak references.")
                        ("rust-tzdb" ,rust-tzdb-0.6))
        #:cargo-development-inputs (("rust-winnow" ,rust-winnow-0.5))))
     (native-inputs (list pkg-config))
-    (inputs (list libgit2-1.7 zlib))
-    (home-page "https://github.com/baoyachi/shadow-rs";)
-    (synopsis "Recall properties of the build process at run time")
-    (description
-     "@code{shadow-rs} allows you to recall properties of the build process
-and environment at run time.  You can use this tool to check in production
-exactly where a binary came from and how it was built.")
-    (license (list license:expat license:asl2.0))))
+    (inputs (list libgit2-1.7 zlib))))
 
 (define-public rust-shadow-rs-0.8
   (package



reply via email to

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