From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id ADqVKzA+JmLK6wAAgWs5BA (envelope-from ) for ; Mon, 07 Mar 2022 18:17:36 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 0A/ZKDA+JmLDfAAA9RJhRA (envelope-from ) for ; Mon, 07 Mar 2022 18:17:36 +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 4AA2A3AD70 for ; Mon, 7 Mar 2022 18:17:36 +0100 (CET) Received: from localhost ([::1]:52120 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRGzH-00023q-5p for larch@yhetil.org; Mon, 07 Mar 2022 12:17:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:43882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRGz7-00023i-6P for guix-devel@gnu.org; Mon, 07 Mar 2022 12:17:25 -0500 Received: from mail-4318.protonmail.ch ([185.70.43.18]:55665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRGz4-0004aO-3R for guix-devel@gnu.org; Mon, 07 Mar 2022 12:17:24 -0500 Date: Mon, 07 Mar 2022 17:17:11 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1646673432; bh=oFXdyuzhA5ctb37hBgUNI/MUcN+uAe7REi+v1MbWqds=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=NQJVlN9VYDasyk0HF1ZRf5pPLLA6QKN3L3CDo290OgH3bdEXFhxjJ1G7oN/kPG8kb JjAHQ4JTiwSn6zrgIjWwvjAmB369QTY6j60TnOhwOf5QSPBEGRYaX39yy77NP64fR3 +R6k+zDSWgbAtKSUmI2W35/EdVnj1neDSWlNVBhUL7hyLCuiIe522L10o24J/l/Jgp ZqmsxFbGFxyA8pYmpx6TXhRspaKYsOn6gWTmEcUSWJsQW+trFi1DoPLfKOfNTsDiba 518ONGQ4mGQGIoPlBSwBDuoJ+yqsS3q6Dqp7jUkue+jutmcdZVYB4LFGNS72DZuYzr ZzApPM94NAgoA== To: Olivier Dion From: Kaelyn Cc: guix-devel@gnu.org Subject: Re: Package's inputs for developer? Message-ID: In-Reply-To: <87ee3fvys1.fsf@laura> References: <87ee3fvys1.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.43.18; envelope-from=kaelyn.alexi@protonmail.com; helo=mail-4318.protonmail.ch 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, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , Reply-To: Kaelyn Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646673456; h=from:from:sender:sender:reply-to: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:dkim-signature; bh=oFXdyuzhA5ctb37hBgUNI/MUcN+uAe7REi+v1MbWqds=; b=Eh5/dFuZ7vPfQMMwbEtZBzyOvC5O0PTS5WkTaIGWxNmoljugP23Z7wuN5UmQk6Qi2eaR5P 6GViFhVhlMTmf/8PNHNSX97WeaEautSa8qpMrgxtqXawotmnkyLqt6ybw90pPuXdWDsDiG ss1ZeLby+KWuEza5bOUZhKx0RGkI/fQ0f/Sf4dYUqPLs3l1U3TTFfIh5c1PIrb7GyBTcfl BBcSR2CSLs57UsrJuQOiLHba7imkr+CCLMGHRWpp9qP0ZfwOVT1TFWrmD+n4iGJsK1SUFd D0vGj2UbRHlAmEYeAqOQl4eNGF2l9YwCa5+SvQbRYOdkGe125ZfrC2jE+JkMOg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646673456; a=rsa-sha256; cv=none; b=cd7oH7MnKUgSBC6yKJauA6tgj3ixgeSDvcgKi6T+lI3hr70jUCBk9uqvLTUBA+wmCrMBmO UuST6lcHZKspo7WX/gTthwLAyW307+wuL1Rtjggf333no4ZOj2DCNQ0hyKOyp9rVXhcBlB /pv+bN4Cl2cbaqLjkG4lErERNMym0wOAzTU1S3dyrYGZLco8VyoWzjLDtmn7MXfQf4R0Uo hEBpdy3WTuWyOwdO2y9aJpXCXd99MPfN/b4sVbtKgwrYYOXRS93+6aA5AH7MOMJm5Q7P1R Ow8+hJisF7hKuLj+QJ9mQ7ZK2WvHSO1erVYKLp63n7Md1BgLy5yDwp2U7+947g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=NQJVlN9V; dmarc=pass (policy=quarantine) header.from=protonmail.com; 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" X-Migadu-Spam-Score: -8.22 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail3 header.b=NQJVlN9V; dmarc=pass (policy=quarantine) header.from=protonmail.com; 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" X-Migadu-Queue-Id: 4AA2A3AD70 X-Spam-Score: -8.22 X-Migadu-Scanner: scn0.migadu.com X-TUID: lxVjWuKERnYT Hello, On Sunday, March 6th, 2022 at 8:19 AM, Olivier Dion via "Development of GNU= Guix and the GNU System distribution." wrote: > Hi Guix, > > I often find my self using inheritance of package to add native-inputs > > that are not stricly necessary for building the project, but are used > > for developement purpose like so: > > ------------------------------------------------- > > (define base-native-inputs (list ...)) > > (define my-package > > (package > > ... > > (native-inputs base-native-inputs) > > ...)) > > ;; Developers version > > (package > > (inherit my-package) > > (native-inputs > > (append base-native-inputs > > (list gdb lcov)))) > > ------------------------------------------------- > > I guess this is the correct way of doing it or perhaps I should put gdb > > and lcov in the base-native-inputs?. But I was thinking that perhaps > > something like `(developer-inputs (list gdb lcov))` would be better, > > since these inputs are not stricly necessary for building the package. Can you give a bit more detail about what the use case is for adding develo= per tools as inputs? The inheritance you describe seems more cumbersome than simply doing `guix = shell gdb lcov -D my-package` to enter a development environment with gdb a= nd lcov present, while also being a bit more limited when there are multipl= e tools with a similar function. In the above example, imagine if a develop= er wants to debug my-package using lldb instead of gdb--the developer-input= s would require transforming the package definition, but the ad-hoc invocat= ion could simply be `guix shell lldb lcov -D my-package`. Cheers, Kaelyn > > Regards, > > old > > -- > > Olivier Dion > > Polymtl