Subject: [bug#70787] [PATCH 4/4] gnu: Add heic-to-dynamic-gnome-wallpaper.

From: Sergio Pastor Pérez <[email-masked]>
Date: Sun, 5 May 2024 16:44:08 +0200

* gnu/packages/rust-apps.scm (heic-to-dynamic-gnome-wallpaper): New variable.

Change-Id: I74b87a11e7f77d6a40262c6298bdf9c95a9c9438
---
 gnu/packages/rust-apps.scm | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index d73bd1a030..41d8c4efac 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -723,6 +723,40 @@ (define-public fd
 defaults for 80% of the use cases.")
      (license (list license:expat license:asl2.0))))
 
+(define-public heic-to-dynamic-gnome-wallpaper
+  (package
+    (name "heic-to-dynamic-gnome-wallpaper")
+    (version "0.1.6")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "heic-to-dynamic-gnome-wallpaper" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0k94nxbyvxr1ls3myfn2k8in466wdlgd5f5kv7vyrb3dm298ycf8"))))
+    (build-system cargo-build-system)
+    (native-inputs (list pkg-config))
+    (inputs (list libheif))
+    (arguments
+     `(#:cargo-inputs (("rust-anyhow" ,rust-anyhow-1)
+                       ("rust-base64" ,rust-base64-0.13)
+                       ("rust-chrono" ,rust-chrono-0.4)
+                       ("rust-clap" ,rust-clap-3)
+                       ("rust-colored" ,rust-colored-2)
+                       ("rust-indicatif" ,rust-indicatif-0.16)
+                       ("rust-libheif-rs" ,rust-libheif-rs-0.15)
+                       ("rust-plist" ,rust-plist-1)
+                       ("rust-png" ,rust-png-0.17)
+                       ("rust-quick-xml" ,rust-quick-xml-0.22)
+                       ("rust-serde" ,rust-serde-1))))
+    (home-page "https://github.com/jwuensche/heic-to-dynamic-gnome-wallpaper")
+    (synopsis
+     "Convert MacOS's dynamic wallpapers to dynamic gnome xml wallpapers")
+    (description
+     "CLI tool to convert heic image containers used in
+@code{MacOS's} dynamic wallpapers to dynamic gnome xml wallpapers.")
+    (license license:gpl3)))
+
 (define-public hexyl
   (package
     (name "hexyl")
-- 
2.41.0