guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 03/86] gnu: Add rust-lazy-static.


From: ng0
Subject: [PATCH 03/86] gnu: Add rust-lazy-static.
Date: Tue, 3 Jan 2017 23:35:19 +0000

* gnu/packages/rust.scm (rust-lazy-static): New variable.
---
 gnu/packages/rust.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index b0ac22a78..1d96c3af2 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -308,3 +308,25 @@ C functions often found in libc or other common platform 
libraries.")
 data, they are usable without `std` and static initializers are
 available.")
     (license license:expat)))
+
+(define-public rust-lazy-static
+  (package
+    (name "rust-lazy-static")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "lazy_static" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "16z1h7w702sxnscak38jykxlhxq0b5ip4mndlb46pkaqwzi0xgka"))))
+    (build-system cargo-build-system)
+    (inputs `(("rust-spin" ,rust-spin "src")))
+    (home-page "https://github.com/rust-lang-nursery/lazy-static.rs";)
+    (synopsis "Macro for declaring lazily evaluated statics")
+    (description
+     "Lazy-static provides a macro for declaring lazily
+evaluated statics in Rust.")
+    (license license:expat)))
-- 
2.11.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]