diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-04 11:11:21 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:57:12 +0200 |
commit | 4af7d7d28c45a333a25a371eb8faf4fc189d0b64 (patch) | |
tree | bf685f7e1bd736954ac532888efd3aa243227ca3 /gnu | |
parent | c68327c3f0e1f0a76861be410bce5d5beea01d63 (diff) | |
download | guix-4af7d7d28c45a333a25a371eb8faf4fc189d0b64.tar guix-4af7d7d28c45a333a25a371eb8faf4fc189d0b64.tar.gz |
gnu: Add rust-ravif-0.11.
* gnu/packages/crates-graphics.scm (rust-ravif-0.11): New variable.
(rust-ravif-0.8): Inherit from rust-ravif-0.11.
Change-Id: I0f7acbba86e221ce199a428f565570abb3450c14
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/crates-graphics.scm | 46 |
1 files changed, 34 insertions, 12 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 533ebff916..989bff7b6b 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -2678,8 +2678,41 @@ interactive applications.") ("rust-glob" ,rust-glob-0.2) ("rust-term" ,rust-term-0.4)))))) +(define-public rust-ravif-0.11 + (package + (name "rust-ravif") + (version "0.11.3") + (source + (origin + (method url-fetch) + (uri (crate-uri "ravif" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "1vhn2p31z31c01j6i28slgbi01wq1hmyqjidwfkqy430hh16kp5s")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs (("rust-avif-serialize" ,rust-avif-serialize-0.8) + ("rust-imgref" ,rust-imgref-1) + ("rust-loop9" ,rust-loop9-0.1) + ("rust-quick-error" ,rust-quick-error-2) + ("rust-rav1e" ,rav1e) + ("rust-rayon" ,rust-rayon-1) + ("rust-rgb" ,rust-rgb-0.8)) + #:cargo-development-inputs (("rust-avif-parse" ,rust-avif-parse-1)))) + (native-inputs + (list nasm pkg-config)) + (inputs + (list libgit2 zlib)) + (home-page "https://lib.rs/ravif") + (synopsis "Rust library for encoding images in AVIF format") + (description + "This package provides a rav1e-based pure Rust library for encoding images +in AVIF format (powers the @code{cavif} tool).") + (license license:bsd-3))) + (define-public rust-ravif-0.8 (package + (inherit rust-ravif-0.11) (name "rust-ravif") (version "0.8.10+rust-1.67.0") (source (origin @@ -2688,7 +2721,6 @@ interactive applications.") (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1r3s78781kb9lwysdvpdc80gavly33dcs4inhhp2dawml9g3rjss")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-avif-serialize" ,rust-avif-serialize-0.7) @@ -2700,17 +2732,7 @@ interactive applications.") ("rust-rayon" ,rust-rayon-1) ("rust-rgb" ,rust-rgb-0.8)) #:cargo-development-inputs - (("rust-avif-parse" ,rust-avif-parse-1)))) - (native-inputs - (list nasm pkg-config)) - (inputs - (list libgit2 zlib)) - (home-page "https://lib.rs/ravif") - (synopsis "Rust library for encoding images in AVIF format") - (description - "This package provides a rav1e-based pure Rust library for encoding images in -AVIF format (powers the `cavif` tool).") - (license license:bsd-3))) + (("rust-avif-parse" ,rust-avif-parse-1)))))) (define-public rust-ravif-0.6 (package |