From 1ee8c82be25d15f9ab6d1959ed066469c0aecc2a Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 29 Dec 2024 22:02:13 +0200 Subject: [PATCH] gnu: Add rust-shadow-rs-0.37. * gnu/packages/crates-io.scm (rust-shadow-rs-0.37): New variable. (rust-shadow-rs-0.36): Inherit from rust-shadow-rs-0.37. Change-Id: I18f6395e2c95753e45b9d053fd826955463e652f --- gnu/packages/crates-io.scm | 52 ++++++++++++++++++++++++++++++-------- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 69efa55a69..5899458b94 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -73888,8 +73888,48 @@ (define-public rust-servo-fontconfig-sys-5 "This package provides a Rust wrapper around Fontxonfig.") (license license:expat))) +(define-public rust-shadow-rs-0.37 + (package + (name "rust-shadow-rs") + (version "0.37.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "shadow-rs" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "047ndbnhf2cxf98f0n4br0z0pdm53gfr89zhq25mia325hibhklp")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags '("--" + ;; 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)))) + (native-inputs (list pkg-config)) + (inputs (list libgit2-1.8 zlib)) + (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.36 (package + (inherit rust-shadow-rs-0.37) (name "rust-shadow-rs") (version "0.36.0") (source @@ -73899,9 +73939,6 @@ (define-public rust-shadow-rs-0.36 (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 @@ -73918,14 +73955,7 @@ (define-public rust-shadow-rs-0.36 ("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)))) + #:cargo-development-inputs (("rust-winnow" ,rust-winnow-0.6)))))) (define-public rust-shadow-rs-0.35 (package