summaryrefslogtreecommitdiff
path: root/gnu/packages/crates-gtk.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-07-25 14:45:33 +0200
committerMarius Bakke <marius@gnu.org>2022-07-27 12:50:16 +0200
commit21e5e408bfb310d6d285cedad68551684473afca (patch)
treeaf30275684c292fb066b13714ecc88604e0738ef /gnu/packages/crates-gtk.scm
parente31cc7f0c9f66372cf5bb5f04a903ffc7b697b56 (diff)
gnu: rust-cairo-sys: Add 0.15.1.
* gnu/packages/crates-gtk.scm (rust-cairo-sys-rs-0.15): New variable. (rust-cairo-sys-rs-0.14): Inherit from it.
Diffstat (limited to 'gnu/packages/crates-gtk.scm')
-rw-r--r--gnu/packages/crates-gtk.scm37
1 files changed, 30 insertions, 7 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index bfde93560c..f389c707d6 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -277,8 +277,37 @@
#:cargo-development-inputs
(("rust-tempfile" ,rust-tempfile-3))))))
+(define-public rust-cairo-sys-rs-0.15
+ (package
+ (name "rust-cairo-sys-rs")
+ (version "0.15.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "cairo-sys-rs" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1j6k4pps3dv6g0vlpmxc2xyk0s40vj2wpzi55lbwjspmpqlx8m9w"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-inputs
+ (("rust-glib-sys" ,rust-glib-sys-0.15)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-system-deps" ,rust-system-deps-6)
+ ("rust-winapi" ,rust-winapi-0.3)
+ ("rust-x11" ,rust-x11-2))))
+ (native-inputs
+ (list pkg-config))
+ (inputs
+ (list cairo))
+ (home-page "https://gtk-rs.org/")
+ (synopsis "FFI bindings to libcairo")
+ (description "This package provides FFI bindings to libcairo.")
+ (license license:expat)))
+
(define-public rust-cairo-sys-rs-0.14
(package
+ (inherit rust-cairo-sys-rs-0.15)
(name "rust-cairo-sys-rs")
(version "0.14.9")
(source
@@ -288,7 +317,6 @@
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "0w3md4xk87ign30wb3rqfmmj0q6pvg5arbm35flgsd08jxvbhj5l"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build?
#t
@@ -298,12 +326,7 @@
("rust-system-deps" ,rust-system-deps-3)
("rust-winapi" ,rust-winapi-0.3)
("rust-x11" ,rust-x11-2))))
- (inputs
- (list cairo))
- (home-page "https://gtk-rs.org/")
- (synopsis "FFI bindings to libcairo")
- (description "This package provides FFI bindings to libcairo.")
- (license license:expat)))
+ (native-inputs '())))
(define-public rust-cairo-sys-rs-0.10
(package