From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Wielkiewicz Subject: Re: Packaging Jami progress Date: Wed, 4 Dec 2019 16:50:38 +0100 Message-ID: <20191204165038.7a5403f2@interia.pl> References: <20191104214754.793ec2ff@interia.pl> <87o8xe4d5m.fsf@ambrevar.xyz> <87eeya49hf.fsf@ambrevar.xyz> <20191114214010.7b61005f@kompiuter> <87lfsikttk.fsf@ambrevar.xyz> <20191114231605.0ecec870@kompiuter> <87a797o6hb.fsf@ambrevar.xyz> <20191125221517.1140d0c9@kompiuter> <874kyrlzmn.fsf@ambrevar.xyz> <20191126203259.0f4141ea@kompiuter> <20191130192121.11e0c968@kompiuter> <87fti52or5.fsf@ambrevar.xyz> <20191201173411.042e68f2@kompiuter> <878snw2bpn.fsf@ambrevar.xyz> <20191203164402.77a8c728@interia.pl> <87tv6hieeg.fsf@ambrevar.xyz> <20191203190235.53765cba@kompiuter> <87fti1mf1u.fsf@ambrevar.xyz> <87d0d5mez0.fsf@ambrevar.xyz> <20191204153631.509b9afb@interia.pl> <87immwt8kh.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56763) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icWvQ-0001Wg-OC for guix-devel@gnu.org; Wed, 04 Dec 2019 10:50:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icWvP-0002Lg-Gw for guix-devel@gnu.org; Wed, 04 Dec 2019 10:50:48 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.239]:36192) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1icWvN-0002KO-8D for guix-devel@gnu.org; Wed, 04 Dec 2019 10:50:45 -0500 In-Reply-To: <87immwt8kh.fsf@ambrevar.xyz> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Pierre Neidhardt Cc: Guix-devel Dnia 2019-12-04, o godz. 16:27:26 Pierre Neidhardt napisa=C5=82(a): > You need to export the symbol. > To do so, you can either specify the symbol in the #:export part of > the module at the top of the file, or simply use `define-public` when > defining the variable. Okay, thanks. > Can you give an example? I don't understand what you mean. I would like to have something like this: (define-public jami-apply-dependency-patches (lambda* (#:key inputs patches dependency-name #:allow-other-keys) (let ((savoir-faire-linux-patches-directory "Savoir-faire Linux patches= ")) (mkdir-p savoir-faire-linux-patches-directory) (invoke "tar" "-xvf" (assoc-ref inputs "savoir-faire-linux-patches") "-C" savoir-faire-linux-patches-directory "--strip-components=3D5" (string-append "ring-project/daemon/contrib/src/" dependency-name)) (for-each (lambda (file) (invoke "patch" "--force" "-p1" "-i" (string-append savoir-faire-linux-patches-directory "/" file ".patch"))) patches)) #t)) And then invoke it like this (add-after 'unpack 'apply-patches (jami-apply-dependency-patches #:dependency-name "pjproject" #:patches '(*the list*) #:inputs inputs) I know it's a bit vague, don't really know what happens here with this lambda*. I would like to pass some arguments there, but if I understand this correctly, Guix does it for me - I give it a procedure and it executes it. Thanks in advance Jan Wielkiewicz