guix-commits
[Top][All Lists]
Advanced

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

195/475: gnu: Add rust-tiff-0.8.


From: guix-commits
Subject: 195/475: gnu: Add rust-tiff-0.8.
Date: Sun, 7 May 2023 12:46:57 -0400 (EDT)

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

commit ca6aed0889e7284266347336587c7c08e95eb644
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Thu Feb 23 16:03:35 2023 +0200

    gnu: Add rust-tiff-0.8.
    
    * gnu/packages/crates-graphics.scm (rust-tiff-0.8): New variable.
    (rust-tiff-0.6): Inherit from rust-tiff-0.8.
---
 gnu/packages/crates-graphics.scm | 34 +++++++++++++++++++++++++++-------
 1 file changed, 27 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index d924b5824d..3f0c1bb8e8 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -2256,8 +2256,34 @@ first-class Rust objects.")
 applications.")
     (license license:expat)))
 
+(define-public rust-tiff-0.8
+  (package
+    (name "rust-tiff")
+    (version "0.8.1")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "tiff" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 
"0wg4a6w8sakyy0mggblg340mx8bgglx9hwsxsn8g5fpjkx7k6jbl"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f              ; Not all files included
+       #:cargo-inputs
+       (("rust-flate2" ,rust-flate2-1)
+        ("rust-jpeg-decoder" ,rust-jpeg-decoder-0.3)
+        ("rust-weezl" ,rust-weezl-0.1))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.3))))
+    (home-page "https://github.com/image-rs/image-tiff";)
+    (synopsis "TIFF decoding and encoding library in pure Rust")
+    (description
+     "This package provides TIFF decoding and encoding library in pure Rust.")
+    (license license:expat)))
+
 (define-public rust-tiff-0.6
   (package
+    (inherit rust-tiff-0.8)
     (name "rust-tiff")
     (version "0.6.1")
     (source
@@ -2267,18 +2293,12 @@ applications.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0ds48vs919ccxa3fv1www7788pzkvpg434ilqkq7sjb5dmqg8lws"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-jpeg-decoder" ,rust-jpeg-decoder-0.1)
         ("rust-miniz-oxide" ,rust-miniz-oxide-0.4)
-        ("rust-weezl" ,rust-weezl-0.1))))
-    (home-page "https://github.com/image-rs/image-tiff";)
-    (synopsis "TIFF decoding and encoding library in pure Rust")
-    (description
-     "This package provides TIFF decoding and encoding library in pure Rust.")
-    (license license:expat)))
+        ("rust-weezl" ,rust-weezl-0.1))))))
 
 (define-public rust-tiff-0.5
   (package



reply via email to

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