From 7ebc6cf869006a2a568b09cc6b435961f399a20a Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Thu, 15 Jun 2017 18:07:10 +0200 Subject: packages: Patches can be any lowerable object. * guix/packages.scm (patch-and-repack)[instantiate-patch]: Replace 'origin?' with 'struct?'. --- guix/packages.scm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guix/packages.scm b/guix/packages.scm index f4967f98fa..76aa43e7d3 100644 --- a/guix/packages.scm +++ b/guix/packages.scm @@ -477,10 +477,10 @@ (define (tarxz-name file-name) (define instantiate-patch (match-lambda - ((? string? patch) + ((? string? patch) ;deprecated (interned-file patch #:recursive? #t)) - ((? origin? patch) - (origin->derivation patch system)))) + ((? struct? patch) ;origin, local-file, etc. + (lower-object patch system)))) (mlet %store-monad ((tar -> (lookup-input "tar")) (xz -> (lookup-input "xz")) -- cgit v1.2.3