diff mbox series

[bug#69257,rust-team,v3,01/75] gnu: Add rust-sourceview-5-sys-0.7.

Message ID 99edb2d0ac563a048ce1f9082877fd3ce9bd0671.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-sourceview-5-sys-0.7): Add variable.
---
 gnu/packages/crates-gtk.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
diff mbox series

Patch

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