Skip to content
Snippets Groups Projects
Commit 3f6f7b36 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

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.
parent 8689901f
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment