From a440b5eb2f1afcaccebd0f702b738c34a4bbc109 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sun, 7 Jan 2024 12:43:50 +0200 Subject: [PATCH] gnu: dav1d: Update to 1.3.0. * gnu/packages/video.scm (dav1d): Update to 1.3.0. [native-inputs]: Only use nasm when building for x86_64 or i686. * gnu/packages/crates-graphics.scm (rust-dav1d-sys-0.7)[arguments]: Skip the build. Change-Id: I2e3fb6d343c92e48f231bf2b77259856a47bbc51 --- gnu/packages/crates-graphics.scm | 3 ++- gnu/packages/video.scm | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm index 3c989ee5e9..dbe930092c 100644 --- a/gnu/packages/crates-graphics.scm +++ b/gnu/packages/crates-graphics.scm @@ -888,7 +888,8 @@ (define-public rust-dav1d-sys-0.7 (base32 "13z5qvf35lkda67l6l1bkdp1gmqg75cqfblldxh4n8rbmn4zsj9s")))) (build-system cargo-build-system) (arguments - `(#:cargo-inputs + `(#:skip-build? #t ; Expects 1.0.0 <= dav1d < 1.3.0 + #:cargo-inputs (("rust-libc" ,rust-libc-0.2) ("rust-system-deps" ,rust-system-deps-6)))) (native-inputs diff --git a/gnu/packages/video.scm b/gnu/packages/video.scm index 3b29a5cd27..ee10af90c5 100644 --- a/gnu/packages/video.scm +++ b/gnu/packages/video.scm @@ -5575,7 +5575,7 @@ (define-public shotcut (define-public dav1d (package (name "dav1d") - (version "1.0.0") + (version "1.3.0") (source (origin (method git-fetch) @@ -5584,9 +5584,12 @@ (define-public dav1d (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "0jkvb5as7danpalzlwd0w1dc9i2vijvmf39z0j6fwqvialsgnnj5")))) + (base32 "17r6qdijdnqfciqa0ia2y4gyhaav6y5gc4d9xj4dg9h7xnpyxc3k")))) (build-system meson-build-system) - (native-inputs (list nasm)) + (native-inputs + (if (target-x86?) + (list nasm) + '())) (home-page "https://code.videolan.org/videolan/dav1d") (synopsis "AV1 decoder") (description "dav1d is a new AV1 cross-platform decoder, and focused on