From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id oNhMDbjwmGNYZAEAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 22:38:00 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id QFlPDbjwmGOWYwEA9RJhRA (envelope-from ) for ; Tue, 13 Dec 2022 22:38:00 +0100 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 E75EF391E3 for ; Tue, 13 Dec 2022 22:37:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5CKF-00039d-Im; Tue, 13 Dec 2022 15:56:31 -0500 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 1p5CKD-00038M-Go for help-guix@gnu.org; Tue, 13 Dec 2022 15:56:29 -0500 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p5CKB-0006eS-C6 for help-guix@gnu.org; Tue, 13 Dec 2022 15:56:28 -0500 Received: by mail-ej1-x636.google.com with SMTP id n20so39750061ejh.0 for ; Tue, 13 Dec 2022 12:56:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Gea9vlNUdeSOCEWm4JPtJCKSbxFR08Tt4W+Ge93+0yM=; b=jOsVWZFiJYiJjUlQv9TDy2CxIYkIbexNzPHivrDu3IQfCv17V5PuSlAHlIUrt9uz88 XBPnpwUg40Eu7vU+cjDzowzWmrxhtDYhmgJeesLkQbTJrodln6r1DgdxrQ864KIKLnRI 5XhN9w7AFesrIn2lmvj6ZdaxjoaiJ3NV3GoEm4km9U4gXjQ26TM2wm/eb3PouztwZmpz kJHAp6joVdw7mv4VBvirl2bqOd31U3D+t5fPNiXisPBQ0ydg1ZDRbGrdP/rJ4ASLPtfI H14OSgWO+IgMPA5mw3V/YGjyB/CURuegFDeE8nW8m55GIb8l4Zda+m4YNwBf/JuciALo UIIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gea9vlNUdeSOCEWm4JPtJCKSbxFR08Tt4W+Ge93+0yM=; b=Holhjr2PAiAPHxeVqGphN3t5qrI/dOhac3Nn8bD5hxKc01m6+3lCUc5P40EOmesn0P 78z138f4NJiVUCc2XVPOaCpdAiTxbxPcTn5yEBzsAMxCEl8JOHaxga4XclUEs5e3w8EO BO9dOTAoTIWCtGaY5lHeUyzTSMSNkba6SQ/7nUsQsPoLyjowg2sBEQBSs3hKMMHF+7h7 DJiJlcmSIze1/SSVCatVly8a6okj/S72zhpc8oc5cpP8y9XAMBRvOTNJaw1GLd0F94n5 yI1/g/Ww4cm5qqUzDtP4h2jpvJTe+Xv72t/qNpdmE1dCadn0MvjCLbxXT+DZykJVLvAc oPeQ== X-Gm-Message-State: ANoB5pkXP8GR1rFLEQGnAo6WfbH6ccj73sBb7j0ZDL6wMpQgJ5EDIlPU E+vB0TiafKG0JGFVHgwY0pmaUhK260EGRrP7Ucw= X-Google-Smtp-Source: AA0mqf7/I44Z1hdcxLzHHpFIoSgB6cfK5/XpMVFoe89R/gPojIXhkNTppWy6A0WpzzGcMEjkQdFR15xu380OsDgDXwI= X-Received: by 2002:a17:906:1589:b0:7ae:bfeb:f484 with SMTP id k9-20020a170906158900b007aebfebf484mr753131ejd.174.1670964985062; Tue, 13 Dec 2022 12:56:25 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "dabbede@gmail.com" Date: Tue, 13 Dec 2022 21:56:13 +0100 Message-ID: Subject: Re: Creating a package using two sources/origins To: "(" Cc: help-guix@gnu.org Received-SPF: pass client-ip=2a00:1450:4864:20::636; envelope-from=dabbede@gmail.com; helo=mail-ej1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670967480; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=HrF5sZum3/L9Wklx4mP9v3x6hCzfS/9AnS6HaIYSoCE=; b=Ry/sG81n/LksXzrRS2lMrBX0W9jnVrqvlht3LDQS7mhmj2q1DrK+4Nw4AQyqs4ZXpqm8gB ZfRaxq01yS1nKsjIKVPyUgKKFqcitOB1IQPzbVMSxo9fsnctPx22EUqilDSHDUi2k58YT0 3VJ2wVfayHDdZTiZQlQQVlkyZZD53cCR1GLSfBuKDbi8wVnI89QnEzRXQ7uWaHmd91DgaX 84PXkfqxnlc36Y24Lo6JM2OkjRsbe6mXp7cS7ym5beefZbD42FVtC8k6O/cS3bL8BwFKv5 pQWIUsclq3fuLpoevL6ba+I4WhJcGgvWErWcH8C50O0peMUzIvCR2NOwFhktOQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=jOsVWZFi; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670967480; a=rsa-sha256; cv=none; b=LoO5qDvovcRNDIku7EWmrQArXjOZfIxMtEQF5uuaTOGVHDwASn2y7/nN0J/apm7+1GJ8Az gBrXGE+wyxAlfelGtQGfaU/AOZw5zgNHv7W9hGwqSGOv0Kc5PQk5l/htRdOuTHoyrvECv9 k671gwba1ZQ3MSaxOBDf5REATtYERZq6o1bPHQFACxgJKrqgolEsCB+2/L0bb/wYk+nCS+ wwPoSG7jcmqIY507uMAp6w5EK+oEFklvIXNRCeo1G1J00/y1nHIAEKsSHRvhbmOhgJhhvS 4SiWbs6PRit0Dh+UBZ223ZtE0NyF5ll1ejrlSl1UiVUsqzBVlyQ+Vp3UKuX3CQ== X-Migadu-Spam-Score: 0.83 X-Spam-Score: 0.83 X-Migadu-Queue-Id: E75EF391E3 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=jOsVWZFi; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: eq2G7MHvJrUX Hi (, thanks a lot. Nope, that's not quite correct. Your ARGUMENTS should look like this: > > (arguments > (list #:phases > #~(modify-phases %standard-phases > (add-after 'unpack 'unpack-extra-sources > (lambda _ > (copy-recursively #+xenomai-origin > "extra-source-directory")))))) > > You can think of ARGUMENTS as a bunch of keyword arguments to pass to the > procedure that runs the build. > With this modification it almost works ;-) The tar.bz2 file is downloaded in the store as file, and then copied in the build directory with the name "extra-source-directory" (but it is not a directory) You've seen a ``.drv'' path being printed out by the CLI, right? They > contain > instructions to build a store item. Packages are /lowered/ into > DERIVATIONs, > but so are ORIGINs, LOCAL-FILEs, COMPUTED-FILEs, and any other kind of > "file-like object" or "lowerable object", such as the object you create > with > FILE-APPEND. The thing they all have it common is that they all have a > lowering > procedure defined using DEFINE-GEXP-COMPILER; you can see a few examples > of that > in ``guix/gexp.scm'' and ``guix/packages.scm''. So, you can use UNGEXP and > UNGEXP-NATIVE on anything that has been DEFINE-GEXP-COMPILERed, and its > derivation will be built and its store path substituted. > > -- ( > Now it's a little bit more clear, but for sure I have to practice more before fully understand the type of "things" I'm using in the code. Regards