build-system/gnu: `package-with-explicit-inputs' skips non-GBS packages.
authorLudovic Courtès <ludo@gnu.org>
Tue, 25 Jun 2013 21:04:32 +0000 (23:04 +0200)
committerLudovic Courtès <ludo@gnu.org>
Tue, 25 Jun 2013 21:04:32 +0000 (23:04 +0200)
* guix/build-system/gnu.scm (package-with-explicit-inputs)[rewritten-input]:
  Leave P unchanged if its build system is not GNU-BUILD-SYSTEM.

guix/build-system/gnu.scm

index 434a6dd..d074294 100644 (file)
@@ -72,7 +72,11 @@ builder, or the distro's final Guile when GUILE is #f."
       (memoize
        (match-lambda
         ((name (? package? p) sub-drv ...)
-         (cons* name (loop p) sub-drv))
+         ;; XXX: Check whether P's build system knows #:implicit-inputs, for
+         ;; things like `cross-pkg-config'.
+         (if (eq? (package-build-system p) gnu-build-system)
+             (cons* name (loop p) sub-drv)
+             (cons* name p sub-drv)))
         (x x))))
 
     (package (inherit p)