From b2adb3ae04ce2b0e383b6c4a0b78c7e885350d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Tue, 1 Jan 2013 16:52:27 +0100 Subject: [PATCH] build-system/gnu: Add support for the "bin" output. * guix/build/gnu-build-system.scm (configure): Add support for "bin" output. --- guix/build/gnu-build-system.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm index b5eaa26bf5..bd40289aac 100644 --- a/guix/build/gnu-build-system.scm +++ b/guix/build/gnu-build-system.scm @@ -116,6 +116,7 @@ (define* (patch #:key (patches '()) (patch-flags '("--batch" "-p1")) (define* (configure #:key inputs outputs (configure-flags '()) out-of-source? #:allow-other-keys) (let* ((prefix (assoc-ref outputs "out")) + (bindir (assoc-ref outputs "bin")) (libdir (assoc-ref outputs "lib")) (includedir (assoc-ref outputs "include")) (bash (or (and=> (assoc-ref inputs "bash") @@ -128,6 +129,9 @@ (define* (configure #:key inputs outputs (configure-flags '()) out-of-source? ;; Produce multiple outputs when specific output names ;; are recognized. + ,@(if bindir + (list (string-append "--bindir=" bindir "/bin")) + '()) ,@(if libdir (list (string-append "--libdir=" libdir "/lib")) '())