unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49545] [PATCH 0/4] gnu: Add rust-mpris-player-0.6.
@ 2021-07-13 17:17 Vinicius Monego
  2021-07-13 17:19 ` [bug#49545] [PATCH 1/4] gnu: Add rust-libdbus-sys-0.2 Vinicius Monego
  2021-07-15  7:35 ` bug#49545: [PATCH 0/4] " Efraim Flashner
  0 siblings, 2 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-07-13 17:17 UTC (permalink / raw)
  To: 49545; +Cc: Vinicius Monego

Vinicius Monego (4):
  gnu: Add rust-libdbus-sys-0.2.
  gnu: Add rust-dbus-0.6.
  gnu: rust-system-deps-1: Fix version requirements.
  gnu: Add rust-mpris-player-0.6.

 gnu/packages/crates-io.scm | 98 ++++++++++++++++++++++++++++++++++----
 1 file changed, 90 insertions(+), 8 deletions(-)

-- 
2.32.0





^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#49545] [PATCH 1/4] gnu: Add rust-libdbus-sys-0.2.
  2021-07-13 17:17 [bug#49545] [PATCH 0/4] gnu: Add rust-mpris-player-0.6 Vinicius Monego
@ 2021-07-13 17:19 ` Vinicius Monego
  2021-07-13 17:19   ` [bug#49545] [PATCH 2/4] gnu: Add rust-dbus-0.6 Vinicius Monego
                     ` (2 more replies)
  2021-07-15  7:35 ` bug#49545: [PATCH 0/4] " Efraim Flashner
  1 sibling, 3 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-07-13 17:19 UTC (permalink / raw)
  To: 49545; +Cc: Vinicius Monego

* gnu/packages/crates-io.scm (rust-libdbus-sys-0.2): New variable.
---
 gnu/packages/crates-io.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 0a7c981302..f4f7606724 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -51,6 +51,7 @@
   #:use-module (gnu packages databases)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages gettext)
+  #:use-module (gnu packages glib)
   #:use-module (gnu packages image)
   #:use-module (gnu packages jemalloc)
   #:use-module (gnu packages llvm)
@@ -23472,6 +23473,31 @@ values of all the exported APIs match the platform that libc is compiled for.")
 macros on libc without stdlib.")
     (license (list license:asl2.0 license:expat))))
 
+(define-public rust-libdbus-sys-0.2
+  (package
+    (name "rust-libdbus-sys")
+    (version "0.2.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "libdbus-sys" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1w06ycq2mw8zfp9j73macgdl8d2881bnxbzdyyxys90ljyya64nw"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("dbus" ,dbus)))
+    (home-page "https://github.com/diwic/dbus-rs")
+    (synopsis "FFI bindings to libdbus")
+    (description "This package provides FFI bindings to libdbus.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-libflate-1
   (package
     (name "rust-libflate")
-- 
2.32.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#49545] [PATCH 2/4] gnu: Add rust-dbus-0.6.
  2021-07-13 17:19 ` [bug#49545] [PATCH 1/4] gnu: Add rust-libdbus-sys-0.2 Vinicius Monego
@ 2021-07-13 17:19   ` Vinicius Monego
  2021-07-13 17:19   ` [bug#49545] [PATCH 3/4] gnu: rust-system-deps-1: Fix version requirements Vinicius Monego
  2021-07-13 17:19   ` [bug#49545] [PATCH 4/4] gnu: Add rust-mpris-player-0.6 Vinicius Monego
  2 siblings, 0 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-07-13 17:19 UTC (permalink / raw)
  To: 49545; +Cc: Vinicius Monego

* gnu/packages/crates-io.scm (rust-dbus-0.6): New variable.
---
 gnu/packages/crates-io.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index f4f7606724..9f7f5a1b3f 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -12178,6 +12178,35 @@ GF(2^n).  This trait is implemented for 64, 128 and 256 bit block
 sizes.  Big-endian order is used.  WARNING: Block must be aligned!")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-dbus-0.6
+  (package
+    (name "rust-dbus")
+    (version "0.6.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "dbus" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "068qyxvaam34sjmhjgxz6iikklvylxly7gp6n00yksqydzrz1da8"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f ;it needs display and sockets and launches daemons
+       #:cargo-inputs
+       (("rust-libc" ,rust-libc-0.2)
+        ("rust-libdbus-sys" ,rust-libdbus-sys-0.2))
+       #:cargo-development-inputs
+       (("rust-tempdir" ,rust-tempdir-0.3))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("dbus" ,dbus)))
+    (home-page "https://github.com/diwic/dbus-rs")
+    (synopsis "Rust bindings to D-Bus")
+    (description "This package provies Rust bindings to D-Bus.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-deadpool-0.7
   (package
     (name "rust-deadpool")
-- 
2.32.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#49545] [PATCH 3/4] gnu: rust-system-deps-1: Fix version requirements.
  2021-07-13 17:19 ` [bug#49545] [PATCH 1/4] gnu: Add rust-libdbus-sys-0.2 Vinicius Monego
  2021-07-13 17:19   ` [bug#49545] [PATCH 2/4] gnu: Add rust-dbus-0.6 Vinicius Monego
@ 2021-07-13 17:19   ` Vinicius Monego
  2021-07-13 17:19   ` [bug#49545] [PATCH 4/4] gnu: Add rust-mpris-player-0.6 Vinicius Monego
  2 siblings, 0 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-07-13 17:19 UTC (permalink / raw)
  To: 49545; +Cc: Vinicius Monego

* gnu/packages/crates-io.scm (rust-system-deps-1)[source]: Add snippet to fix
rust-version-compare version.
[arguments]<#:phases>: Remove 'fix-version-requirements phase.
---
 gnu/packages/crates-io.scm | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9f7f5a1b3f..eeebf4bd54 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -45454,7 +45454,12 @@ processors, disks, components and networks.")
        (uri (crate-uri "system-deps" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "16v4ljmj8sj030mdcc1yk615vciqlyxi7csq6lxka6cs4qbwqghg"))))
+        (base32 "16v4ljmj8sj030mdcc1yk615vciqlyxi7csq6lxka6cs4qbwqghg"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  (("0.0.10") "0.0"))
+                #t))))
     (build-system cargo-build-system)
     (arguments
      `(#:tests? #f                      ;source is missing some test files
@@ -45467,13 +45472,7 @@ processors, disks, components and networks.")
         ("rust-toml" ,rust-toml-0.5)
         ("rust-version-compare" ,rust-version-compare-0.0))
        #:cargo-development-inputs
-       (("rust-itertools" ,rust-itertools-0.9))
-       #:phases
-       (modify-phases %standard-phases
-         (add-after 'unpack 'fix-version-requirements
-           (lambda _
-             (substitute* "Cargo.toml"
-               (("0.0.10") ,(package-version rust-version-compare-0.0))))))))
+       (("rust-itertools" ,rust-itertools-0.9))))
     (home-page "https://github.com/gdesmott/system-deps")
     (synopsis "Define system dependencies in @file{Cargo.toml}")
     (description
-- 
2.32.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#49545] [PATCH 4/4] gnu: Add rust-mpris-player-0.6.
  2021-07-13 17:19 ` [bug#49545] [PATCH 1/4] gnu: Add rust-libdbus-sys-0.2 Vinicius Monego
  2021-07-13 17:19   ` [bug#49545] [PATCH 2/4] gnu: Add rust-dbus-0.6 Vinicius Monego
  2021-07-13 17:19   ` [bug#49545] [PATCH 3/4] gnu: rust-system-deps-1: Fix version requirements Vinicius Monego
@ 2021-07-13 17:19   ` Vinicius Monego
  2 siblings, 0 replies; 6+ messages in thread
From: Vinicius Monego @ 2021-07-13 17:19 UTC (permalink / raw)
  To: 49545; +Cc: Vinicius Monego

* gnu/packages/crates-io.scm (rust-mpris-player-0.6): New variable.
---
 gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index eeebf4bd54..52a1dfb06d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -26731,6 +26731,34 @@ checking.")
       "Chaining APIs for both self -> Self and &mut self methods.")
     (license license:expat)))
 
+(define-public rust-mpris-player-0.6
+  (package
+    (name "rust-mpris-player")
+    (version "0.6.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "mpris-player" version))
+       (file-name
+        (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "01xvdzac9vwzc0fxpa7qwnn3n62bngrmr5z2n9pf86z3xgbasssg"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs
+       (("rust-dbus" ,rust-dbus-0.6)
+        ("rust-glib" ,rust-glib-0.10))))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (inputs
+     `(("dbus" ,dbus)
+       ("glib" ,glib)))
+    (home-page "https://gitlab.gnome.org/World/Rust/mpris-player")
+    (synopsis "Library for creating MPRIS2 media players over D-Bus")
+    (description "This package provides a library for creating MPRIS2 media
+players over D-Bus.")
+    (license license:gpl3+)))
+
 (define-public rust-multi-default-trait-impl-0.1
   (package
     (name "rust-multi-default-trait-impl")
-- 
2.32.0





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#49545: [PATCH 0/4] gnu: Add rust-mpris-player-0.6.
  2021-07-13 17:17 [bug#49545] [PATCH 0/4] gnu: Add rust-mpris-player-0.6 Vinicius Monego
  2021-07-13 17:19 ` [bug#49545] [PATCH 1/4] gnu: Add rust-libdbus-sys-0.2 Vinicius Monego
@ 2021-07-15  7:35 ` Efraim Flashner
  1 sibling, 0 replies; 6+ messages in thread
From: Efraim Flashner @ 2021-07-15  7:35 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 49545-done

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

Everything looks good. Patches pushed!

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-07-15  7:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-13 17:17 [bug#49545] [PATCH 0/4] gnu: Add rust-mpris-player-0.6 Vinicius Monego
2021-07-13 17:19 ` [bug#49545] [PATCH 1/4] gnu: Add rust-libdbus-sys-0.2 Vinicius Monego
2021-07-13 17:19   ` [bug#49545] [PATCH 2/4] gnu: Add rust-dbus-0.6 Vinicius Monego
2021-07-13 17:19   ` [bug#49545] [PATCH 3/4] gnu: rust-system-deps-1: Fix version requirements Vinicius Monego
2021-07-13 17:19   ` [bug#49545] [PATCH 4/4] gnu: Add rust-mpris-player-0.6 Vinicius Monego
2021-07-15  7:35 ` bug#49545: [PATCH 0/4] " Efraim Flashner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).