[bug#77382,rust-team,03/18] gnu: Add rust-const-default-derive-0.2.

Message ID 2d514ff600fd81cb4a0ba3b35710f304546ec971.1743337576.git.gabrielsantosdesouza@disroot.org
State New
Headers
Series gnu: Add matugen. |

Commit Message

Gabriel Santos March 30, 2025, 12:26 p.m. UTC
  * gnu/packages/crates-io.scm (rust-const-default-derive-0.2): New variable.

Change-Id: I9361d7fa0c4d74589f517ae4b0bb91352c9fcedb
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
  

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index dae37ca910..c8b95d67e5 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -15890,6 +15890,37 @@  (define-public rust-const-default-1
 implements it for Rust primitives, prelude types and arrays.")
     (license license:expat)))
 
+(define-public rust-const-default-derive-0.2
+  (package
+    (name "rust-const-default-derive")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "const-default-derive" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1nh3iwba073s9vsyhr5ci0pgbnc6zavmfs7za4vj64mqrgc4v08g"))
+       (snippet
+        #~(begin (use-modules (guix build utils))
+                 ;; README.md not included in the release tarball.
+                 (substitute* "Cargo.toml"
+                   (("\\.\\./README\\.md") "Cargo.toml"))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ; Has a circular dependency.
+       #:cargo-inputs
+       (("rust-proc-macro-crate" ,rust-proc-macro-crate-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))
+       #:cargo-development-inputs
+       (("rust-const-default" ,rust-const-default-1))))
+    (home-page "https://github.com/AerialX/const-default.rs")
+    (synopsis "Derive for @code{Default}")
+    (description "This package provides #[derive(@code{ConstDefault})].")
+    (license license:expat)))
+
 (define-public rust-const-fn-0.4
   (package
     (name "rust-const-fn")