~ruther/ruthless-guix

ref: f3d1798020e11ed250df1f8e3fd623080706f015 ruthless-guix/modules/ruthless/utils.scm -rw-r--r-- 474 bytes
f3d17980 — Rutherther fix: search-patches is a macro, work with that. 8 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(define-module (ruthless utils)
  #:use-module (gnu packages)
  #:use-module (ice-9 match)
  #:export (ruthless-search-patches))

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

(define-syntax-rule (ruthless-search-patches file-name ...)
  (parameterize ((%patch-path %ruthless-patch-path))
    (list (search-patch file-name) ...)))