From 0804e197eb838e0514cc4f924f64f81eeac13329 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 11 May 2023 17:30:26 +0300 Subject: [PATCH] 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 bccb73a9bb..74864f0e0d 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)