Dnia 2019-12-05, o godz. 15:32:23 Pierre Neidhardt <m...@ambrevar.xyz> napisaĆ(a):
> - To call a custom function from the builder, you need to include the > module that defines it for the build system, e.g. > > (arguments > `(#:modules ((gnu packages telephony) > ,@%gnu-build-system-modules) > ...) > Tried luck with the procedure, but it seems I can't provide the module I'm currently in to the "arguments" field - Guile said it couldn't find code for the module: "no code for module (gnu packages jami)". I mean in the jami.scm file, defining (gnu packages jami) module, I can't give this module as an argument. (arguments `(#:modules ((gnu packages jami) ,@%gnu-build-system-modules) ...) By the way, I decided to move all Jami packages, procedures and dependencies modified by the patches to a separate file - jami.scm. It'll be much easier to maintain in this way. The full error message: The following derivation will be built: /gnu/store/an28ny48d6iyfn79j2fhqk7mvd6jmahq-pjproject-jami-2.9.drv building /gnu/store/an28ny48d6iyfn79j2fhqk7mvd6jmahq-pjproject-jami-2.9.drv... Backtrace: 10 (primitive-load "/gnu/store/dj185gjiag94gk1clrj0158xcal?") In ice-9/eval.scm: 721:20 9 (primitive-eval (begin (use-modules (gnu # jami) # ?) ?)) In ice-9/psyntax.scm: 1262:36 8 (expand-top-sequence ((begin (use-modules (gnu ?) ?) ?)) ?) 1209:24 7 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?) 1209:24 6 (parse _ (("placeholder" placeholder)) ((top) #(# # ?)) ?) 285:10 5 (parse _ (("placeholder" placeholder)) (()) _ c&e (eval) ?) In ice-9/boot-9.scm: 3377:20 4 (process-use-modules _) 222:17 3 (map1 (((gnu packages jami)) ((guix build #)) ((# ?)) ?)) 3378:31 2 (_ ((gnu packages jami))) 2803:6 1 (resolve-interface _ #:select _ #:hide _ #:prefix _ # _ ?) In unknown file: 0 (scm-error misc-error #f "~A ~S" ("no code for modu?" ?) ?) ERROR: In procedure scm-error: no code for module (gnu packages jami) Is there some kind of "this" for the module in guile I could use in order to be able to invoke the jami-apply-dependency-patches procedure? I exported it correctly using #:export (jami-apply-dependency-patches). Jan Wielkiewicz