~ruther/ruthless-guix

1b04ab2be68b55b5215972d1549c4e9bf62da0ae — Rutherther 8 days ago 17a180a
chore: add utils for searching patches.
1 files changed, 14 insertions(+), 0 deletions(-)

A modules/ruthless/utils.scm
A modules/ruthless/utils.scm => modules/ruthless/utils.scm +14 -0
@@ 0,0 1,14 @@
(define-module (ruther utils)
  #:use-module (gnu packages)
  #:use-module (ice-9 match)
  #:export (ruthless-search-pathes))

(define %ruthless-patch-path
  (and=> (search-path %load-path "ruther/packages")
         (lambda (dir)
           (list (string-append dir
                                "/patches")))))

(define* (ruthless-search-patches #:rest args)
  (parameterize ((%patch-path %ruthless-patch-path))
    (apply search-patches args)))