packages: Patches can be any lowerable object.
* guix/packages.scm (patch-and-repack)[instantiate-patch]: Replace 'origin?' with 'struct?'.
This commit is contained in:
parent
0208476260
commit
7ebc6cf869
|
@ -477,10 +477,10 @@ specifies modules in scope when evaluating SNIPPET."
|
||||||
|
|
||||||
(define instantiate-patch
|
(define instantiate-patch
|
||||||
(match-lambda
|
(match-lambda
|
||||||
((? string? patch)
|
((? string? patch) ;deprecated
|
||||||
(interned-file patch #:recursive? #t))
|
(interned-file patch #:recursive? #t))
|
||||||
((? origin? patch)
|
((? struct? patch) ;origin, local-file, etc.
|
||||||
(origin->derivation patch system))))
|
(lower-object patch system))))
|
||||||
|
|
||||||
(mlet %store-monad ((tar -> (lookup-input "tar"))
|
(mlet %store-monad ((tar -> (lookup-input "tar"))
|
||||||
(xz -> (lookup-input "xz"))
|
(xz -> (lookup-input "xz"))
|
||||||
|
|
Loading…
Reference in New Issue