diff mbox series

[bug#74234,PATCHv2,rust-team,03/20] gnu: Add rust-migrations-macros-2.

Message ID 40e9d4c3cdcc688016dcc98c04c7bae0c5bf0f6f.1731018436.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74234,PATCHv2,rust-team,01/20] gnu: Add rust-ashpd-0.6. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:27 p.m. UTC
* gnu/packages/crates-io.scm (rust-migrations-macros-2): New variable;
(rust-migrations-macros-1): inherit from rust-migrations-macros-2.

Change-Id: I2cd4eac328fb5c986286348dfb80d9b3eb43b176
---
 gnu/packages/crates-io.scm | 38 ++++++++++++++++++++++++++++++++------
 1 file changed, 32 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 5ccfa358df..3a2bfba2b2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44127,10 +44127,10 @@  (define-public rust-migrations-internals-1
        #:cargo-development-inputs
        (("rust-tempdir" ,rust-tempdir-0.3))))))
 
-(define-public rust-migrations-macros-1
+(define-public rust-migrations-macros-2
   (package
     (name "rust-migrations-macros")
-    (version "1.4.2")
+    (version "2.1.0")
     (source
      (origin
        (method url-fetch)
@@ -44138,12 +44138,15 @@  (define-public rust-migrations-macros-1
        (file-name
         (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "173qgwans6n2jf6b7qajq273rvg1r9c34p5fflzr53gx14lz2lwp"))))
+        (base32 "027gd4s58fmh7jil9rz0ckdsdw81mqfa6dyqbfmvnrqfqxd35qyc"))))
     (build-system cargo-build-system)
     (arguments
-     `(#:cargo-inputs
-       (("rust-migrations-internals"
-         ,rust-migrations-internals-1)
+     ;; Some files are missing
+     `(#:tests? #f
+       #:cargo-inputs
+       (("rust-dotenvy" ,rust-dotenvy-0.15)
+        ("rust-migrations-internals"
+         ,rust-migrations-internals-2)
         ("rust-proc-macro2" ,rust-proc-macro2-1)
         ("rust-quote" ,rust-quote-1)
         ("rust-syn" ,rust-syn-1))
@@ -44159,6 +44162,29 @@  (define-public rust-migrations-macros-1
 embedded migrations.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-migrations-macros-1
+  (package
+    (inherit rust-migrations-macros-2)
+    (name "rust-migrations-macros")
+    (version "1.4.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "migrations_macros" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "173qgwans6n2jf6b7qajq273rvg1r9c34p5fflzr53gx14lz2lwp"))))
+    (arguments
+     `(#:cargo-inputs
+       (("rust-migrations-internals"
+         ,rust-migrations-internals-1)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-syn" ,rust-syn-1))
+       #:cargo-development-inputs
+       (("rust-tempdir" ,rust-tempdir-0.3))))))
+
 (define-public rust-mimalloc-0.1
   (package
     (name "rust-mimalloc")