~ruther/ruthless-guix

ref: 7e69ff0f45dea7ab8f2fdc0a5c033767fcc0169c ruthless-guix/modules/ruthless/utils.scm -rw-r--r-- 474 bytes
7e69ff0f — Rutherther feat: add LVM on LUKS test 2 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) ...)))