gnu: Move PACKAGES-WITH-*PATCHES to (guix packages)

* gnu/packages/cross-base.scm (package-with-extra-patches,
package-with-patches): Move procedures from here...
* guix/packages.scm (package-with-extra-patches, package-with-patches):
...to here, and export.
This commit is contained in:
Carl Dong 2020-04-06 14:02:42 -04:00
parent 8a4608b4bf
commit b066c25026
No known key found for this signature in database
GPG key ID: 0CC52153197991A5
2 changed files with 14 additions and 12 deletions

View file

@ -70,18 +70,6 @@
`(cons ,(string-append "--target=" target)
,flags))))))
(define (package-with-patches original patches)
"Return package ORIGINAL with PATCHES applied."
(package (inherit original)
(source (origin (inherit (package-source original))
(patches patches)))))
(define (package-with-extra-patches original patches)
"Return package ORIGINAL with all PATCHES appended to its list of patches."
(package-with-patches original
(append (origin-patches (package-source original))
patches)))
(define (cross-binutils target)
"Return a cross-Binutils for TARGET."
(let ((binutils (package (inherit binutils)