From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Subject: Re: Packaging Jami progress Date: Wed, 4 Dec 2019 17:56:14 +0100 Message-ID: <20191204175614.29f663cd@kompiuter> References: <20191104214754.793ec2ff@interia.pl> <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> <20191204165038.7a5403f2@interia.pl> <87fti0t6rr.fsf@ambrevar.xyz> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41427) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icXwx-0006RB-Gj for guix-devel@gnu.org; Wed, 04 Dec 2019 11:56:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icXww-000744-5p for guix-devel@gnu.org; Wed, 04 Dec 2019 11:56:27 -0500 Received: from smtpo.poczta.interia.pl ([217.74.65.239]:56898) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1icXwu-0005VC-EF for guix-devel@gnu.org; Wed, 04 Dec 2019 11:56:26 -0500 In-Reply-To: <87fti0t6rr.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 On Wed, 04 Dec 2019 17:06:16 +0100 Pierre Neidhardt wrote: > You need a lambda here: > > --8<---------------cut here---------------start------------->8--- > (add-after 'unpack 'apply-patches > (lambda* (#:key inputs #:allow-other-keys) > (let ((my-input (assoc-ref inputs "my-input"))) > (jami-apply-dependency-patches #:inputs my-input)))) > --8<---------------cut here---------------end--------------->8--- > > See the other packages for many more examples. > Does that make sense? > Okay, thanks. There's a problem with the procedure though - mkdir-p, etc. are unbound in the procedure. Tried using #:use-modules (guix build utils), but the compiler said that "which" was imported from both "packages base" and "build utils". If that was a package I could use (modules '((guix build system))), but it isn't. Using #:prefix doesn't seem to be a good way of handling this. Can I remove the unnecessary "which"? Sorry for asking so many questions, the whole thing is huge... Hope one day I'll be able to do everything myself. Jan Wielkiewicz