diff mbox series

[bug#74233,PATCHv2,rust-team,21/40] gnu: Add rust-xkbcommon-sys-1.4.

Message ID 590d1960d5c7d32108126d004f7d1eb8fef4f02d.1731018145.git.goodoldpaul@autistici.org
State New
Headers show
Series [bug#74233,PATCHv2,rust-team,01/40] gnu: Add rust-search-provider-0.8. | expand

Commit Message

Giacomo Leidi Nov. 7, 2024, 10:22 p.m. UTC
* gnu/packages/crates-graphics.scm (rust-xkbcommon-sys-1.4): New variable.

Change-Id: Iec7dd132ac1b41a59548823ea00987439e9eda78
---
 gnu/packages/crates-graphics.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index f08ef1e5b1..ef79f8aabf 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -5900,6 +5900,31 @@  (define-public rust-xkbcommon-dl-0.4
      "Dynamically loaded xkbcommon and xkbcommon-x11 Rust bindings.")
     (license license:expat)))
 
+(define-public rust-xkbcommon-sys-1.4
+  (package
+    (name "rust-xkbcommon-sys")
+    (version "1.4.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "xkbcommon-sys" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "142ww452qq0q47fmc4khzsd0fbwmb71fjl7pci573zf83fvdpxsn"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-bindgen" ,rust-bindgen-0.63)
+                       ("rust-libc" ,rust-libc-0.2)
+                       ("rust-pkg-config" ,rust-pkg-config-0.3))))
+    (native-inputs
+     (list pkg-config))
+    (inputs
+     (list clang libxkbcommon))
+    (home-page "https://github.com/meh/rust-xkbcommon-sys")
+    (synopsis "Bindings to libxkbcommon")
+    (description "This package provides Bindings to libxkbcommon.")
+    (license license:wtfpl2)))
+
 (define-public rust-xkeysym-0.2
   (package
     (name "rust-xkeysym")