From 3886150cd873771c7eba22b08d6f17ad32c68251 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 11 Feb 2020 22:27:46 +0200 Subject: gnu: rust-xcb-0.9: Don't skip build. * gnu/packages/crates-io.scm (rust-xbc-0.9)[arguments]: Don't skip build. Skip test phase. Use cargo-build-flags to build debug features. [inputs]: Add libx11, libxcb, xcb-proto. [native-inputs]: Add pkg-config, python. --- gnu/packages/crates-io.scm | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index abbb3446ca..788840ac6f 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -33,9 +33,11 @@ (define-module (gnu packages crates-io) #:use-module (gnu packages llvm) #:use-module (gnu packages pcre) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) #:use-module (gnu packages ssh) #:use-module (gnu packages tls) - #:use-module (gnu packages version-control)) + #:use-module (gnu packages version-control) + #:use-module (gnu packages xorg)) ;;; ;;; Please: Try to add new module packages in alphabetic order. @@ -15230,17 +15232,23 @@ (define-public rust-xcb-0.9 "19i2pm8alpn2f0m4jg8bsw6ckw8irj1wjh55h9pi2fcb2diny1b2")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t + `(#:tests? #f ; Building all the features tests the code. + #:cargo-build-flags '("--features" "debug_all") #:cargo-inputs (("rust-libc" ,rust-libc-0.2) ("rust-log" ,rust-log-0.4) - ("rust-x11" ,rust-x11-2)) - #:cargo-development-inputs - (("rust-libc" ,rust-libc-0.2)))) + ("rust-x11" ,rust-x11-2)))) + (inputs + `(("libx11" ,libx11) + ("libxcb" ,libxcb) + ("xcb-proto" ,xcb-proto))) + (native-inputs + `(("pkg-config" ,pkg-config) + ("python" ,python))) (home-page "https://github.com/rtbo/rust-xcb") (synopsis "Rust bindings and wrappers for XCB") (description - "Rust bindings and wrappers for XCB") + "This package provides Rust bindings and wrappers for XCB.") (license license:expat))) (define-public rust-xdg-2.2 -- cgit v1.2.3