~ruther/ruthless-guix

ref: c38c1a6c18e451b0c727f3756433bdfd7fd81426 ruthless-guix/modules/ruthless/utils.scm -rw-r--r-- 452 bytes
c38c1a6c — Rutherther fix: do not quote name in .guix-channel 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-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)))