guix-patches
[Top][All Lists]
Advanced

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

[bug#68312] [PATCH 074/156] gnu: Add rust-lru-0.12.


From: Wilko Meyer
Subject: [bug#68312] [PATCH 074/156] gnu: Add rust-lru-0.12.
Date: Mon, 8 Jan 2024 02:52:51 +0100

* gnu/packages/crates-io.scm (rust-lru-0.12): New variable.
(rust-lru-0.19): Inherit from rust-lru-0.12.

Change-Id: I66d64ecb06fb2ed43d75142fa9002dfe60138262
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4c3cadfd7d3..8fc766d971a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -39267,8 +39267,29 @@ (define-public rust-lopdf-0.26
         ("rust-rayon" ,rust-rayon-1)
         ("rust-time" ,rust-time-0.2))))))
 
+(define-public rust-lru-0.12
+  (package
+    (name "rust-lru")
+    (version "0.12.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "lru" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1myillpwqfcins062g28jvj48cxw8818zcx08ydzsl6misxfx519"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.14))))
+    (home-page "https://github.com/jeromefroe/lru-rs";)
+    (synopsis "A LRU cache implementation")
+    (description "This package provides a LRU cache implementation.")
+    (license license:expat)))
+
 (define-public rust-lru-0.9
   (package
+    (inherit rust-lru-0.12)
     (name "rust-lru")
     (version "0.9.0")
     (source
@@ -39278,16 +39299,11 @@ (define-public rust-lru-0.9
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "05yz4qqx7wxbhgxs5hx22j13g8mv9z3gn2pkspykyq48winx9rvi"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-hashbrown" ,rust-hashbrown-0.13))
        #:cargo-development-inputs
        (("rust-scoped-threadpool" ,rust-scoped-threadpool-0.1)
-        ("rust-stats-alloc" ,rust-stats-alloc-0.1))))
-    (home-page "https://github.com/jeromefroe/lru-rs";)
-    (synopsis "LRU cache")
-    (description "This package provides a LRU cache implementation.")
-    (license license:expat)))
+        ("rust-stats-alloc" ,rust-stats-alloc-0.1))))))
 
 (define-public rust-lru-0.7
   (package
-- 
2.41.0






reply via email to

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