From 03671375b6eda0d47452780d91fd3af7bde791aa Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 1 Jul 2012 17:32:03 +0200 Subject: 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. --- guix/packages.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'guix/packages.scm') 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 @@ (define* (package-derivation store package (package-source-derivation store source) inputs #:outputs outputs #:system system - args))))) + (if (procedure? args) + (args system) + args)))))) (define* (package-cross-derivation store package) ;; TODO -- cgit v1.2.3