~ruther/ruthless-guix

ref: f1e26531e6278394912f4cf6a322b0cbf7cb0a4f ruthless-guix/modules/ruthless/utils.scm -rw-r--r-- 452 bytes
f1e26531 — Rutherther fix: channel introduction for real 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)))