Subject: [bug#76513] [PATCH rust-team 05/77] gnu: Add rust-mysqlclient-src-0.1.

From: Andrew Wong <[email-masked]>
Date: Sun, 23 Feb 2025 15:20:56 -0500

* gnu/packages/crates-database.scm (rust-mysqlclient-src-0.1): New variable.

Change-Id: I862dfb57993b81eed4c2bcd81a756ce37c76ec9d
---
 gnu/packages/crates-database.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/crates-database.scm b/gnu/packages/crates-database.scm
index 3d8ea15acb..0875ec7147 100644
--- a/gnu/packages/crates-database.scm
+++ b/gnu/packages/crates-database.scm
@@ -536,6 +536,29 @@ (define-public rust-lmdb-rs-0.7
     (description "This package provides LMDB bindings.")
     (license license:expat)))
 
+(define-public rust-mysqlclient-src-0.1
+  (package
+    (name "rust-mysqlclient-src")
+    (version "0.1.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mysqlclient-src" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "15f64s43af0z6608mja7q7wzxiakbsxgad2f4ffpw89g8ppfxjac"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-cmake" ,rust-cmake-0.1)
+                       ("rust-link-cplusplus" ,rust-link-cplusplus-1)
+                       ("rust-openssl-src" ,rust-openssl-src-300)
+                       ("rust-openssl-sys" ,rust-openssl-sys-0.9))))
+    (home-page "https://github.com/sgrif/mysqlclient-sys")
+    (synopsis "Bundled version of libmysqlclient")
+    (description "This package provides Bundled version of libmysqlclient.")
+    (license license:gpl2)))
+
 (define-public rust-mysqlclient-sys-0.2
   (package
     (name "rust-mysqlclient-sys")
-- 
2.48.1