Subject: [bug#67515] [PATCH 65/91] gnu: Add rust-rustbus-0.19.

From: Sergio Pastor Pérez <[email-masked]>
Date: Tue, 28 Nov 2023 22:12:43 +0100

* gnu/packages/crates-io.scm (rust-rustbus-0.19): New variable.

Change-Id: I9ae866aa61f284921c292848da23d4938c796835
---
 gnu/packages/crates-io.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 4e5bd38780..a62cdc66cf 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -60892,6 +60892,36 @@ (define-public rust-rustbus-derive-0.5
     (description "derive proc-macros for the rustbus crate")
     (license license:expat)))
 
+(define-public rust-rustbus-0.19
+  (package
+    (name "rust-rustbus")
+    (version "0.19.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rustbus" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "10gjc9klmnb80pbz0rxy45vdqyrv4aicvzmrz9bns30x4hgcam20"))
+       (modules '((guix build utils)))
+       (snippet
+        ;; GuixSD does not provide a symlink from /var/run to /run.
+        '(substitute* "src/connection.rs"
+           (("/run/dbus/system_bus_socket" all)
+            (string-append "/var" all))))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:tests? #f ; no path to `/run/dbus/system_bus_socket` neither to /var/...
+      #:cargo-inputs `(("rust-nix" ,rust-nix-0.26)
+                      ("rust-rustbus-derive" ,rust-rustbus-derive-0.5)
+                      ("rust-thiserror" ,rust-thiserror-1))
+      #:cargo-development-inputs `(("rust-criterion" ,rust-criterion-0.3))))
+    (home-page "https://github.com/KillingSpark/rustbus")
+    (synopsis "An implementation of the dbus protocol")
+    (description "An implementation of the dbus protocol")
+    (license license:expat)))
+
 (define-public rust-rustc-ap-rustc-lexer-725
   (package
     (name "rust-rustc-ap-rustc-lexer")
-- 
2.41.0