aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-graphics.scm
diff options
context:
space:
mode:
authorHerman Rimm <herman@rimm.ee>2024-05-04 13:34:37 +0200
committerEfraim Flashner <efraim@flashner.co.il>2024-11-28 11:05:24 +0200
commit74a4e62e0107a066e8128ba0162444ca3c17102f (patch)
tree4b9002f66020a65dd9767b4bf705fdb8f246c627 /gnu/packages/crates-graphics.scm
parent56a71b87f5a1b50ced70bd3a70ca20bb9258ed0e (diff)
downloadguix-74a4e62e0107a066e8128ba0162444ca3c17102f.tar.gz
guix-74a4e62e0107a066e8128ba0162444ca3c17102f.zip
gnu: Add rust-xkbcommon-sys-1.
* gnu/packages/crates-graphics.scm (rust-xkbcommon-sys-1): Add variable. Change-Id: I7988733ce92750a0062cd8a81437b454f24cf548 Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Diffstat (limited to 'gnu/packages/crates-graphics.scm')
-rw-r--r--gnu/packages/crates-graphics.scm29
1 files changed, 29 insertions, 0 deletions
diff --git a/gnu/packages/crates-graphics.scm b/gnu/packages/crates-graphics.scm
index 654928cb15..a534375012 100644
--- a/gnu/packages/crates-graphics.scm
+++ b/gnu/packages/crates-graphics.scm
@@ -6572,6 +6572,35 @@ for @code{libxkbcommon}.")
"Dynamically loaded xkbcommon and xkbcommon-x11 Rust bindings.")
(license license:expat)))
+(define-public rust-xkbcommon-sys-1
+ (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))
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'configure 'add-absolute-library-references
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "XKBCOMMON_LIB_DIR"
+ (assoc-ref inputs "libxkbcommon")))))))
+ (native-inputs (list pkg-config))
+ (inputs (list clang libxkbcommon-1.5))
+ (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-xkb-0.3
(package
(name "rust-xkb")