From 6f42755a34c5aae9ba0707fb9736a084b860fe7c Mon Sep 17 00:00:00 2001 From: Evgenii Lepikhin Date: Wed, 27 Sep 2023 22:00:07 +0300 Subject: fix: Patches search path --- johnlepikhin/packages/rust.scm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/johnlepikhin/packages/rust.scm b/johnlepikhin/packages/rust.scm index be45e33..7df1a03 100644 --- a/johnlepikhin/packages/rust.scm +++ b/johnlepikhin/packages/rust.scm @@ -744,7 +744,13 @@ safety and thread safety guarantees.") ;; crate. The fd-lock crate uses Outline assembly which expects a precompiled ;; static library. Enabling the "cc" feature tells the build.rs script to ;; compile the assembly files instead of searching for a precompiled library. - (patches (search-patches "rust-1.70-fix-rustix-build.patch")) + (patches + (parameterize + ((%patch-path + (map (lambda (directory) + (string-append directory "/johnlepikhin/packages/patches")) + %load-path))) + (search-patches "rust-1.70-fix-rustix-build.patch"))) (patch-flags '("-p1"))))))) (define rust-1.71 -- cgit v1.3