summaryrefslogtreecommitdiff
path: root/guix/build-system/gnu.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-05 01:04:20 +0200
commit74cd03b1a08a73c349818312cf2e0be9f54e0d4e (patch)
treea4d913a4dffff66448b3040b07e3fdc258c762a4 /guix/build-system/gnu.scm
parent3e43c64a74cc48553a723bc14f17578f585502e2 (diff)
downloadguix-patches-74cd03b1a08a73c349818312cf2e0be9f54e0d4e.tar
guix-patches-74cd03b1a08a73c349818312cf2e0be9f54e0d4e.tar.gz
build-system/gnu: Add a `patch' phase.
* guix/build/gnu-build-system.scm (patch): New procedure. (%standard-phases): Add `patch'. * guix/build-system/gnu.scm (gnu-build): Add `patches' and `patch-flags' parameters. Pass them on.
Diffstat (limited to 'guix/build-system/gnu.scm')
-rw-r--r--guix/build-system/gnu.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/guix/build-system/gnu.scm b/guix/build-system/gnu.scm
index 0f931dc582..6876342b45 100644
--- a/guix/build-system/gnu.scm
+++ b/guix/build-system/gnu.scm
@@ -43,7 +43,9 @@
(define* (gnu-build store name source inputs
#:key (outputs '("out")) (configure-flags ''())
- (make-flags ''()) (phases '%standard-phases)
+ (make-flags ''())
+ (patches ''()) (patch-flags ''("--batch" "-p1"))
+ (phases '%standard-phases)
(system (%current-system))
(modules '((guix build gnu-build-system)
(guix build utils))))
@@ -57,6 +59,8 @@ input derivation INPUTS, using the usual procedure of the GNU Build System."
source)
#:outputs %outputs
#:inputs %build-inputs
+ #:patches ,patches
+ #:patch-flags ,patch-flags
#:phases ,phases
#:configure-flags ,configure-flags
#:make-flags ,make-flags)))