guix-commits
[Top][All Lists]
Advanced

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

04/26: gnu: Add rust-glib-0.10.


From: guix-commits
Subject: 04/26: gnu: Add rust-glib-0.10.
Date: Sat, 5 Dec 2020 08:46:25 -0500 (EST)

ngz pushed a commit to branch master
in repository guix.

commit aca8767a3b4c57559ca2e68406399b8e4c0a0a91
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Fri Dec 4 16:09:35 2020 +0100

    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.
---
 gnu/packages/crates-gtk.scm | 45 ++++++++++++++++++++++++++++++++++++---------
 1 file changed, 36 insertions(+), 9 deletions(-)

diff --git a/gnu/packages/crates-gtk.scm b/gnu/packages/crates-gtk.scm
index bcf0f8f..267b714 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



reply via email to

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