From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WJQ6LsqOkmG+0gAAgWs5BA (envelope-from ) for ; Mon, 15 Nov 2021 17:46:02 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kJ3LKcqOkmGFVgAAbx9fmQ (envelope-from ) for ; Mon, 15 Nov 2021 16:46:02 +0000 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 56B8B2F42C for ; Mon, 15 Nov 2021 17:46:02 +0100 (CET) Received: from localhost ([::1]:54814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mmf7J-0007p4-6y for larch@yhetil.org; Mon, 15 Nov 2021 11:46:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mmf6x-0007mG-7N for guix-devel@gnu.org; Mon, 15 Nov 2021 11:45:41 -0500 Received: from [2a00:1450:4864:20::332] (port=53227 helo=mail-wm1-x332.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mmf6l-0006Nl-1w for guix-devel@gnu.org; Mon, 15 Nov 2021 11:45:38 -0500 Received: by mail-wm1-x332.google.com with SMTP id o29so14560259wms.2 for ; Mon, 15 Nov 2021 08:45:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-transfer-encoding; bh=83awdqk5e7lxElRmFNYPT16Sorn1ynNBDYnsYdZdC3w=; b=I9N8mHqyxNUlF99TWhRz6VudrHGk2xnltDosnTh2p4toVkp9p9H2U6P80A+n4xm7wJ PaYc3jOGSS8C9SxLBXbpHpA+Al+JkCKyCG+EXSYed6pcLTT6nNUZD+OuVMsHOHRsgtru 3a0Dok1cmM6K2QJ6+NLpEo2tIfhwR2BHWO8AYX5ewD6Z/FQvohuSlqhsZBMAMT4OPorq C4aWA8UpTurnhlw4iSVfBVO2C0oL/iCOpW+hO54rOO2nwoSHtDWDIXiq7wvlt58a/YUX k6mdO6TteqJpjK8/K748qywIRmGO9jw6E19MT/4vfhSO2saetJqCA35dAqT81Qbx3tlN UGvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=83awdqk5e7lxElRmFNYPT16Sorn1ynNBDYnsYdZdC3w=; b=fnpfH4GCZag0vY8EeMcMeiHjO4XTiU/AhmUcnoxzegYtE3wPs3tx2luih6od1ZmpF4 n9RJoGUmGCeKjdFZEYS1I5prgt4xgr6/27hZY8KyU2MaVizMvRVYvYV17VF6cLSIFatu 6rBM4HtlS2vqkhxqJXOQOzJIKh9G/zGukc53oAclibm9UlEsR1zPkl7hU63NoyTcTp2T wxJt14WrRNAK/mwXt/QPjKCCukjp775wAEu7u2Qn2A9qwTZTTPDAyE/WqILIg9fRalPa czchimvI7bZdctMQHOi0P6MPUAZwxzS8LBCyBsf1mKEWdvgZoz0XplB3fbv028o+tYLe J9iw== X-Gm-Message-State: AOAM5312Fzq3lyLDHAH8R6wrUVq/Lc0jBn4rISaw0X3Y5626KRHFogdp nI3BKGXpCDwCgf0V70dpyd3zAbDphZk= X-Google-Smtp-Source: ABdhPJx4Ihywo3EpH5Dac/w148phlu9/5OLfkDiFFzB5dJo7XgyT7eN/KFPV9hxSgOs9eWcKj2KNvA== X-Received: by 2002:a7b:c010:: with SMTP id c16mr43723090wmb.141.1636994725815; Mon, 15 Nov 2021 08:45:25 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id l5sm13242433wml.20.2021.11.15.08.45.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 08:45:25 -0800 (PST) From: zimoun To: Tobias Geerinckx-Rice Subject: Recommend order for package fields? In-Reply-To: <87r1bsqdy8.fsf@nckx> References: <3add15b77522d6e9ebd715a19d966666@selfhosted.xyz> <87r1bsqdy8.fsf@nckx> Date: Mon, 15 Nov 2021 17:45:12 +0100 Message-ID: <86tugd9xlz.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::332 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x332.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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: , Cc: Guix Devel 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=1636994762; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=83awdqk5e7lxElRmFNYPT16Sorn1ynNBDYnsYdZdC3w=; b=JPuCTlHnyrGGuiAeMIgZQHsGaGESTKlbYmihrrscmcuItKabxWjaYQ3dAhzQtFutOFt0+9 MOYzI5p9w0lEmxUZvl9YGOVrpV0buHqCLE08Akkm4LMXzUezsyV0I0WJIk0hgL8aP9uYqy BNPLre47Le3OjH0ITKm1xwl99OYOOx5yfM7lbv4378P4Kkr+TQgvrN10qwymCOuHp7fejw KBQe8VcR6vqHPBGR877NNiWIYcdWxlUDT/7ZTHETBziX76TvcucQG4WsEQFjfCLpH3mmYm FBIY6rN1SSR5XR0phYstFnivA4YsCeXBWExOAXjEOvJ1UDNdfXZohsBV/Q53pA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1636994762; a=rsa-sha256; cv=none; b=m+qwZs3hZOQcO+aOYDym6/TOAGRztR1u5OeXd6l8MXFgRF9UT8MOSJ1/TjyKPM4lIgJLA9 bOKR9K9DZBGp1xY3Z84xTtTnRICeUGbuWzqf44R9WNmIOEw5UaDTNK9q/V0tTeSmKk/rGl 60L49AiVGAPvdK6o/d8br/Xnyi75/kU2snaUEimFByTbzRw6Emhf7TqBfL/UuAKE7/rtav ORrtJGIA2ym3VAgurxP9Fh/AucviniVefmHie+kAqDO3zldxooBR4UoaFQt2FyDA81W1be DzLzEefNUXj3tMlzF8T94GdGgsVl768z6FDyHmTC+kMOpxHlWqkW8stoJFQNuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=I9N8mHqy; 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: -2.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=I9N8mHqy; 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: 56B8B2F42C X-Spam-Score: -2.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: kqu2TXv0LsXV Hi, On Sun, 07 Nov 2021 at 13:40, Tobias Geerinckx-Rice via Guix-patches via wrote: > So the de-facto ordering of common fields is something like: > > name > version > source > build-system > outputs ; a bit inconsistent, yes, and sometimes put after *inputs > arguments ; to the build-system > native-inputs, inputs, propagated-inputs > metadata: synopsis, description, home-page, properties, license=E2=80=A6 > > There's some minor variation in where to put inputs, but=20 > (build-system trivial-build-system) definitely belongs here, above=20 > arguments, no matter what. Does it make sense to add this ordering advice in the manual? Somewhere under section =E2=80=9CContributing=E2=80=9D. Especially when there is probably some issues with the semantic, for instance, compare [1] corner cases: --8<---------------cut here---------------start------------->8--- $ guix repl GNU Guile 3.0.7 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guix-user)> (let ((name "OUTER")) (package-version (package (version name) (name "name") (source #f) (build-system #f) (synopsis #f) (description #f) (license #f) (home-page #f)))) $1 =3D "OUTER" scheme@(guix-user)> (let ((name "OUTER")) (package-version (package (name "INNER") (version name) (source #f) (build-system #f) (synopsis #f) (description #f) (license #f) (home-page #f)))) $2 =3D "INNER" --8<---------------cut here---------------end--------------->8--- where a record field refers to another defined record field. If yes, why not add a checker for =E2=80=9Cguix lint=E2=80=9D for warning t= hat? And obviously, it could be nice to have an automatic tool for formatting; something similar as etc/indent-code.el for ordering packages. ;-) Cheers, simon 1: