From debbugs-submit-bounces@debbugs.gnu.org Tue May 31 09:47:41 2022 Received: (at 55653) by debbugs.gnu.org; 31 May 2022 13:47:41 +0000 Received: from localhost ([127.0.0.1]:47140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw2Dj-0008WP-0S for submit@debbugs.gnu.org; Tue, 31 May 2022 09:47:41 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw2De-0008Vp-TP for 55653@debbugs.gnu.org; Tue, 31 May 2022 09:47:35 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37632) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw2DZ-00069A-Eq; Tue, 31 May 2022 09:47:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=CwCptLf2n1OtbFTGf//rVV/yXyUDL4deBp8a5R6Cqgw=; b=A/G/8UyfzIpYuM0etckx vpVwHxykzFf78I/06RBuh4UVx+Hhyhqb3cXbFbfMLogCtBqvNOD/BZKegHzvh7P8rYnvRMe232Wkx hc6dN2ruhnBp+6e75bqeZjTWD63H1fdJ7VnxbX46w2XL1EQPJZu7wsRoRUGhMnkkCyBhUxCVRwVle jgHoyHDl35UEHd/EuWXY2Bz3DFM9YIOOg3YfRJtXxycpRWO+aZR6wyg482tfg7iY7OcU4dIbXMeqz FLyfpSAT9TqGjzYimLIgKs/SltY97mRpTXdo4UluHPsZn38txwgTRKc2ZLMioFFbWqoomlsX19dIA zEEugqrX9QM5XA==; Received: from nat-eduroam-36-gw-01-bso.bordeaux.inria.fr ([194.199.1.36]:41606 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw2DZ-0002eK-2j; Tue, 31 May 2022 09:47:29 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Liliana Marie Prikler Subject: Re: bug#55653: [PATCH] guix: Add syntactic sugar for profile generation. References: <10354f31e0be9bcb88b78da2fb8a2a3c3acbde10.camel@gmail.com> Date: Tue, 31 May 2022 15:47:25 +0200 In-Reply-To: <10354f31e0be9bcb88b78da2fb8a2a3c3acbde10.camel@gmail.com> (Liliana Marie Prikler's message of "Thu, 26 May 2022 11:01:02 +0200") Message-ID: <87sfopyfte.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 55653 Cc: Andrew Tropin , 55653@debbugs.gnu.org, Maxime Devos , zimoun 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: -3.3 (---) Hello! Liliana Marie Prikler skribis: > * guix/profiles.scm (%profile, package-compatibility-helper): New variabl= es. > (profile): Implement in terms of package-compatibility-helper. > --- > Hi Guix, > > this is a first step towards managing multiple profiles via Guix Home. > It makes it so that regular Guix profiles can more easily be specified, t= hough > I'm not quite sure whether the mlet of packages->profile-entry should not= also > be used here. > > In any case, with this it should now be relatively easy for users to spec= ify > profiles such as > (profile (name "emacs") (packages emacs emacs-magit emacs-org ...)) > (profile (name "r") (packages r r-plyr emacs emacs-ess ...)) > (profile (name "python") (packages python python-beautifulsoup4 ...)) > ... So the goal is to make things slightly more concise than: (profile (content (packages->manifest (list =E2=80=A6)))) right? We don=E2=80=99t have syntactic sugar like this elsewhere, and I would pref= er to remain consistent here. However, if that helps, we could have a procedure, like: (define (packages->profile name packages) (profile (name name) =E2=80=A6)) Thoughts? Ludo=E2=80=99.