summary refs log tree commit diff
path: root/gnu/packages
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2024-01-04 12:07:43 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-02-20 13:57:22 +0200
commitc10a5c90207026c4a2e8eb5ab11c797f49fc6868 (patch)
treeb8c6492fc036fe76bea4d32d8d5e5e03dd1c0639 /gnu/packages
parent4dab091d326b58d2c6e51c74ffc9e57eba227292 (diff)
downloadguix-c10a5c90207026c4a2e8eb5ab11c797f49fc6868.tar.gz
gnu: Add rust-tiny-xlib-0.2.
* gnu/packages/crates-graphics.scm (rust-tiny-xlib-0.2): New variable.

Change-Id: I95f5c551bde971ce95c6d4d269974734d7574b13
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/crates-graphics.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 168951da62..a53f6c9cc7 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -3440,6 +3440,40 @@ applications.")
         ("rust-num-derive" ,rust-num-derive-0.2)
         ("rust-num-traits" ,rust-num-traits-0.2))))))
 
+(define-public rust-tiny-xlib-0.2
+  (package
+    (name "rust-tiny-xlib")
+    (version "0.2.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "tiny-xlib" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0vgbk1n6mk9vrvd228bpila359cz7vb9pbhyim507alv4r4qs2fl"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--release" "--"
+                            "--skip=error_handling"
+                            "--skip=remove_and_re_insert"
+                            "--skip=smoke"
+                            "--skip=replace_old_handler")
+       #:cargo-inputs (("rust-as-raw-xcb-connection" ,rust-as-raw-xcb-connection-1)
+                       ("rust-ctor" ,rust-ctor-0.2)
+                       ("rust-libloading" ,rust-libloading-0.8)
+                       ("rust-tracing" ,rust-tracing-0.1))
+       #:cargo-development-inputs
+       (("rust-tracing" ,rust-tracing-0.1)
+        ("rust-tracing-subscriber" ,rust-tracing-subscriber-0.3)
+        ("rust-x11-dl" ,rust-x11-dl-2)
+        ("rust-x11rb" ,rust-x11rb-0.12))))
+    (inputs
+     (list libx11))
+    (home-page "https://github.com/notgull/tiny-xlib")
+    (synopsis "Tiny Xlib wrapper for Rust")
+    (description "This package provides a tiny Xlib wrapper for Rust.")
+    (license (list license:expat license:asl2.0 license:zlib))))
+
 (define-public rust-wayland-backend-0.3
   (package
     (name "rust-wayland-backend")