~ruther/ruthless-guix

ref: 650a5d0caa76697571f4f2783829dcdaa949b12b ruthless-guix/modules/ruthless/utils.scm -rw-r--r-- 452 bytes
650a5d0c — Rutherther fix: module moves to ruthless subfolder 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)))