mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
packages: Allow use of origins as patches.
* guix/packages.scm (patch-and-repack)[patch-inputs]: Use 'add-to-store' only if the PATCH is a file name, and 'package-source-derivation' if PATCH is an origin.
This commit is contained in:
parent
8689901f95
commit
3f6f7b36d3
1 changed files with 6 additions and 2 deletions
|
@ -345,8 +345,12 @@ (define (tarxz-name file-name)
|
|||
(define patch-inputs
|
||||
(map (lambda (number patch)
|
||||
(list (string-append "patch" (number->string number))
|
||||
(add-to-store store (basename patch) #t
|
||||
"sha256" patch)))
|
||||
(match patch
|
||||
((? string?)
|
||||
(add-to-store store (basename patch) #t
|
||||
"sha256" patch))
|
||||
((? origin?)
|
||||
(package-source-derivation store patch)))))
|
||||
(iota (length patches))
|
||||
|
||||
patches))
|
||||
|
|
Loading…
Reference in a new issue