From 2f9d1b59d12080b75faacc6009e7a03d780c34ee Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Mon, 6 Jul 2020 21:00:49 +0300 Subject: [PATCH] gnu: Add rust-string-cache-codegen-0.5. * gnu/packages/crates-io.scm (rust-string-cache-codegen-0.5): New variable. (rust-string-cache-codegen-0.4): Inherit from rust-string-cache-codegen-0.5 --- gnu/packages/crates-io.scm | 36 +++++++++++++++++++++++++----------- 1 file changed, 25 insertions(+), 11 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 58a731202f..762814dd0b 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -23300,15 +23300,37 @@ (define-public rust-string-cache-0.7 ("rust-string-cache-shared" ,rust-string-cache-shared-0.3)) #:cargo-development-inputs (("rust-rand" ,rust-rand-0.4)))) + +(define-public rust-string-cache-codegen-0.5 + (package + (name "rust-string-cache-codegen") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "string-cache-codegen" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "15vbk5i7kkj5bbx7f0fi477js4svw5py39gi4rk74anj35g8wk7j")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-phf-generator" ,rust-phf-generator-0.8) + ("rust-phf-shared" ,rust-phf-shared-0.8) + ("rust-proc-macro2" ,rust-proc-macro2-1.0) + ("rust-quote" ,rust-quote-1.0)))) (home-page "https://github.com/servo/string-cache") - (synopsis "String interning library for Rust") + (synopsis "Codegen library for string-cache") (description - "This package provides a string interning library for Rust, + "This package provides a codegen library for string-cache, developed as part of the Servo project.") (license (list license:asl2.0 license:expat)))) (define-public rust-string-cache-codegen-0.4 (package + (inherit rust-string-cache-codegen-0.5) (name "rust-string-cache-codegen") (version "0.4.4") (source @@ -23320,21 +23342,13 @@ (define-public rust-string-cache-codegen-0.4 (sha256 (base32 "1ik78h9gs874i24rkyh0myg6x4ni2a9cazbv5yzs9yavnv8mxx7h")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-phf-generator" ,rust-phf-generator-0.7) ("rust-phf-shared" ,rust-phf-shared-0.7) ("rust-proc-macro2" ,rust-proc-macro2-1.0) ("rust-quote" ,rust-quote-1.0) - ("rust-string-cache-shared" - ,rust-string-cache-shared-0.3)))) - (home-page "https://github.com/servo/string-cache") - (synopsis "Codegen library for string-cache") - (description - "This package provides a codegen library for string-cache, -developed as part of the Servo project.") - (license (list license:asl2.0 license:expat)))) + ("rust-string-cache-shared" ,rust-string-cache-shared-0.3)))))) (define-public rust-string-cache-shared-0.3 (package