From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 uCmrNgwZmGPVMQAAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 07:17:48 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id kP/ANgwZmGM3OgAAauVa8A (envelope-from ) for ; Tue, 13 Dec 2022 07:17:48 +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 887DF3158F for ; Tue, 13 Dec 2022 07:17:48 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4ybM-0004Tu-Ne; Tue, 13 Dec 2022 01:17:16 -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 1p4ybK-0004TW-V9 for help-guix@gnu.org; Tue, 13 Dec 2022 01:17:15 -0500 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4ybI-0002uQ-QT for help-guix@gnu.org; Tue, 13 Dec 2022 01:17:14 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 7962941691; Tue, 13 Dec 2022 07:17:10 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cTLRlD2-L0QG; Tue, 13 Dec 2022 07:17:09 +0100 (CET) Content-Type: multipart/signed; boundary=b9ba08472cac7c60c4aaf2c6706215ee4712abf5fa8cc418475a4aae43f8; micalg=pgp-sha512; protocol="application/pgp-signature" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1670912229; bh=WMOugb6Ifmo1d7YbtyAyKFJJEPT7LvFhvuDKc6aXcHU=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=FN8ZsPT15SuWvzGs/yfDweFONTNWZ7Cm6mmiBapaRiNuZ1r9wqERyK4BAnKDdRUC5 4I6bQulqRe0t1tJRinWctgP2P5DldH19qFPx6cQCAl/ULCPuvK+Zsai6haNxD6G+F0 /bTV8ue6WKmjMESa93Sv0MfyPNkLOnEXps9SzH18Y7B3ftA6NxzL2h7FpwvwraL2yG wd4tUs40L+o8QqABWnB0bklA4vk6BYu6iWC+WY9zb6wHfMB8CaDmikE/2Jo+dfHced Bkn47aEmzTVV9vrOKnOPOmCo95YukPZGTxDT3DAXP5qslnJNMlzPVMC2sQMCHCPJK5 +FMxdLjBDPkuA== Date: Tue, 13 Dec 2022 06:17:04 +0000 Message-Id: From: "(" To: "dabbede@gmail.com" Cc: Subject: Re: Creating a package using two sources/origins References: In-Reply-To: Received-SPF: pass client-ip=178.21.23.139; envelope-from=paren@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 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, MIME_HEADER_CTYPE_ONLY=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1670912268; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc: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=NDK9vV2YbcLgCCG1x6IYBDyTpEZTqRU1FtyktY1b77k=; b=fSTC1W3Ayi2A/iN3ohVRNLCWiDVnJ10GBBVlW5pzGtd8+IXhaHdcT8aI64uxmTxX9ZmJ9i 15g/E0lxpGMgtRTCfoTVHy0NC3REqWmSSnuDI3Wr21kL9JhvpDQ7tJ7n6pyhjjA2WElAGt 8oLTOtQB38NzmObordpUv0b/ABdqZ9BT0qsZcuRw/TeZ8jM1LmDQPq6XjgLbCkSCQm4pAx 5SgjwjuZLkC0ViQaIOjxE1NV4xPuks3X9z/C4NCYJ5ssH0cqPs/R05h8JuTEoqaQSBwIcN YepVAhGk7BJgyxsUA5gU5icECk3h6KL5rl3qQEc4V62E+R/ubRQkuen0/HPUOA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=FN8ZsPT1; 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=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670912268; a=rsa-sha256; cv=none; b=DYhydqtnAgXQuJkF4WrA1KVpZiRhFZ25nVtCi3OAVoQx0sVlRKqOTn99aO/rG6zGuAt4B0 GHCiCIjr8FcC+3hSShi7X3q2RXAPOa2K07cQCfCs8iWYoVu9lYomy00CQQAjQ4UWZDkY2d R1Eqq2tXqY/fxkmEfLhWHjtFCLk9nn1rEHMZSwZWlVAHWS6Ew8Ixk4sch6pCSUpzI37EyF GKXR30V8wTTTYgA1w+7IVoUZPphKIqf8deVvdM1AR3S9qwXbmRazcooFQH+1pcCnRpGxbD NamXQP1uSgHBAjG6oUyDZAYhxJLu68TuqX+KVlcR/DjqwwBHmoPhmHcqiOrUsw== X-Migadu-Spam-Score: -4.19 X-Spam-Score: -4.19 X-Migadu-Queue-Id: 887DF3158F X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=FN8ZsPT1; 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=pass (policy=reject) header.from=disroot.org X-TUID: gtCn/Rm7nQb/ --b9ba08472cac7c60c4aaf2c6706215ee4712abf5fa8cc418475a4aae43f8 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Heya, On Mon Dec 12, 2022 at 11:58 PM GMT, dabbede@gmail.com wrote: > (define-public my-help > (package > (inherit hello) > (name "my-help") > (arguments > #~(modify-phases %standard-phases > (add-after 'unpack 'unpack-extra-sources > (lambda _ > (copy-recursively #+xenomai-origin > "extra-source-directory"))))))) 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. > Finally, if not too much out of scope, can you explain me why the #+ > ungexp can accept an origin object instead of a package? I assumed > from the documentation that gexp where used only to reference among > derivation of packages. You've seen a ``.drv'' path being printed out by the CLI, right? They cont= ain instructions to build a store item. Packages are /lowered/ into DERIVATION= s, 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 wit= h FILE-APPEND. The thing they all have it common is that they all have a low= ering 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. -- ( --b9ba08472cac7c60c4aaf2c6706215ee4712abf5fa8cc418475a4aae43f8 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEE6Vh10NblKE5doNlW7ImHg/nqI20FAmOYGOEACgkQ7ImHg/nq I23Utwv+OSat1+ikNu4l33Xp4VfoQqgu8Wwuw2TSWdsF/D47wAMnxtYVm8QZGnHP 78SuQPpcQUjIsaSq8X+ZBM5hj0V43xzy8K6inFEiuvUu5JwB10p1keQWDDJ3s77P QJFK8UYo41+4CTDBskq71nJmE4jfuwHTYqUxYwr82COXr4DlWuoszT/FRWB3Jt3B U72oexXlJs2t4izWCGx3kbrBrRtQ3bjuHqjNmwVE3KqimCHnkhQXErX4EXoPEx/a Jdw/7lkZ7ncnBNpFyagNH0dBpbJfxqPMiMfpoSD9kRqSn3KjX4UNSRZZI7drw5La 4zk/NxqaWU3IJMVMl4VABbWK5/ReXzkCr1w+t2zbzCC8Y5DKXLpweV7azxiyczh5 hLf3ODv9UTine/96Oe/QsSWX4hlSw5h51sg3mnyFW+oGr7BEfwqWvrVwHhIeU5JM IyTOvIdU0v/cYdacEtiCRxIufeSvwJj/+Alg76E45U8iC07C6r6yHIloU31PrkKJ Tsgw9dBc =0VyO -----END PGP SIGNATURE----- --b9ba08472cac7c60c4aaf2c6706215ee4712abf5fa8cc418475a4aae43f8--