guix-commits
[Top][All Lists]
Advanced

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

29/43: gnu: Add rust-diesel-migrations-2.


From: guix-commits
Subject: 29/43: gnu: Add rust-diesel-migrations-2.
Date: Thu, 26 Dec 2024 08:43:45 -0500 (EST)

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

commit be70048b7c56e7c5ceca1d4929018a745b8dd8cb
Author: Giacomo Leidi <goodoldpaul@autistici.org>
AuthorDate: Thu Nov 7 23:27:01 2024 +0100

    gnu: Add rust-diesel-migrations-2.
    
    * gnu/packages/crates-io.scm (rust-diesel-migrations-2): New variable.
    (rust-diesel-migrations-1): Inherit from rust-diesel-migrations-2.
    
    Change-Id: Ifc9654995b613f9666216be32f910d1f403b2af5
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 43 +++++++++++++++++++++++++++++++------------
 1 file changed, 31 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index bca6598657..702c08d815 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -23610,34 +23610,53 @@ Diesel.")
         ("rust-diesel" ,rust-diesel-1)
         ("rust-dotenv" ,rust-dotenv-0.10))))))
 
+(define-public rust-diesel-migrations-2
+  (package
+    (name "rust-diesel-migrations")
+    (version "2.1.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "diesel_migrations" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1b0ld4azk73rg2axwq7a4wnpwba3085f43jp3cw62n8c2bqb6dk0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-diesel" ,rust-diesel-2)
+        ("rust-migrations-internals" ,rust-migrations-internals-2)
+        ("rust-migrations-macros" ,rust-migrations-macros-2))
+       #:cargo-development-inputs
+       (("rust-cfg-if" ,rust-cfg-if-0.1)
+        ("rust-dotenvy" ,rust-dotenvy-0.15)
+        ("rust-tempfile" ,rust-tempfile-3))))
+    (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"))
+       (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0k4g03ciqwya2xc1xvy5s9cs6q55k45wxa1gszswfg9m2f2dwg5z"))))
-    (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-macros"
-         ,rust-migrations-macros-1))
+       (("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))))
-    (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))))
+        ("rust-dotenv" ,rust-dotenv-0.10))))))
 
 (define-public rust-diesel-table-macro-syntax-0.1
   (package



reply via email to

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