[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

19/19: gnu: rust-xcb-0.9: Don't skip build.

From: guix-commits
Subject: 19/19: gnu: rust-xcb-0.9: Don't skip build.
Date: Tue, 11 Feb 2020 15:29:06 -0500 (EST)

efraim pushed a commit to branch master
in repository guix.

commit 3886150cd873771c7eba22b08d6f17ad32c68251
Author: Efraim Flashner <address@hidden>
AuthorDate: Tue Feb 11 22:27:46 2020 +0200

    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 abbb344..788840a 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -33,9 +33,11 @@
   #: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 @@ extended attributes.")
     (build-system cargo-build-system)
-     `(#:skip-build? #t
+     `(#:tests? #f  ; Building all the features tests the code.
+       #:cargo-build-flags '("--features" "debug_all")
        (("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 "";)
     (synopsis "Rust bindings and wrappers for XCB")
-     "Rust bindings and wrappers for XCB")
+     "This package provides Rust bindings and wrappers for XCB.")
     (license license:expat)))
 (define-public rust-xdg-2.2

reply via email to

[Prev in Thread] Current Thread [Next in Thread]