diff mbox series

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

Message ID d7850ce7a062f5df582b5f8fcb5b7cd767e27231.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-diesel-migrations-2): New variable;
(rust-diesel-migrations-1): inherit from rust-diesel-migrations-2.

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

Patch

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3a2bfba2b2..957924d931 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -22263,10 +22263,10 @@  (define-public rust-diesel-derives-1
         ("rust-diesel" ,rust-diesel-1)
         ("rust-dotenv" ,rust-dotenv-0.10))))))
 
-(define-public rust-diesel-migrations-1
+(define-public rust-diesel-migrations-2
   (package
     (name "rust-diesel-migrations")
-    (version "1.4.0")
+    (version "2.1.0")
     (source
      (origin
        (method url-fetch)
@@ -22274,24 +22274,49 @@  (define-public rust-diesel-migrations-1
        (file-name
         (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "0k4g03ciqwya2xc1xvy5s9cs6q55k45wxa1gszswfg9m2f2dwg5z"))))
+        (base32 "1b0ld4azk73rg2axwq7a4wnpwba3085f43jp3cw62n8c2bqb6dk0"))))
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f ;doctest_setup.rs: No such file or directory
        #:cargo-inputs
        (("rust-migrations-internals"
-         ,rust-migrations-internals-1)
+         ,rust-migrations-internals-2)
         ("rust-migrations-macros"
-         ,rust-migrations-macros-1))
+         ,rust-migrations-macros-2))
        #:cargo-development-inputs
        (("rust-cfg-if" ,rust-cfg-if-0.1)
-        ("rust-diesel" ,rust-diesel-1)
+        ("rust-diesel" ,rust-diesel-2)
         ("rust-dotenv" ,rust-dotenv-0.10))))
     (home-page "https://diesel.rs")
     (synopsis "Migration management for diesel")
     (description "This package provides migration management for Diesel.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-diesel-migrations-1
+  (package
+    (inherit rust-diesel-migrations-2)
+    (name "rust-diesel-migrations")
+    (version "1.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "diesel_migrations" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0k4g03ciqwya2xc1xvy5s9cs6q55k45wxa1gszswfg9m2f2dwg5z"))))
+    (arguments
+     `(#:tests? #f ;doctest_setup.rs: No such file or directory
+       #:cargo-inputs
+       (("rust-migrations-internals"
+         ,rust-migrations-internals-1)
+        ("rust-migrations-macros"
+         ,rust-migrations-macros-1))
+       #:cargo-development-inputs
+       (("rust-cfg-if" ,rust-cfg-if-0.1)
+        ("rust-diesel" ,rust-diesel-1)
+        ("rust-dotenv" ,rust-dotenv-0.10))))))
+
 (define-public rust-diesel-table-macro-syntax-0.1
   (package
     (name "rust-diesel-table-macro-syntax")