aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-01-01 16:52:27 +0100
committerLudovic Courtès <ludo@gnu.org>2013-01-01 16:52:27 +0100
commitb2adb3ae04ce2b0e383b6c4a0b78c7e885350d7a (patch)
treea0ef3fab7db93708b60c03ffd970187e1fc73770
parentbc5bf85fa222cf06e5d8236d01872c1bb89a8d20 (diff)
downloadguix-b2adb3ae04ce2b0e383b6c4a0b78c7e885350d7a.tar
guix-b2adb3ae04ce2b0e383b6c4a0b78c7e885350d7a.tar.gz
build-system/gnu: Add support for the "bin" output.
* guix/build/gnu-build-system.scm (configure): Add support for "bin" output.
-rw-r--r--guix/build/gnu-build-system.scm4
1 files changed, 4 insertions, 0 deletions
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 @@ makefiles."
(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 @@ makefiles."
;; 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"))
'())