From e3c62df4557c5d7f52912dc83a058bfcf4318886 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Thu, 11 May 2023 17:04:52 +0300 Subject: [PATCH] gnu: Add rust-phf-generator-0.11. * gnu/packages/crates-io.scm (rust-phf-generator-0.11): New variable. (rust-phf-generator-0.10): Inherit from rust-phf-generator-0.11. --- gnu/packages/crates-io.scm | 37 +++++++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 5bb37973af..635eb5b142 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -44057,8 +44057,38 @@ (define-public rust-phf-codegen-0.7 (description "Codegen library for PHF types.") (license license:expat))) +(define-public rust-phf-generator-0.11 + (package + (name "rust-phf-generator") + (version "0.11.1") + (source (origin + (method url-fetch) + (uri (crate-uri "phf-generator" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1gsgy5k45y937qnwp58dc05d63lwlfm3imqr1zslb8qgb2a1q65i")) + (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.11) + ("rust-rand" ,rust-rand-0.8)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3)))) + (home-page "https://github.com/rust-phf/rust-phf") + (synopsis "PHF generation logic") + (description "PHF generation logic.") + (license license:expat))) + (define-public rust-phf-generator-0.10 (package + (inherit rust-phf-generator-0.11) (name "rust-phf-generator") (version "0.10.0") (source @@ -44068,17 +44098,12 @@ (define-public rust-phf-generator-0.10 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1mlq6hlajsvlsx6rhw49g9ricsm017lrxmgmmbk85sxm7f4qaljx")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-criterion" ,rust-criterion-0.3) ("rust-phf-shared" ,rust-phf-shared-0.10) - ("rust-rand" ,rust-rand-0.8)))) - (home-page "https://github.com/sfackler/rust-phf") - (synopsis "PHF generation logic") - (description "PHF generation logic.") - (license license:expat))) + ("rust-rand" ,rust-rand-0.8)))))) (define-public rust-phf-generator-0.8 (package