diff mbox series

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

Message ID DU2P193MB2132D5D4CECA1FC9823FB408F3BCA@DU2P193MB2132.EURP193.PROD.OUTLOOK.COM
State New
Headers show
Series [bug#67515,01/91] gnu: Add blueprint-compiler-next. | expand

Commit Message

Sergio Pastor PĂ©rez Nov. 28, 2023, 9:12 p.m. UTC
* 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 mbox series

Patch

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")