* [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