aboutsummaryrefslogtreecommitdiff
path: root/guix/packages.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2012-07-01 17:32:03 +0200
committerLudovic Courtès <ludo@gnu.org>2012-07-02 15:59:30 +0200
commit03671375b6eda0d47452780d91fd3af7bde791aa (patch)
treeb179e999ab03cc75bbd1b32a7de2f2fa104b0e9e /guix/packages.scm
parenta1232d0cb886c96b721d3f83aefdbc921bd95bc3 (diff)
downloadgnu-guix-03671375b6eda0d47452780d91fd3af7bde791aa.tar
gnu-guix-03671375b6eda0d47452780d91fd3af7bde791aa.tar.gz
packages: Allow the `arguments' field to be a procedure.
* guix/packages.scm (package-derivation): When ARGS is a procedure, call (ARGS SYSTEM). * distro/base.scm (gawk)[arguments]: Turn into a procedure, to disable tests on Cygwin.
Diffstat (limited to 'guix/packages.scm')
-rw-r--r--guix/packages.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/guix/packages.scm b/guix/packages.scm
index 3f8f880b29..0d5823ad5d 100644
--- a/guix/packages.scm
+++ b/guix/packages.scm
@@ -171,7 +171,9 @@ etc."
(package-source-derivation store source)
inputs
#:outputs outputs #:system system
- args)))))
+ (if (procedure? args)
+ (args system)
+ args))))))
(define* (package-cross-derivation store package)
;; TODO