From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yL7KEj67z2SswgAASxT56A (envelope-from ) for ; Sun, 06 Aug 2023 17:24:46 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id uFicET67z2RAhAEAG6o9tA (envelope-from ) for ; Sun, 06 Aug 2023 17:24:46 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C875242DC9 for ; Sun, 6 Aug 2023 17:24:45 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1691335486; a=rsa-sha256; cv=none; b=u7HAlv7bWsPHgOvmOsn2V/1Kn9eH9Yy2qZF8ic1FlK0z5PbRLYTFEOULItx81KHY4qeYrF NLx/hf2Jp5IG9kRPysVRuCZPu3UMTXyAwzE9o7znOHwRW8DBQC+glzzrmAOvygcqapOpjZ YRPhSGcOrn2zwNkNcFkmetb0HDGfXAa73h1f3mul+sbekjHmk8oi19H8oO0tKG2wIvb/zk S5ABle2fV9FGvxtKxVH2Wtd/Jw6G54CnShZPXigv0aSAoSp2mzNm6SQKe54Z6xmuPFszan dMQF7mw4mJjGyDZTxkYG/OPmF0POXKMG6cDhF9BJk2ZC4K0IDVRHNhZGoM0sYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1691335486; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=nhgF9nX92Vbu+hLzBns+zmnYHGNJi6J7wARlRmx8h4g=; b=hN29cwah+IxdFgqeop4BWAWgMBIeoeKUKrdgFYBQWpLcs36D799+9DXMyIwpvADEOTI11d gPIvOYSuqyY+IRUrCOGDhuMwnKaDdH3BWxk4Cr5/hDoZJMdOTNFEI/yMCVQhGaxcKz/XBh z8NyHLnoExPL3N4MKz/d6bT7apJIzNHpSCnzG1Ak/nqdnTiU/jsQgzerbrTAWjieHo6Ood pDi16P2RnwfzMwF3/+UtR82D9B9e/cN0luguI9Wod2KY+3vtqjZF9iHMG5O0WcVXhbHm7R l8g2qPMOQlUA/4AJFHTGlOT1ZxLrhIGyX4C3V/OOOFopE+J3CRrat7cZihotMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qSfc6-00057q-Kt; Sun, 06 Aug 2023 11:24:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSfc5-00057i-Qw for guix-devel@gnu.org; Sun, 06 Aug 2023 11:24:13 -0400 Received: from smtpm4.myservices.hosting ([185.26.105.235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qSfc4-0003zB-5C for guix-devel@gnu.org; Sun, 06 Aug 2023 11:24:13 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpm4.myservices.hosting (Postfix) with ESMTP id 65AAE20D43; Sun, 6 Aug 2023 17:24:02 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id A424E8009E; Sun, 6 Aug 2023 17:24:01 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id sLVyPo_1e-FA; Sun, 6 Aug 2023 17:24:01 +0200 (CEST) Received: from [192.168.1.116] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id F39648009D; Sun, 6 Aug 2023 17:24:00 +0200 (CEST) Message-ID: <4129ecad-2300-fd32-55e9-9f93a2a4d5ac@makinata.eu> Date: Sun, 6 Aug 2023 16:23:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Reusing code for a build-phase? Content-Language: en-US To: Hartmut Goebel References: <68aacdad-ecd3-2e82-db4b-c9c85bb8e520@crazy-compilers.com> Cc: Guix-devel From: Bruno Victal In-Reply-To: <68aacdad-ecd3-2e82-db4b-c9c85bb8e520@crazy-compilers.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.105.235; envelope-from=mirai@makinata.eu; helo=smtpm4.myservices.hosting X-Spam_score_int: -59 X-Spam_score: -6.0 X-Spam_bar: ------ X-Spam_report: (-6.0 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-4.139, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.15 X-Migadu-Scanner: mx2.migadu.com X-Migadu-Queue-Id: C875242DC9 X-Spam-Score: -5.15 X-TUID: cBQi5+uef03q Hi Hartmut, On 2023-08-05 09:25, Hartmut Goebel wrote: > Hi, > > I'm currently packaging vagrant and some plugins. For all plugins an additional phase is required, generating a json file, see below. Since this is quite some code, I'd like to put it into some definition or some wrapper. Since it uses (this-package-verion), my attempts failed. > > At best, a plugin would then be defined like > >   (define-public vagrant-abc (vagrant-plugin-wrapper (package … > > Anyhow I'd be happy to when being able to use some function in the phase instead of duplicating the code. > > Any ideas? Many thanks in advance I think using a procedure like you're suggesting here would be alright for this. Perhaps could serve as inspiration? -- Furthermore, I consider that nonfree software must be eradicated. Cheers, Bruno.