guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/11: gnu: Add rust-gtk-sys-0.18.


From: guix-commits
Subject: 04/11: gnu: Add rust-gtk-sys-0.18.
Date: Tue, 19 Nov 2024 04:59:40 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit 5ea841ad2ecac3510907173951e8a51f92a8fa77
Author: Divya Ranjan <divya@subvertising.org>
AuthorDate: Tue Nov 19 07:32:12 2024 +0000

    gnu: Add rust-gtk-sys-0.18.
    
    * gnu/packages/crates-gtk.scm (rust-gtk-sys-0.18): New variable.
    (rust-gtk-sys-0.14): Inherit from rust-gtk-sys-0.18.
    
    Change-Id: I4a2ed868b593e30e6508ad82bea23f8f57e7baa8
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-gtk.scm | 46 ++++++++++++++++++++++++++++++++++++---------
 1 file changed, 37 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index f8f20b0e19..b139078ccb 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -3637,8 +3637,44 @@
      "LGPL-licensed docs for Gtk-rs crates.")
     (license license:lgpl2.0)))
 
+(define-public rust-gtk-sys-0.18
+  (package
+    (name "rust-gtk-sys")
+    (version "0.18.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "gtk-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "08kpdl7ldj8lyv4dyhp9pdk61qj8yyyha5f1jssc1hg23nzkf53p"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags (list "--release" "--"
+                                "--skip=cross_validate_layout_with_c")
+       #:cargo-inputs (("rust-atk-sys" ,rust-atk-sys-0.18)
+                       ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.18)
+                       ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.18)
+                       ("rust-gdk-sys" ,rust-gdk-sys-0.18)
+                       ("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-libc" ,rust-libc-0.2)
+                       ("rust-pango-sys" ,rust-pango-sys-0.18)
+                       ("rust-system-deps" ,rust-system-deps-6))
+       #:cargo-development-inputs (("rust-shell-words" ,rust-shell-words-1)
+                                   ("rust-tempfile" ,rust-tempfile-3))))
+    (native-inputs (list pkg-config))
+    (inputs
+     (list gtk+))
+    (home-page "https://gtk-rs.org/";)
+    (synopsis "FFI bindings to libgtk-3")
+    (description "This package provides FFI bindings to libgtk-3.")
+    (license license:expat)))
+
 (define-public rust-gtk-sys-0.14
   (package
+    (inherit rust-gtk-sys-0.18)
     (name "rust-gtk-sys")
     (version "0.14.0")
     (source
@@ -3648,7 +3684,6 @@
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0gihp9zh4z7lycp0zbmq1w0k9ddbnd2h64jsgid7hi85vb9wh54c"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f                      ;missing files
        #:cargo-inputs
@@ -3664,14 +3699,7 @@
         ("rust-system-deps" ,rust-system-deps-3))
        #:cargo-development-inputs
        (("rust-shell-words" ,rust-shell-words-1)
-        ("rust-tempfile" ,rust-tempfile-3))))
-    (native-inputs (list pkg-config))
-    (inputs
-     (list gtk+))
-    (home-page "https://gtk-rs.org/";)
-    (synopsis "FFI bindings to libgtk-3")
-    (description "This package provides FFI bindings to libgtk-3.")
-    (license license:expat)))
+        ("rust-tempfile" ,rust-tempfile-3))))))
 
 (define-public rust-gtk-sys-0.10
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]