summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--crn/packages.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/crn/packages.scm b/crn/packages.scm
index b399b1e..99649b6 100644
--- a/crn/packages.scm
+++ b/crn/packages.scm
@@ -35,7 +35,11 @@
(define-syntax-rule (crn/search-patches file-name ...)
"Return the list of absolute file names corresponding to each
FILE-NAME found in %PATCH-PATH."
- (list (search-path (%patch-path) file-name) ...))
+ (list (search-path
+ (cons (string-append
+ (find (lambda (path) (file-exists? (string-append path "/crn/packages.scm")) %load-path))
+ gnu:%patch-path))
+ file-name) ...))
(define %channel-root
(find (lambda (path)