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 eJwLHK9glmJnIAAAbAwnHQ (envelope-from ) for ; Tue, 31 May 2022 20:38:39 +0200 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 YPvnG69glmILFwEAauVa8A (envelope-from ) for ; Tue, 31 May 2022 20:38:39 +0200 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 ED9A13A032 for ; Tue, 31 May 2022 20:38:38 +0200 (CEST) Received: from localhost ([::1]:39502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nw6lJ-0001d7-20 for larch@yhetil.org; Tue, 31 May 2022 14:38:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41874) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nw6Hj-0005hB-23 for guix-patches@gnu.org; Tue, 31 May 2022 14:08:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54949) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nw6Hi-0004Gt-Mk for guix-patches@gnu.org; Tue, 31 May 2022 14:08:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nw6Hi-0001Sv-HA for guix-patches@gnu.org; Tue, 31 May 2022 14:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55653] [PATCH] guix: Add syntactic sugar for profile generation. Resent-From: Liliana Marie Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 31 May 2022 18:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55653 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Andrew Tropin , 55653@debbugs.gnu.org, Maxime Devos , zimoun Received: via spool by 55653-submit@debbugs.gnu.org id=B55653.16540204435574 (code B ref 55653); Tue, 31 May 2022 18:08:02 +0000 Received: (at 55653) by debbugs.gnu.org; 31 May 2022 18:07:23 +0000 Received: from localhost ([127.0.0.1]:48846 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw6H5-0001Rq-GF for submit@debbugs.gnu.org; Tue, 31 May 2022 14:07:23 -0400 Received: from mail-ej1-f68.google.com ([209.85.218.68]:43799) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nw6Gz-0001RY-1l for 55653@debbugs.gnu.org; Tue, 31 May 2022 14:07:22 -0400 Received: by mail-ej1-f68.google.com with SMTP id m20so28130256ejj.10 for <55653@debbugs.gnu.org>; Tue, 31 May 2022 11:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=QeFt9gvn4kyhUOXWrw9ppIaqJ5FJJ+ULqtkvmtsU/lw=; b=j3FHVydE8OykxvRTclUEIWdVS+y39wvipAuEa63ENI1eRe2Q9Zn2Qeds9O5vrE7ygH wyaHtWsViljcwZ/hsmrHquhhVYsbcsGFH2GuQ1Bjc2h/CEA4Ec6LwSFCDz+JDbAcG/h4 /c1N7L6poLm2x/+X49LQloqCR0eoIZDwBLVkGOCcCkbd8jzFlrr3AXBxY7bl9RhQ3nmz dpXFzXHZWGWbEJacWi3ubjgZKyoxoqvCrvM1kb2C3bpqhmI81fRWBqpKG8XVb8K4VU6E YXvp/nVoqaOOgmqjE83dSYvbCA8873Wtg/CbDipIspKYt/EhrymPw9M9Aw4C5z5OZH1D qwpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=QeFt9gvn4kyhUOXWrw9ppIaqJ5FJJ+ULqtkvmtsU/lw=; b=CHrLJX5Egs3bhn5pqvTAkd14aeXPVYvOil+QldYji2/JJqvWHbRNRm3KiAyenH1i+P sAHj8CtlF/PUyjjAEac8DZCj9EDHYPNMA0C2LTNFk5+pF+GJ5VKNuvO4XlXFGm8zbDYQ A0+DDcZwTvRou/EK35OmnafmTsVx27mf78aqfDtm9i2sp8Wwz9CcMPjAq+DqrcDZkaUI dsmxN+EivYYfVUolAb+7+icME3fwUojb2uoLUY0ovPUV5dh/K0++L70djqWQwpmgwAnl BJ4RG28h9ounGvTeen6iMgNNlnUDViOuWwx9cAHnBe1SA0bGGRUTWlEZmRHJx60wlucu NBbg== X-Gm-Message-State: AOAM532YTAFvJ8mAiIhV9NXNifLQw38W3QToeSMvJ92qR/ZltkNRFJPp 1OfBKqlZ7Z8PoscjFD0YL6Q= X-Google-Smtp-Source: ABdhPJyirzuHinJjSeOR1xsvi+ipvx6YxfJRZ/56fj5MF88a8LCACByVvgKOfKl5DqghsXBl/e3j3Q== X-Received: by 2002:a17:907:2d07:b0:6ff:7867:82f2 with SMTP id gs7-20020a1709072d0700b006ff786782f2mr10712845ejc.708.1654020431188; Tue, 31 May 2022 11:07:11 -0700 (PDT) Received: from nijino.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id m8-20020a056402430800b0042de29d8fc0sm1690327edc.94.2022.05.31.11.07.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 11:07:10 -0700 (PDT) Message-ID: From: Liliana Marie Prikler Date: Tue, 31 May 2022 20:07:09 +0200 In-Reply-To: <87sfopyfte.fsf@gnu.org> References: <10354f31e0be9bcb88b78da2fb8a2a3c3acbde10.camel@gmail.com> <87sfopyfte.fsf@gnu.org> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654022319; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QeFt9gvn4kyhUOXWrw9ppIaqJ5FJJ+ULqtkvmtsU/lw=; b=KKphPcb2U+7xusUA5kAJxj1j2hcGt4V42CdYewZIwKTVfGRFQlYr0YjOWUYLDIetI6EM67 1ZjVAa3FyaTE3q6wbac6Gz1VhiNEDK1DCtngCFyse/PE0A2NqetwtwSjqQHhrsYqShFkr/ GimpjklYjztZkTJHQ0j8Ryy9ApH6Lu3Zc7J2hfFW0UeaOOJ8Khst/ZZ6pE0XhlhhpNwPnT oR/Ds7VEBUergc/Pk/caa1Zre0CSXhxiQoALAjVApl0IGfHBOFFTymj2FIa34wztIjuw+0 vlPo64E+f9kpBqGQqUdxZJB8N0Ojr+oUZCCgPNuLTA1LJOmW4stEgQgvOdR4OA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654022319; a=rsa-sha256; cv=none; b=K3jildZbOM9Tss9VIFjLFBTrmKa8bxV9UVi3rPuAkgvWDaxsRFowsO6um6J3t3R/7lRx1a Y+L5DgSQ2QL/CX2Ek3Q6sBpr2L//s6LeJOZpgT8f36Tp6L8n2HlwmdQCQuyQyJTntQ/O6B oamBIpWx0LH3tzJKoF6tit7B1PArDAKzIjGlwdu6EmcW5EOAEFtBS5grsX9h7AILf2wetv 93+SLP69L4RfTDKFtg/yOBTagl5EBYu+7VAJ/+H/G5bjPUelzgGJqeHqxPhk2elpWRVzbH 6KvKcUo1FC2Enc8WDirN8JT4FndCXlqVtSQUXy6ORD27Qom1PtQUeDMMF2sjNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=j3FHVydE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.46 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=j3FHVydE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: ED9A13A032 X-Spam-Score: 7.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: 5FQxtIHDFVf8 Hi, Am Dienstag, dem 31.05.2022 um 15:47 +0200 schrieb Ludovic Courtès: > So the goal is to make things slightly more concise than: > >   (profile (content (packages->manifest (list …)))) > > right? More or less. However, I also feel that "content" is somewhat confusing if it were to be user-facing so I added a syntactic manifest noop as well. > We don’t have syntactic sugar like this elsewhere, and I would prefer > to remain consistent here.   We do have origin sha256, which sets both hash-algo and hash-content, so it's not unprecedented in my opinion. > However, if that helps, we could have a procedure, like: > >   (define (packages->profile name packages) >     (profile (name name) …)) > > Thoughts? I do think syntactic constructors feel better here, because the end goal would be embedding things in (thunked) configuration fields. Having a procedure might be acceptable, but feels more clunky in the context of Guix. Chees