summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-04 16:09:35 +0100
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2020-12-05 14:45:09 +0100
commitaca8767a3b4c57559ca2e68406399b8e4c0a0a91 (patch)
tree3ba930d21026fb6df3557f70fdacbfacfb6786cf
parent0b1e39bb78f1e0501557d309e7ff34383f8f8a04 (diff)
gnu: Add rust-glib-0.10.
* gnu/packages/crates-gtk.scm (rust-glib-0.10): New variable. (rust-glib-0.8): inherit from the above.
-rw-r--r--gnu/packages/crates-gtk.scm45
1 files changed, 36 insertions, 9 deletions
diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index bcf0f8f28b..267b714331 100644
--- a/gnu/packages/crates-gtk.scm
+++ b/gnu/packages/crates-gtk.scm
@@ -333,8 +333,43 @@
(description "File format checker in Rust.")
(license license:expat)))
+(define-public rust-glib-0.10
+ (package
+ (name "rust-glib")
+ (version "0.10.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (crate-uri "glib" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32 "1ifh56nhvhcrssxqkad876qqrlnl16q6b8ap3f7ncpjinw9m0s0c"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:skip-build? #t
+ #:cargo-inputs
+ (("rust-bitflags" ,rust-bitflags-1)
+ ("rust-futures-channel" ,rust-futures-channel-0.3)
+ ("rust-futures-core" ,rust-futures-core-0.3)
+ ("rust-futures-executor" ,rust-futures-executor-0.3)
+ ("rust-futures-preview" ,rust-futures-preview-0.3)
+ ("rust-futures-task" ,rust-futures-task-0.3)
+ ("rust-futures-util" ,rust-futures-util-0.3)
+ ("rust-glib-macros" ,rust-glib-macros-0.10)
+ ("rust-glib-sys" ,rust-glib-sys-0.10)
+ ("rust-gobject-sys" ,rust-gobject-sys-0.10)
+ ("rust-libc" ,rust-libc-0.2)
+ ("rust-once-cell" ,rust-once-cell-1))))
+ (inputs
+ `(("glib" ,glib)))
+ (home-page "http://gtk-rs.org/")
+ (synopsis "Rust bindings for the GLib library")
+ (description "Rust bindings for the GLib library")
+ (license license:expat)))
+
(define-public rust-glib-0.9
(package
+ (inherit rust-glib-0.10)
(name "rust-glib")
(version "0.9.3")
(source
@@ -346,7 +381,6 @@
(sha256
(base32
"1h3100mf7kdfxibjz5na0sqzbd2mcsyd8pzivn3666w414x5gys0"))))
- (build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-bitflags" ,rust-bitflags-1)
@@ -361,14 +395,7 @@
("rust-lazy-static" ,rust-lazy-static-1)
("rust-libc" ,rust-libc-0.2))
#:cargo-development-inputs
- (("rust-tempfile" ,rust-tempfile-3))))
- (inputs
- `(("glib" ,glib)))
- (home-page "https://gtk-rs.org/")
- (synopsis "Rust bindings for the GLib library")
- (description
- "Rust bindings for the GLib library.")
- (license license:expat)))
+ (("rust-tempfile" ,rust-tempfile-3))))))
(define-public rust-glib-0.8
(package