diff mbox series

[bug#69257,rust-team,v3,02/75] gnu: Add rust-sourceview5-0.7.

Message ID 40d1af13063b27756e9914f91dd6092d7bbb9ce5.1714820129.git.herman@rimm.ee
State New
Headers show
Series Finish packages. | expand

Commit Message

Herman Rimm May 4, 2024, 11:34 a.m. UTC
* gnu/packages/crates-gtk.scm (rust-sourceview5-0.7): Add variable.

Change-Id: I430761936450b76d84dbdce143dfd88d8e568516
---
 gnu/packages/crates-gtk.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index b6027780af..94f6b3b913 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3243,6 +3243,37 @@  (define-public rust-soup-sys-0.10
     (description "This crate provides Soup FFI for Rust.")
     (license license:expat)))
 
+(define-public rust-sourceview5-0.7
+  (package
+    (name "rust-sourceview5")
+    (version "0.7.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "sourceview5" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rcydm2wv1ndsw8b83zqfv5b838cjsr5hxy6bsy4gs8kl5vgkic8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-futures-channel" ,rust-futures-channel-0.3)
+                       ("rust-futures-core" ,rust-futures-core-0.3)
+                       ("rust-gdk-pixbuf" ,rust-gdk-pixbuf-0.18)
+                       ("rust-gdk4" ,rust-gdk4-0.7)
+                       ("rust-gio" ,rust-gio-0.18)
+                       ("rust-glib" ,rust-glib-0.18)
+                       ("rust-gtk4" ,rust-gtk4-0.7)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pango" ,rust-pango-0.18)
+                       ("rust-sourceview5-sys" ,rust-sourceview5-sys-0.7))))
+    (native-inputs (list pkg-config))
+    (inputs (list gtk gtksourceview))
+    (home-page "https://world.pages.gitlab.gnome.org/Rust/sourceview5-rs/")
+    (synopsis "Rust bindings for GtkSourceView 5")
+    (description
+      "This package provides Rust bindings for @code{GtkSourceView} 5.")
+    (license license:expat)))
+
 (define-public rust-sourceview5-sys-0.7
   (package
     (name "rust-sourceview5-sys")