aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-graphics.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-11-14 09:51:01 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:15 +0200
commitb204107936fd30b6c68cb77bc6f176deb656b6d0 (patch)
tree710652e196915b76b947cbea023d3c2b73ffbf40 /gnu/packages/crates-graphics.scm
parent1273393320cd3357a188e64abf72449c13b1d547 (diff)
downloadguix-b204107936fd30b6c68cb77bc6f176deb656b6d0.tar.gz
guix-b204107936fd30b6c68cb77bc6f176deb656b6d0.zip
gnu: Add rust-image-webp-0.2.
* gnu/packages/crates-graphics.scm (rust-image-webp-0.2): New variable. Change-Id: I115b2939e02ba830995892b6167298ea91e8088a
Diffstat (limited to 'gnu/packages/crates-graphics.scm')
-rw-r--r--gnu/packages/crates-graphics.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 09adbebfab..c6523b4029 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -48,6 +48,7 @@
#:use-module (gnu packages fontutils)
#:use-module (gnu packages freedesktop)
#:use-module (gnu packages gl)
+ #:use-module (gnu packages image)
#:use-module (gnu packages llvm)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages python)
@@ -2473,6 +2474,32 @@ filters and decoders for the most common image formats.")
("rust-num-complex" ,rust-num-complex-0.2)
("rust-quickcheck" ,rust-quickcheck-0.6))))))
+(define-public rust-image-webp-0.2
+ (package
+ (name "rust-image-webp")
+ (version "0.2.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "image-webp" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0bz2zf9rfkfwf50bv60p6vnwnggg75s3bsnnnp6aj4a7v7iyhcg0"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs (("rust-byteorder-lite" ,rust-byteorder-lite-0.1)
+ ("rust-quick-error" ,rust-quick-error-2))
+ #:cargo-development-inputs (("rust-paste" ,rust-paste-1)
+ ("rust-png" ,rust-png-0.17)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-webp" ,rust-webp-0.3))))
+ (inputs (list libwebp))
+ (home-page "https://github.com/image-rs/image-webp")
+ (synopsis "WebP encoding and decoding in pure Rust")
+ (description
+ "This package provides @code{WebP} encoding and decoding in pure Rust.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-imageproc-0.23
(package
(name "rust-imageproc")