summary refs log tree commit diff
path: root/gnu
diff options
context:
space:
mode:
authorJaeme Sifat <jaeme@runbox.com>2023-10-29 00:26:55 -0400
committerEfraim Flashner <efraim@flashner.co.il>2023-11-28 07:59:26 +0200
commitb0dd9ac3a713a82011d8a1b88847b023f99cac9d (patch)
tree2388faedc7da68380abfdf5d729fc1c09e86d5d0 /gnu
parent3c85794db131e9ce2064f18cf36729c9ac9a8e05 (diff)
downloadguix-b0dd9ac3a713a82011d8a1b88847b023f99cac9d.tar.gz
gnu: Add rust-isolang-2.
* gnu/packages/crates-io.scm (rust-isolang-2): New variable.

Signed-off-by: Jaeme Sifat <jaeme@runbox.com>
Change-Id: I717f61b64e1f8126f298cc8de165bec41b85d417
Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm26
1 files changed, 26 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 50b0d3ff17..9de2276545 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -37264,6 +37264,32 @@ stream runs in a TTY.")
     (description "Parsing ISO8601 dates using nom.")
     (license license:expat)))
 
+(define-public rust-isolang-2
+  (package
+    (name "rust-isolang")
+    (version "2.3.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "isolang" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0wg07gh7a1cvx0c1w238d7l4vh17cwwvjmw729qqnw5wn4fj43zq"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags `("--release" "--"
+                            "--skip=generated_code_table_if_outdated")
+       #:cargo-inputs (("rust-phf" ,rust-phf-0.11)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-phf-codegen" ,rust-phf-codegen-0.11)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/humenda/isolang-rs")
+    (synopsis "Efficient, static lookup table for ISO 639 language codes")
+    (description
+     "This package provides an efficient, static lookup table for ISO 639
+language codes.")
+    (license license:asl2.0)))
+
 (define-public rust-itertools-0.11
   (package
     (name "rust-itertools")