~ruther/ruthless-guix

ref: 1b04ab2be68b55b5215972d1549c4e9bf62da0ae ruthless-guix/modules/ruthless/utils.scm -rw-r--r-- 450 bytes
1b04ab2b — Rutherther chore: add utils for searching patches. 8 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
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)))