Subject: [bug#70147] [PATCH 14/42] gnu: Add rust-gettext-0.4.

From: Wilko Meyer <[email-masked]>
Date: Tue, 2 Apr 2024 18:22:31 +0200

* gnu/packages/crates-io.scm (rust-gettext-0.4): New variable.

Change-Id: I3a019fe397af70b40a4c15a7537f054293c16905
---
 gnu/packages/crates-io.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f9d7b8cd0e..6b86bf9b06 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -29552,6 +29552,26 @@ (define-public rust-gettext-rs-0.7
     (description "This package provides GNU Gettext FFI bindings for Rust.")
     (license license:expat)))
 
+(define-public rust-gettext-0.4
+  (package
+    (name "rust-gettext")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gettext" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0wd9kfy7nmbrqx2znw186la99as8y265lvh3pvj9fn9xfm75kfwy"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-encoding" ,rust-encoding-0.2))))
+    (home-page "https://github.com/justinas/gettext")
+    (synopsis "An implementation of Gettext translation framework for Rust")
+    (description "An implementation of Gettext translation framework for Rust.")
+    (license license:expat)))
+
 (define-public rust-gettext-sys-0.21
   (package
     (name "rust-gettext-sys")
-- 
2.41.0