aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorPetr Hodina <phodina@protonmail.com>2022-01-10 22:52:34 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2022-01-21 00:44:28 +0100
commit1496c835ee1dac5b991948951bef1211b38fa48f (patch)
tree3d618cea61decb7ab8f8cd57eebd3190e7057b66 /gnu
parent59a715b07ac9d0c40d94cbd8945e68d8fdc69224 (diff)
downloadguix-1496c835ee1dac5b991948951bef1211b38fa48f.tar.gz
guix-1496c835ee1dac5b991948951bef1211b38fa48f.zip
gnu: Add rust-gtk-sys-0.14.
* gnu/packages/crates-gtk.scm (rust-gtk-sys-0.14): New variable. (rust-gtk-sys-0.9): Inherit from above. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-gtk.scm46
1 files changed, 38 insertions, 8 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index c91556a098..1cc24ed222 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -1291,8 +1291,45 @@
"LGPL-licensed docs for Gtk-rs crates.")
(license license:lgpl2.0)))
+(define-public rust-gtk-sys-0.14
+ (package
+ (name "rust-gtk-sys")
+ (version "0.14.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "gtk-sys" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "0gihp9zh4z7lycp0zbmq1w0k9ddbnd2h64jsgid7hi85vb9wh54c"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:tests? #f ;missing files
+ #:cargo-inputs
+ (("rust-atk-sys" ,rust-atk-sys-0.14)
+ ("rust-cairo-sys-rs" ,rust-cairo-sys-rs-0.14)
+ ("rust-gdk-pixbuf-sys" ,rust-gdk-pixbuf-sys-0.14)
+ ("rust-gdk-sys" ,rust-gdk-sys-0.14)
+ ("rust-gio-sys" ,rust-gio-sys-0.14)
+ ("rust-glib-sys" ,rust-glib-sys-0.14)
+ ("rust-gobject-sys" ,rust-gobject-sys-0.14)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-pango-sys" ,rust-pango-sys-0.14)
+ ("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)))
+
(define-public rust-gtk-sys-0.9
(package
+ (inherit rust-gtk-sys-0.14)
(name "rust-gtk-sys")
(version "0.9.2")
(source
@@ -1302,7 +1339,6 @@
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1hd4w49iaivzjkbxi0bhabqp1ifkzg9g47n822sh12xlqxhgdpjk"))))
- (build-system cargo-build-system)
(arguments
`(#:tests? #f ;missing files
#:cargo-inputs
@@ -1318,13 +1354,7 @@
("rust-pkg-config" ,rust-pkg-config-0.3))
#:cargo-development-inputs
(("rust-shell-words" ,rust-shell-words-0.1)
- ("rust-tempfile" ,rust-tempfile-3))))
- (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-gtk3-macros-0.14
(package