diff options
author | Divya Ranjan <divya@subvertising.org> | 2024-11-19 07:32:12 +0000 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-11-28 11:05:27 +0200 |
commit | 6dff90801f5764f43e44528f1dbe8cc1e64a4ae9 (patch) | |
tree | d8c9a34f50e5e5ac96ccc0008a727766846fa19a /gnu/packages/crates-gtk.scm | |
parent | a769b7012003c46c433326eb1f622ad576fbd1c2 (diff) | |
download | guix-6dff90801f5764f43e44528f1dbe8cc1e64a4ae9.tar.gz guix-6dff90801f5764f43e44528f1dbe8cc1e64a4ae9.zip |
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>
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r-- | gnu/packages/crates-gtk.scm | 46 |
1 files 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 |