summary refs log tree commit diff
path: root/gnu/packages/crates-graphics.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-02-23 15:58:52 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-05-07 19:29:15 +0300
commit89fb778831206863f44cf5a70529e58cad1189d1 (patch)
tree26e4dde4554d9b04d71e955df633066958abc384 /gnu/packages/crates-graphics.scm
parent0a21d32b5def80a8292c2176c95cfe79ea292259 (diff)
downloadguix-89fb778831206863f44cf5a70529e58cad1189d1.tar.gz
gnu: Add rust-dav1d-sys-0.7.
* gnu/packages/crates-graphics.scm (rust-dav1d-sys-0.7): New variable.
(rust-dav1d-sys-0.3): Inherit from rust-dav1d-sys-0.7.
Diffstat (limited to 'gnu/packages/crates-graphics.scm')
-rw-r--r--gnu/packages/crates-graphics.scm40
1 files changed, 30 insertions, 10 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 7051e7dba6..ed18568579 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -613,10 +613,35 @@ types.")
 and iOS.")
     (license license:expat)))
 
+(define-public rust-dav1d-sys-0.7
+  (package
+    (name "rust-dav1d-sys")
+    (version "0.7.0")
+    (source (origin
+              (method url-fetch)
+              (uri (crate-uri "dav1d-sys" version))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32 "16gzjsfnvfd5zr8mrx5n9mdd4vjvwfwpk9hfscgz7sjyzjdjzcm0"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-system-deps" ,rust-system-deps-6))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list dav1d))
+    (home-page "https://github.com/rust-av/dav1d-rs")
+    (synopsis "FFI bindings to dav1d")
+    (description "This package provides FFI bindings to dav1d.")
+    (license license:expat)))
+
 (define-public rust-dav1d-sys-0.3
   (package
+    (inherit rust-dav1d-sys-0.7)
     (name "rust-dav1d-sys")
-    (version "0.3.4")
+    (version "0.3.5")
     (source
      (origin
        (method url-fetch)
@@ -624,20 +649,15 @@ and iOS.")
        (file-name
         (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "020lla2l703iy69gbksq18snj2b1sp7vmjf39qqykd4242d4msr5"))))
-    (build-system cargo-build-system)
+        (base32 "10y8637snqc3kb9mhs8p9zi8171ba2hlbvhk06vs6hfifx60rr48"))))
     (arguments
      `(#:cargo-inputs
-       (("rust-bindgen" ,rust-bindgen-0.58)
-        ("rust-system-deps" ,rust-system-deps-3))))
+       (("rust-bindgen" ,rust-bindgen-0.59)
+        ("rust-system-deps" ,rust-system-deps-6))))
     (native-inputs
      (list pkg-config))
     (inputs
-     (list dav1d clang llvm))
-    (home-page "https://github.com/rust-av/dav1d-rs")
-    (synopsis "FFI bindings to dav1d")
-    (description "This package provides FFI bindings to dav1d.")
-    (license license:expat)))
+     (list dav1d clang llvm))))
 
 (define-public rust-euclid-0.22
   (package