[bug#74234,rust-team,v3,03/23] gnu: Add rust-diesel-migrations-2.
Commit Message
From: Giacomo Leidi <goodoldpaul@autistici.org>
* 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 | 46 +++++++++++++++++++++++++-------------
1 file changed, 31 insertions(+), 15 deletions(-)
@@ -22863,35 +22863,51 @@ (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)
(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"))))
+ (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-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))))
+ `( ;#:tests? #f ;doctest_setup.rs: No such file or directory
+ #: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"))
+ (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")