guix-commits
[Top][All Lists]
Advanced

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

38/39: gnu: Add rust-cssparser-0.28.


From: guix-commits
Subject: 38/39: gnu: Add rust-cssparser-0.28.
Date: Wed, 10 Mar 2021 17:52:27 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit b1e4be8fea2e0f17ec2b6a918bdb0888b657f26d
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed Mar 10 23:15:22 2021 +0100

    gnu: Add rust-cssparser-0.28.
    
    * gnu/packages/crates-io.scm (rust-cssparser-0.28): New variable.
    (rust-cssparser-0.27): Inherit from above.
---
 gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++++++-------
 1 file changed, 33 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index cd54927..aa46a98 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -9675,8 +9675,40 @@ algorithms.")
 reallocations.")
     (license license:asl2.0)))
 
+(define-public rust-cssparser-0.28
+  (package
+    (name "rust-cssparser")
+    (version "0.28.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "cssparser" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1h924c5g2rwlmgk8hllciyky3ih3z9vf04xz3xsp3cv1jyd5kf0x"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-cssparser-macros" ,rust-cssparser-macros-0.6)
+        ("rust-dtoa-short" ,rust-dtoa-short-0.3)
+        ("rust-itoa" ,rust-itoa-0.4)
+        ("rust-matches" ,rust-matches-0.1)
+        ("rust-phf" ,rust-phf-0.8)
+        ("rust-proc-macro2" ,rust-proc-macro2-1)
+        ("rust-quote" ,rust-quote-1)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-smallvec" ,rust-smallvec-1)
+        ("rust-syn" ,rust-syn-1))))
+    (home-page "https://github.com/servo/rust-cssparser";)
+    (synopsis "Rust implementation of CSS Syntax Level 3")
+    (description
+     "This package contains a Rust implementation of CSS Syntax Level 3.")
+    (license license:mpl2.0)))
+
 (define-public rust-cssparser-0.27
   (package
+    (inherit rust-cssparser-0.28)
     (name "rust-cssparser")
     (version "0.27.2")
     (source
@@ -9688,7 +9720,6 @@ reallocations.")
        (sha256
         (base32
          "02nbm690rmkaz1ca0383qq7mc1g066w3s85f17pdihnda79njjvm"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f  ; Not all files included in the tarball.
        #:cargo-inputs
@@ -9705,12 +9736,7 @@ reallocations.")
        #:cargo-development-inputs
        (("rust-difference" ,rust-difference-2)
         ("rust-encoding-rs" ,rust-encoding-rs-0.8)
-        ("rust-serde-json" ,rust-serde-json-1))))
-    (home-page "https://github.com/servo/rust-cssparser";)
-    (synopsis "Rust implementation of CSS Syntax Level 3")
-    (description
-     "This package contains a Rust implementation of CSS Syntax Level 3.")
-    (license license:mpl2.0)))
+        ("rust-serde-json" ,rust-serde-json-1))))))
 
 (define-public rust-cssparser-0.25
   (package



reply via email to

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