guix-commits
[Top][All Lists]
Advanced

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

70/379: gnu: Add rust-phf-generator-0.9.


From: guix-commits
Subject: 70/379: gnu: Add rust-phf-generator-0.9.
Date: Thu, 29 Jun 2023 12:32:35 -0400 (EDT)

efraim pushed a commit to branch rust-team
in repository guix.

commit 0be01d8571bc1319a0489a9ccb9899424e063dd4
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu May 11 17:30:26 2023 +0300

    gnu: Add rust-phf-generator-0.9.
    
    * gnu/packages/crates-io.scm (rust-phf-generator-0.9): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3cbb3c60cd..a489489f54 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -44105,6 +44105,32 @@ function data structures.")
         ("rust-phf-shared" ,rust-phf-shared-0.10)
         ("rust-rand" ,rust-rand-0.8))))))
 
+(define-public rust-phf-generator-0.9
+  (package
+    (inherit rust-phf-generator-0.10)
+    (name "rust-phf-generator")
+    (version "0.9.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "phf-generator" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "10ih96kaxnkn1yxk3ghpzgm09nc0rn69fd52kv68003fv4h34gyl"))
+              (modules '((guix build utils)))
+              (snippet
+               '(begin (substitute* "Cargo.toml"
+                         (("\"=([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+                          (string-append "\"^" version)))))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-criterion" ,rust-criterion-0.3)
+        ("rust-phf-shared" ,rust-phf-shared-0.9)
+        ("rust-rand" ,rust-rand-0.8))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3))))))
+
 (define-public rust-phf-generator-0.8
   (package
     (inherit rust-phf-generator-0.10)



reply via email to

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