From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 06 14:56:29 2021 Received: (at 42180) by debbugs.gnu.org; 6 Oct 2021 18:56:29 +0000 Received: from localhost ([127.0.0.1]:45495 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYC5c-0002Nk-T2 for submit@debbugs.gnu.org; Wed, 06 Oct 2021 14:56:29 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:54318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYC5Z-0002NU-5l for 42180@debbugs.gnu.org; Wed, 06 Oct 2021 14:56:26 -0400 Received: from ptr-bvsjgyjmffd7q9timvx.18120a2.ip6.access.telenet.be ([IPv6:2a02:1811:8c09:9d00:aaf1:9810:a0b8:a55d]) by andre.telenet-ops.be with bizsmtp id 2iwN2600P0mfAB401iwNZp; Wed, 06 Oct 2021 20:56:23 +0200 Message-ID: Subject: Re: [bug#51061] [PATCH v2 03/23] guix: Add rebar3 build-system. From: Maxime Devos To: Hartmut Goebel , 42180@debbugs.gnu.org, 51061@debbugs.gnu.org Date: Wed, 06 Oct 2021 20:56:17 +0200 In-Reply-To: <1aa101af088dceee34ad9373f153b5f7dd7603ba.1633533541.git.h.goebel@crazy-compilers.com> References: <626e4718c45c95a7278460f132bd38e08835e9f4.1633533541.git.h.goebel@crazy-compilers.com> <1aa101af088dceee34ad9373f153b5f7dd7603ba.1633533541.git.h.goebel@crazy-compilers.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-amVEyCPdDPgt4KMdpFFc" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telenet.be; s=r21; t=1633546583; bh=YE/Vk8TLC3WoSOlNWvwSSarsoaxc++5JiZCbhqX9Ujk=; h=Subject:From:To:Date:In-Reply-To:References; b=rxw2vtFNn1zScexISRSC6zwbshItQHHKHJfiiHgWgyxqMZ1eTmdTEAyO+DjHbEhzJ /oBfTPiidzPcWrQPi6aIXbfkSSx+1D7Q0LR1uhQoYEDMciZpMlI4DBUTPllDixEtgO 1gL1Lkf1QABgZTPxEvmsPsDZvJd5IzdTYPhiJDKDnoMpkIHK62/zjXygKFpj/vsDWx wKiElpMkD/F2IhD6ZBGRd2KjXhQUwhd831nYcre5msMGblkSVFnuzaRaqENg8Vy1iD 1Gc3I5UbGpwFt4vB3lmSTjRk87Lr3VR7ahhqthmsy1PY26UWIGqiYM7DsHyLOGxu0G 5TE/UILa63HXg== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 42180 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) --=-amVEyCPdDPgt4KMdpFFc Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hartmut Goebel schreef op wo 06-10-2021 om 17:20 [+0200]: > +(define* (lower name > + #:key source inputs native-inputs outputs system target > + (rebar (default-rebar3)) > + (erlang (default-erlang)) > + #:allow-other-keys > + #:rest arguments) > + "Return a bag for NAME." > + (define private-keywords > + '(#:source #:target #:rebar #:inputs #:native-inputs)) > + > + (and (not target) ;XXX: no cross-compila= tion > + (bag > + (name name) > + (system system) > + (host-inputs `(,@(if source > + `(("source" ,source)) > + '()) > + ,@inputs > + ;; Keep the standard inputs of 'gnu-build-system= '. > + ,@(standard-packages))) (standard-packages) contains packages like gcc, coreutils, bash, ..., which should be in build-inputs. Not that it matters much here, as this procedure doesn't support cross-compilation. > + (build-inputs `(("rebar" ,rebar) > + ("erlang" ,erlang) ;; for escriptize > + ,@native-inputs)) > + (outputs outputs) > + (build rebar3-build) > + (arguments (strip-keyword-arguments private-keywords arguments)= )))) Greetings, Maxime. --=-amVEyCPdDPgt4KMdpFFc Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYV3xURccbWF4aW1lZGV2 b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7ieqAQCZ9DKVS+Rwp4tTC/kIlhbeACTM mzHxshUsJ1LvSR6DdwEAwEQmWieL9sL83yr+61HqvqMwhT6HPB7TBNdUjeVxkAg= =t2Sk -----END PGP SIGNATURE----- --=-amVEyCPdDPgt4KMdpFFc--