aboutsummaryrefslogtreecommitdiff
diff options
context:
space:2014-12-19Merge branch 'nix' into 'master'.Ludovic Courtès
authorEfraim Flashner <efraim@flashner.co.il>2020-06-22 10:15:06 +0300
committerEfraim Flashner <efraim@flashner.co.il>2020-06-22 14:15:32 +0300
commitf4022d8549002335cb4df5b5cd481d974d61149a (patch)
tree2d080dca3822a1d2510f8a6c2c1ccc0ff1490028
parente1240cb2492758fe2ada64b00a8f7f8390ef799c (diff)
downloadguix-f4022d8549002335cb4df5b5cd481d974d61149a.tar.gz
guix-f4022d8549002335cb4df5b5cd481d974d61149a.zip
gnu: Add rust-gettext-rs-0.4.
* gnu/packages/crates-io.scm (rust-gettext-rs-0.4): New variable.
-rw-r--r--gnu/packages/crates-io.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0828b28ad2..b7c59cdab4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -8094,6 +8094,38 @@ API library @code{gdi32}.")
retrieving random data from system source.")
(license (list license:expat license:asl2.0))))
+(define-public rust-gettext-rs-0.4
+ (package
+ (name "rust-gettext-rs")
+ (version "0.4.4")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gettext-rs" version))
+ (file-name
+ (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0z6fcsn1g3w9mlgfj6ln6qvqf8610w3zwvk6g062h657v114lifz"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-gettext-sys" ,rust-gettext-sys-0.19)
+ ("rust-locale-config" ,rust-locale-config-0.2))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'use-system-gettext
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((gettext (assoc-ref inputs "gettext")))
+ (setenv "GETTEXT_SYSTEM" gettext)
+ #t))))))
+ (inputs
+ `(("gettext" ,gettext-minimal)))
+ (home-page "https://github.com/Koka/gettext-rs")
+ (synopsis "GNU Gettext FFI binding for Rust")
+ (description "This package provides GNU Gettext FFI bindings for Rust.")
+ (license license:expat)))
+
(define-public rust-gettext-sys-0.19
(package
(name "rust-gettext-sys")